AP Statistics · Unit 2 · Topic 2.2

    2.2 Summary Statistics for Two Categorical Variables

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    From a two-way table you can calculate three kinds of relative frequency. A joint relative frequency is a cell divided by the grand total. A marginal relative frequency is a row or column total divided by the grand total. A conditional relative frequency is a cell divided by its own row or column total: it describes one group only, and comparing conditional relative frequencies is how you judge association.

    What you need to know

    • Calculate joint, marginal and conditional relative frequencies.
    • Choose the correct denominator for each kind of relative frequency.
    • Compare groups using conditional relative frequencies.
    • Describe the strength of an association in context.

    Three kinds of relative frequency

    Using the sport and breakfast table (300 students: sport/breakfast 90, sport/no breakfast 30, no sport/breakfast 96, no sport/no breakfast 84):

    Relative frequencies and their denominators
    KindQuestion it answersCalculation
    JointWhat fraction of all students play sport and eat breakfast?90/300 = 0.30
    MarginalWhat fraction of all students play sport?120/300 = 0.40
    MarginalWhat fraction of all students eat breakfast?186/300 = 0.62
    ConditionalOf the sport players, what fraction eat breakfast?90/120 = 0.75
    ConditionalOf the breakfast eaters, what fraction play sport?90/186 ≈ 0.48

    Conditional distributions

    A conditional distribution lists the relative frequencies of one variable within a single group of the other. For students who play sport, breakfast is yes 0.75, no 0.25. For students who don't, it is yes 96/180 ≈ 0.533, no 84/180 ≈ 0.467. These are the heights of the segments in the segmented bar chart from topic 2.1.

    Notice that 90/120 (breakfast among sport players) and 90/186 (sport among breakfast eaters) use the same cell but answer different questions, so they are different numbers. Read questions carefully for which group comes after 'of' or 'among'.

    Describing an association

    If the conditional distributions are the same for every group, the variables are not associated. Here they differ by about 0.22 (0.75 versus 0.53), which is a fairly strong association. A good written answer: "Students who play sport are more likely to eat breakfast (75%) than students who don't play sport (53%), so in this sample sport and breakfast are associated."

    On the exam

    Free-response questions often give a two-way table and ask three things in a row: a joint or marginal proportion, a conditional proportion, and whether the data suggest an association. Treat each as a separate small task. For the first two, write the fraction with its denominator named in words. For the third, compare two conditional proportions that answer the question asked, and finish with a sentence in context that uses the word 'associated' and avoids any claim of cause.

    Key terms

    Joint relative frequency
    A cell count divided by the grand total.
    Marginal relative frequency
    A row or column total divided by the grand total.
    Conditional relative frequency
    A cell count divided by its row or column total; a proportion within one group.
    Conditional distribution
    The relative frequencies of one variable within a single group of the other variable.

    Common mistakes

    • Dividing by the grand total when the question says 'of those who…'.

      Use the total of the group named after 'of'.

    • Assuming 90/120 and 90/186 are the same thing.

      They condition on different groups and answer different questions.

    • Judging association from joint relative frequencies.

      Compare conditional relative frequencies across groups.

    How this topic is tested

    • Write the fraction before the decimal, so the denominator you chose is visible.
    • Name the group in words: 'of the 120 students who play sport'.
    • For association, give two conditional proportions and say how they differ.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 3 · Analyze Data

      Of 500 employees, 200 work remotely; 120 of the remote workers report high job satisfaction. What is the conditional relative frequency of high satisfaction among remote workers?

    2. Question 2 · SP 3 · Analyze Data

      Using the same data, what is the joint relative frequency of 'remote and highly satisfied'?

    3. Question 3 · SP 4 · Interpret Results

      Which result would show NO association between gender and preferred sport?

    4. Question 4 · SP 3 · Analyze Data

      In the sport and breakfast data, which is the marginal relative frequency of eating breakfast?

    5. Question 5 · SP 4 · Interpret Results

      Among 80 smokers, 24 have a cough; among 220 non-smokers, 22 have a cough. Which statement is correct?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Practices 3 and 4 · 4 points

    A survey of 600 randomly chosen voters recorded age group and opinion on a new law. Under 40: 150 support, 100 oppose (250). 40 and over: 140 support, 210 oppose (350).

    1. (a) Calculate the proportion of all voters in the survey who are under 40 and support the law.
    2. (b) Calculate the conditional proportion who support the law in each age group.
    3. (c) Describe the association between age group and opinion.

    Connected topics

    Frequently asked questions

    Is a conditional relative frequency the same as a conditional probability?

    For a randomly chosen individual from the table, yes; topic 2.6 builds conditional probability from exactly this idea.

    Do I need percentages or decimals?

    Either, consistently and clearly labelled.

    What is Simpson's paradox?

    When an association within each group reverses after combining groups, because of a lurking variable. It is a reminder to look at conditional distributions carefully.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 2 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Probability, Random Variables, and Probability Distributions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 2 practice test: 60 questions with explanations

    All topics in Unit 2: Probability, Random Variables, and Probability Distributions

    1. 2.1 Tabular and Graphical Representations for the Distributions of Two Categorical Variables
    2. 2.2 Summary Statistics for Two Categorical Variables
    3. 2.3 Estimating Probabilities Using Simulation
    4. 2.4 Introduction to Probability
    5. 2.5 Mutually Exclusive Events
    6. 2.6 Conditional Probability
    7. 2.7 Independent Events and Unions of Events
    8. 2.8 Introduction to Random Variables and Probability Distributions
    9. 2.9 Parameters of Random Variables
    10. 2.10 The Binomial Distribution
    11. 2.11 The Normal Distribution
    12. 2.12 Sampling Distributions and the Central Limit Theorem

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.