Unit 2 · Topic 2.2 · about 20 minutes

Summary Statistics for Two Categorical Variables

Calculate joint, marginal and conditional relative frequencies from a two-way table, then use them to compare groups and justify a claim about association.

Predict first

At one high school, 56% of the students who were late to first period at least once last month live within a mile of the school. Does living close to school make a student more likely to be late?

Distance from school and lateness for 800 students (counts)
Late at least onceNever lateTotal
Within 1 mile80420500
1 to 3 miles36164200
More than 3 miles2872100
Total144656800

Three kinds of relative frequency

Every relative frequency from a two-way table is a count divided by a total. The only question is which total. Using the table above:

  • A joint relative frequency is one cell divided by the total for the entire table. The share of all 800 students who live within a mile and were late is 80800=0.10.
  • A marginal relative frequency is a row total or a column total divided by the table total. The share of all students who were late is 144800=0.18, and the share who live within a mile is 500800=0.625. The name comes from the margins of the table, where those totals live.
  • A conditional relative frequency restricts you to one category and divides by that category's total. Among students who live within a mile, the share who were late is 80500=0.16. Among students who were late, the share who live within a mile is 80144≈0.556.
Which total goes on the bottom
Relative frequencyNumeratorDenominatorExample
JointOne cellTable total80800=0.10
MarginalA row or column totalTable total144800=0.18
ConditionalOne cellTotal of the row or column you restrict to80500=0.16

The direction of a conditional matters

The last two numbers in that list use the same cell, 80, and tell different stories. 80500=0.16 answers "how often are students who live close late?" 80144≈0.556 answers "where do the late students live?" The predict question gave you the second number and invited you to read it as the first.

Words like of, among and given tell you which group you are restricted to. That group's total goes in the denominator.

Using conditional relative frequencies to compare groups

To decide whether two categorical variables are associated, compute the conditional relative frequencies of one variable for each category of the other, then compare them. If distance and lateness were not associated, every distance group would have the same late rate, matching the overall marginal rate of 18%. They do not.

Percent late at least once, by distance from school

0102030Percent late at least onceWithin 1 mile: 16Within 1 mile1 to 3 miles: 181 to 3 milesMore than 3 miles: 28More than 3 miles

The late rate climbs with distance, from 16% to 28%, so distance and lateness are associated for these 800 students.

Worked exampleAnnual plan or monthly plan?

A gym tracked 1,000 new members for six months. Of the 400 who bought an annual plan, 316 were still members after six months. Of the 600 who paid month to month, 288 were still members. The owner claims that annual members are more likely to stay. Find (a) the proportion of all new members who bought an annual plan and stayed, (b) the proportion of all new members who stayed, and (c) whether the data support the owner's claim.

  1. (a) Joint. Annual plan and stayed, out of all 1,000 members: 3161000=0.316.

  2. (b) Marginal. Everyone who stayed, out of all 1,000 members: 316+2881000=6041000=0.604.

  3. (c) Conditional, one for each plan. Annual: 316400=0.79. Monthly: 288600=0.48.

  4. Compare and conclude in context. 79% of annual members were still members after six months, compared with 48% of monthly members. The data support the claim. They show an association, not a cause: people who already intend to keep going to the gym may be the ones who buy an annual plan.

Answer.

(a) 0.316 (b) 0.604 (c) Yes. 79% of annual members stayed, compared with 48% of monthly members.

Check your understanding

1

A survey of 250 voters recorded each voter's age group and whether they plan to vote early. Of the 90 voters under 35, 27 plan to vote early. Of the 160 voters aged 35 or older, 72 plan to vote early. What proportion of all 250 voters are under 35 and plan to vote early? Give a decimal.

2

Use the same survey: 27 of the 90 voters under 35 and 72 of the 160 voters aged 35 or older plan to vote early. Which calculation gives the conditional relative frequency of planning to vote early among voters aged 35 or older?

3

In the same survey, 30% of voters under 35 and 45% of voters aged 35 or older plan to vote early. Which statement gives a correct conclusion together with a valid reason?

4

A survey of 800 students records how far each one lives from school and whether each was late at least once this month. Of the 100 students who live more than 3 miles away, 28 were late at least once, and 144 students in all were late at least once. Among the students who were late at least once, what proportion live more than 3 miles away?

5

A cafeteria manager claims that seniors are more likely than freshmen to buy a school lunch. Of 240 freshmen surveyed, 156 buy lunch. Of 300 seniors surveyed, 180 buy lunch. Which response gives the correct answer about the claim together with a valid reason?

Practice

Practice until it is automatic

Every problem draws a fresh table of counts and asks for one relative frequency. Before you divide, say which total belongs in the denominator.

Relative frequencies from two-way tables practice page

Course alignment, for teachers

AP Statistics topic 2.2, Unit 2: Probability, Random Variables, and Probability Distributions.

  • Skill 3.B: Calculate summary statistics, relative positions of points within a distribution, and predicted responses.
  • Skill 4.A: Describe and compare tabular and graphical representations of data, as well as summary statistics.
  • Skill 4.B: Justify a claim based on statistical calculations and results.