Apply law of total probability (#751)