Similar equations can be derived for the right probabilities Rk(.) and Rk(.). Once we have the left and right probabilities for all the reduced states, the posterior probabilities for a template including any allele of interest at marker k can be calculated within the reduced state space as (4)P(Yi)=[∑j=1,…,HabdXj=YiLP(Xj)RQ(Xj)]×[LkNR(Yi)LP(Yi)×RkNR(Yi)RQ(Yi)]+1N[Lk(Yi)Rk(Yi)−LkNR(Yi)RkNR(Yi)]