contitional probability computation