condition testing and conditional probabilities