Suppose responses of randomly chosen subjects have a probability distribution.

Joint probability
Let be the probability that occurs at row column in the contingency table. It is also referred to as the joint probability of and .
After sampling, let
- : Cell frequencies
- : Total sample size
Then the sample joint probability is
Marginal probability
The marginal distributions are the row and column totals that result from summing the joint probabilities.