compute conditional transition prob.