Calculate conditional probability (#752)