Calculate conditional probabilities using a two-way table