3. Probability: Contingency Tables
Interpreting Contingency Tables
Contingency tables
A common way of summarizing the measurements of two categorical variables is with the use of a contingency table.
The contingency table below summarizes the sample data of individuals whose blood was tested in order to determine their blood group and rhesus type:
A | B | AB | O | Total | |
Rhesus | |||||
Rhesus | |||||
Total |
The row and column totals of a contingency table are located in the margins (edges) of the table and are therefore referred to as .
The total number of observations used to construct a contingency table is called the and is found in the bottom-right corner of the table.
The absolute frequencies displayed in a contingency table can be transformed into proportions and in turn interpreted as probabilities.
Interpreting Proportions as Probabilities
To transform the absolute frequencies of a contingency table into proportions, divide each cell in the table by the total number of observations. The resulting table is commonly referred to as a proportion table.
A | B | AB | O | Total | |
Rhesus | |||||
Rhesus | |||||
Total |
The proportions in the margins of a proportion table are called and tell us the probability of a single event occurring.
For instance, the probability of randomly selecting a person with blood group B from this sample would be :
Similarly, the probability of randomly selecting a person with a positive rhesus factor would be :
The proportions located in the center block of a proportion table are called and tell us the probability of the intersection of two events occurring.
For instance, the probability of randomly selecting a person that has both blood group O and a negative rhesus factor would be :
Similarly, the probability of randomly selecting a person that has both blood group A and a positive rhesus factor would be :
Cat | Dog | Bird | Total | |
Male | ||||
Female | ||||
Total |