AP Statistics · Topic 2.2 · Reading guide, about 4 min

Joint, marginal and conditional relative frequencies

Compute joint, marginal and conditional relative frequencies from a two-way table and use them to judge association.

In one minute

A two-way table holds more than one story. Dividing a count by different totals answers different questions: what share of everyone is in this cell, what share of everyone is in this category, and what share of this category is in that cell. The three kinds of relative frequency are joint, marginal and conditional.

The skill that matters most is naming the denominator. Before you divide, say which group the percentage is out of. Most errors on this topic come from dividing by the wrong total.

Key terms

Relative frequency
A count divided by a total, giving a proportion or percentage of that total.
Joint relative frequency
A cell count divided by the table total: the share of all individuals who have both characteristics.
Marginal relative frequency
A row total or column total divided by the table total: the share of all individuals in one category of one variable.
Conditional relative frequency
A cell count divided by its row total or its column total: the share within one category who have the other characteristic.
Conditional distribution
All the conditional relative frequencies for one category, which add to 100%.
Association
The variables are associated if the conditional distributions are different from one group to another.
Denominator
The total you divide by, which defines the group the percentage describes.

Three denominators, three questions

Take a cell and ask what group the answer should be about. If the group is everyone in the table, divide by the table total: that is a joint relative frequency when the numerator is a cell, and a marginal relative frequency when the numerator is a row or column total. If the group is only one row, divide by that row total. If the group is only one column, divide by that column total. Those last two are conditional.

The word "given" or "of those who" tells you the denominator. "What percent of evening members chose spin?" restricts to evening members, so the denominator is the evening total. "What percent of all members are evening spin members?" is about everyone, so the denominator is the table total. The numerator is the same cell in both cases, but the answers differ.

Using conditional distributions to judge association

Two variables are not associated when the conditional distribution of one is about the same in every group. They are associated when the distributions differ. Compare matching conditional percentages across groups, and decide which direction of conditioning fits the question, usually the one that treats the explanatory variable as the group.

A claim must be supported in context with numbers. For example: "A higher percentage of evening members than morning members chose weights, 50% versus 33.3%, so time of day and class type appear associated." Association does not mean causation; a table cannot show why the pattern appears.

Invented gym data: class type by time of day (300 members)
TimeYogaSpinWeightsRow total
Morning503040120
Evening306090180
Column total8090130300

Worked example: gym classes

Check the table first. Morning: 50+30+40=12050+30+40=120. Evening: 30+60+90=18030+60+90=180. Columns: 50+30=8050+30=80 yoga, 30+60=9030+60=90 spin, 40+90=13040+90=130 weights. The grand total is 120+180=300120+180=300 and 80+90+130=30080+90+130=300.

Joint: the share of all members who are in an evening spin class is 60300=0.20\frac{60}{300}=0.20. The share in a morning yoga class is 50300=0.1667\frac{50}{300}=0.1667.

Marginal: the share of all members who attend mornings is 120300=0.40\frac{120}{300}=0.40, and the share who choose weights is 130300=0.4333\frac{130}{300}=0.4333.

Conditional by row: given an evening member, the chance of spin is 60180=0.3333\frac{60}{180}=0.3333. The evening distribution is yoga 30180=0.1667\frac{30}{180}=0.1667, spin 0.33330.3333 and weights 90180=0.5\frac{90}{180}=0.5, which sum to 11. The morning distribution is yoga 50120=0.4167\frac{50}{120}=0.4167, spin 30120=0.25\frac{30}{120}=0.25 and weights 40120=0.3333\frac{40}{120}=0.3333, which also sum to 11.

Conditional by column: given spin members, the share who attend evenings is 6090=0.6667\frac{60}{90}=0.6667. Notice that this is not 0.33330.3333: swapping the condition changes the denominator and the answer, so 60180\frac{60}{180} and 6090\frac{60}{90} answer different questions.

Association: the morning and evening conditional distributions differ: weights is 33.3% of mornings but 50% of evenings, and yoga is 41.7% of mornings but only 16.7% of evenings. Class type and time of day are associated among these members.

How it connects

  • Back to 2.1: the segmented bar chart is a picture of the conditional distributions you compute here.
  • Forward to 2.6: conditional probability uses the same cell-over-subtotal idea.
  • Forward to 2.7: comparing a conditional proportion with a marginal one is the idea behind independence.
  • Forward to 3.15: expected counts for a chi-square test come from row and column totals, so the marginals matter.

Common mistakes

  • Dividing by the table total for a conditional question. A conditional frequency uses a row or column total.
  • Reversing the condition. The share of evening members who chose spin is not the share of spin members who attend evenings.
  • Comparing counts rather than percentages. Groups of different sizes need conditional percentages.
  • Forgetting that a distribution sums to 100%. If your conditional percentages for a group do not add up, a denominator is wrong.

How it shows up on the exam

  • A two-way table is given and you must find a joint, marginal or conditional relative frequency and say what total you divided by.
  • You are asked to argue for or against association using conditional percentages in context.
  • A short question tests whether you can tell which of two similar-sounding proportions answers a stated question.

Check yourself

  1. Which total is the denominator for 'of those in the evening class, what percent chose yoga'?
  2. Why does a conditional distribution always sum to 100%?
  3. How can you tell from conditional percentages that two variables are not associated?
  4. Why are 'spin given evening' and 'evening given spin' usually different numbers?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.