- calculate conditional probabilities