Added method derive_conditional_probabilities