AP Statistics / Unit 2: Probability, Random Variables, and Probability Distributions / Topic 2.2
NUM8ERS study notes · Topic 2.2

Summary Statistics for Two Categorical Variables

The same 2424 students can represent 12%12\%, 30%30\% or 50%50\%. Learn why the reference group changes the answer, calculate joint, marginal and conditional relative frequencies, and use them to compare groups fairly.

2026–27 curriculum6 worked examples10 practice questionsVisual denominator guides

By the end of this lesson, you should be able to:

  • Choose the correct numerator and denominator for a question about a two-way table.
  • Calculate and interpret joint, marginal and conditional relative frequencies.
  • Build a conditional distribution using either row totals or column totals.
  • Compare distributions for evidence of association.
  • Support a claim with labeled percentages and a conclusion that fits the study.

Before you start: Know how to read a cell, a row total, a column total and the grand total. Review Topic 2.1: Tables and Graphs for Two Categorical Variables if needed.

First time learning this? Follow the school travel example. Say “out of whom?” before every division.

Here to revise? Use the denominator checklist, then try the practice questions before opening the solutions.

The concept in 60 seconds

A relative frequency tells us what fraction of a specified group belongs to a category or combination of categories. It is a count divided by the total for that reference group. Write the answer as a proportion, decimal or percentage.

With two categorical variables, the important step is choosing that group. Are we looking at everyone, or only at observations in one category?

Ask this first: “Who is included in the denominator?” The numerator counts the observations of interest inside that group.

Same 2424 Grade 9 walkers, three reference groups
Grade 9 walkersOther students in the reference group
JointAll participating students

24200=12%\frac{24}{200} = 12\%

12%12\% are Grade 9 and walk.

Conditional on gradeGrade 9 students only

2480=30%\frac{24}{80} = 30\%

30%30\% of Grade 9 students walk.

Conditional on modeWalkers only

2448=50%\frac{24}{48} = 50\%

50%50\% of walkers are Grade 9.

Each dot represents 1 student\text{Each dot represents }1\text{ student}. Panels rearrange the same highlighted individuals schematically; the lighter dots show the rest of each reference group.

The highlighted students are the same in all three panels. The answers change because the reference group changes. A correct answer needs both a number and words that identify the group.

Quick check: why is 24200\frac{24}{200} different from 2480\frac{24}{80}?

24200\frac{24}{200} describes Grade 9 walkers as a share of all participating students. 2480\frac{24}{80} describes walkers as a share of Grade 9 students only. Neither is automatically wrong; each answers a different question.

One table, different questions

Continue the original fictional school example from Topic 2.1. The school records each of 200200 participating students’ grade level and 1 main travel mode1\text{ main travel mode}. There are 8080 Grade 9 students and 120120 Grade 10 students.

Numbers of participating students by grade level and main travel mode. The highlighted cell counts Grade 9 walkers.
Grade levelBusWalkCar rideRow total
Grade 94040242416168080
Grade 10363624246060120120
Column total767648487676200200

Each student is counted in 1 interior cell1\text{ interior cell}. The margins give totals for one variable at a time; the bottom-right entry is the grand total. The two variables are grade level and main travel mode. Here, 9 and 10 identify categories rather than measured amounts.

Both labels

“What proportion of all students are Grade 9 and walk?”

Use the Grade 9–Walk cell, 2424, and all 200200 students.

One label overall

“What proportion of all students walk?”

Combine walkers from both grades: 24+24=4824 + 24 = 48. Use all 200200 students.

Travel within a grade

“Among Grade 9 students, what proportion walk?”

Use 2424 walkers out of the 8080 Grade 9 students.

Grade within a travel mode

“Among walkers, what proportion are in Grade 9?”

Use 2424 Grade 9 students out of the 4848 walkers.

All four questions use the same observations. Reading the question carefully determines whether you need an interior cell, a margin or a restricted-group total.

Joint, marginal or conditional?

Joint relative frequency

The share of all observations with a specific combination of categories from both variables.

cell countgrand total\frac{\text{cell count}}{\text{grand total}}

Grade 9 and Walk: 24200=0.12=12%\frac{24}{200} = 0.12 = 12\%.

Marginal relative frequency

The share of all observations in one category of one variable, combining across the other variable.

row or column totalgrand total\frac{\text{row or column total}}{\text{grand total}}

Walk overall: 48200=0.24=24%\frac{48}{200} = 0.24 = 24\%.

Conditional relative frequency

The share in a category after restricting attention to a specified group.

cell countspecified-group total\frac{\text{cell count}}{\text{specified-group total}}

Walk among Grade 9: 2480=0.30=30%\frac{24}{80} = 0.30 = 30\%. Grade 9 among walkers: 2448=0.50=50%\frac{24}{48} = 0.50 = 50\%.

Find the reference group before dividing
JointGrade 9 and Walk, out of everyone

24200=12%\frac{24}{200} = 12\%

one cell countwhole-table total\frac{\text{one cell count}}{\text{whole-table total}}

MarginalWalk overall, out of everyone

48200=24%\frac{48}{200} = 24\%

one margin totalwhole-table total\frac{\text{one margin total}}{\text{whole-table total}}

ConditionalWalk within Grade 9

2480=30%\frac{24}{80} = 30\%

one cell countnamed-group total\frac{\text{one cell count}}{\text{named-group total}}

The group named as “out of” or “within” gives the denominator. Decide what the sentence asks, then choose the corresponding total.

Use meaning, not just a keyword

“Among,” “of the Grade 9 students,” and “given that the student walks” all suggest a restricted group. But a word alone is not a complete rule. “Among all 200200 students, how many are Grade 9 and walk?” still uses the grand total.

  1. Write the reference group in words.
  2. Find its total; this is the denominator.
  3. Count the observations of interest within that group; this is the numerator.
  4. Divide. Multiply by 100%100\% if a percentage is requested.
  5. Interpret the result using the same reference group.

Number formats: 2480\frac{24}{80}, 0.300.30 and 30%30\% describe the same relative frequency. A proportion is between 00 and 11; a percentage is between 0%0\% and 100%100\%. The denominator must be positive.

Keep a fraction or extra decimal places during calculation. Round at the end to a sensible precision, such as 1 decimal place1\text{ decimal place} for 4076≈52.6%\frac{40}{76} \approx 52.6\%. Rounding can make displayed percentages total 99.9%99.9\% or 100.1%100.1\%; that alone does not invalidate a distribution.

Joint and marginal summaries

To build a joint relative frequency table, divide every interior cell count by the grand total. Every interior percentage uses the same denominator, 200200.

Joint view: every interior cell uses all 200200 students
Whole-table percentages. Interior entries are joint shares; the margins are marginal shares.
Grade levelBusWalkCar rideRow share
Grade 920%20\%12%12\%8%8\%40%40\%
Grade 1018%18\%12%12\%30%30\%60%60\%
Column total38%38\%24%24\%38%38\%100%100\%

Highlighted: 24200=12%\frac{24}{200} = 12\% are Grade 9 walkers. Across both grades, the Walk margin is 12%+12%=24%12\% + 12\% = 24\%.

The 6 interior percentages6\text{ interior percentages} add to 100%100\%: 20%+12%+8%+18%+12%+30%=100%20\% + 12\% + 8\% + 18\% + 12\% + 30\% = 100\%. They describe 6 nonoverlapping combinations6\text{ nonoverlapping combinations} covering all participating students. The Grade 9 row adds to 40%40\%, because Grade 9 accounts for 80200\frac{80}{200} of the students. It does not add to 100%100\% in this whole-table display.

Find a marginal distribution

A distribution lists the categories of a variable and their relative frequencies. The marginal distribution of travel mode is 38%38\% Bus, 24%24\% Walk and 38%38\% Car ride. It combines across grade level. The marginal distribution of grade is 40%40\% Grade 9 and 60%60\% Grade 10.

You can calculate a margin directly from counts or add the joint shares for the cells in that margin. For example, the overall Walk share is 48200=24%\frac{48}{200} = 24\%, and also 12%+12%=24%12\% + 12\% = 24\%.

Check one distribution at a time: travel-mode marginal shares sum to 100%100\%. Grade marginal shares also sum to 100%100\%. Adding both sets together gives 200%200\%, because each student has both a grade and a travel mode.

What an overall percentage can hide

The overall 38%38\% Car ride share does not tell us how travel differs by grade. Grade 9 has 1680=20%\frac{16}{80} = 20\% car riders, while Grade 10 has 60120=50%\frac{60}{120} = 50\%. Use conditional distributions to investigate those differences.

Combine counts to find the overall car-rider share
Grade 91680=20%\frac{16}{80} = 20\%

40%40\% of all students belong to this grade.

Grade 1060120=50%\frac{60}{120} = 50\%

60%60\% of all students belong to this grade.

All students76200=38%\frac{76}{200} = 38\%

Combine 16+6016 + 60 car riders and 80+12080 + 120 students.

Weighted check: 0.40×20%+0.60×50%=38%0.40 \times 20\% + 0.60 \times 50\% = 38\%.

The larger grade contributes more individuals. A simple average, 35%35\%, does not describe the combined students here.

The combined percentage gives each individual equal weight. A simple average of group percentages gives each group equal weight instead, which is inappropriate for the combined student percentage when group sizes differ. If the groups are the same size, those two averages coincide.

Conditional distributions: row or column?

A conditional distribution gives all category shares of one variable within a fixed category of the other. For travel mode within Grade 9, divide each Grade 9 cell by 8080. For travel mode within Grade 10, divide each Grade 10 cell by 120120.

Travel-mode distribution within each grade. Each row uses its own grade total.
Reference groupBusWalkCar rideTotal
Grade 9 (n=80n = 80)50%50\%30%30\%20%20\%100%100\%
Grade 10 (n=120n = 120)30%30\%20%20\%50%50\%100%100\%

Each row sums to 100%100\% because each full row is now its own reference group. We have 2 conditional travel distributions2\text{ conditional travel distributions}, one for each grade. Adding their percentages down a column has no required total: those percentages describe different groups.

Condition on travel mode instead

To describe grade level among bus riders, restrict to the 7676 bus riders: 4076≈52.6%\frac{40}{76} \approx 52.6\% are Grade 9 and 3676≈47.4%\frac{36}{76} \approx 47.4\% are Grade 10. Repeat with the Walk total, 4848, and Car ride total, 7676.

Grade distribution within each travel mode. Each column uses that mode’s total; percentages are rounded to 1 decimal place1\text{ decimal place}.
Grade levelBus (n=76n = 76)Walk (n=48n = 48)Car ride (n=76n = 76)
Grade 952.6%52.6\%50.0%50.0\%21.1%21.1\%
Grade 1047.4%47.4\%50.0%50.0\%78.9%78.9\%
Column total100.0%100.0\%100.0%100.0\%100.0%100.0\%

Each column sums to approximately 100%100\%. This table answers “Which grades are represented within each travel mode?” It answers a different question from the row-conditional table.

Reversing the condition changes the reference group
Who walks within Grade 9?

2480=30%\frac{24}{80} = 30\%

All 8080 Grade 9 students represent 100%100\%.

Who is Grade 9 among walkers?

2448=50%\frac{24}{48} = 50\%

All 4848 walkers represent 100%100\%.

Each full track is 100%100\% of its named reference group. The same 2424 students fill different fractions of those groups.

Rows are not always the denominator. If the table is transposed, Grade 9 becomes a column but the group still contains 8080 students. The group named in the question determines the denominator; the table’s orientation determines where you find it.

Read the percentage, including its labels

“30%30\% walk” is incomplete here. “Of the participating Grade 9 students, 30%30\% walk” identifies the group, the category and the proportion. Likewise, “Of the walkers, 50%50\% are in Grade 9” states the reverse conditional comparison correctly.

Why can a conditional percentage be larger than its joint percentage?

The same cell can be divided by a smaller reference group. Grade 9 walkers are 12%12\% of all students but 30%30\% of Grade 9 students. In this example, Grade 9 makes up 40%40\% of all students, and 40%×30%=12%40\% \times 30\% = 12\%. This checks how the group share and its within-group share combine.

Compare distributions for association

Two categorical variables show an association in the observed data when the distribution of one variable differs across categories of the other. Here, compare travel-mode percentages within grades. Use the same travel category in each comparison and each grade’s own total.

Compare conditional travel distributions
BusWalkCar ride
Grade 9 · n=80n = 80
50%50\%30%30\%20%20\%
Grade 10 · n=120n = 120
30%30\%20%20\%50%50\%
0%0\%25%25\%50%50\%75%75\%100%100\%

Both full bars equal 100%100\% of their own grade. Different segment proportions show different conditional distributions; bar lengths do not represent group counts.

For example, Car ride is 20%20\% in Grade 9 and 50%50\% in Grade 10. That is a difference of 3030 percentage points. Walk shares also differ, 30%30\% versus 20%20\%, even though both grades contain 2424 walkers. The conditional patterns show an association between grade and travel mode in these data.

What would a matching pattern look like?

In a separate fictional yes/no table, Group A has 3030 Yes and 2020 No, while Group B has 6060 Yes and 4040 No. Both conditional distributions are 60%60\% Yes and 40%40\% No. The counts differ because the group sizes differ; the observed category patterns match.

Checking just one matching category is not enough when there are 3 or more categories3\text{ or more categories}. 2 groups could both2\text{ groups could both} be 40%40\% Red but differ for Blue and Green. To claim that the full distributions match, examine every category.

Keep the conclusion within reach of the evidence

A table can describe an observed association. It does not itself establish a causal effect or a statistically significant population association. To generalize beyond the participants, consider how they were selected; to justify a causal claim, consider whether treatments were randomly assigned in a suitable experiment.

A useful conclusion: “Among these participating students, the car-rider share is 20%20\% for Grade 9 and 50%50\% for Grade 10. The travel distributions differ by grade, showing an association in these data.”

Six worked examples

Example 1: three questions, three summaries

Question: Find the share of all students who are Grade 9 and walk, the share who walk overall, and the share who walk among Grade 9.

  1. Joint: both labels, whole-table denominator. 24200=0.12=12%\frac{24}{200} = 0.12 = 12\%.
  2. Marginal: combine walkers from both grades. 48200=0.24=24%\frac{48}{200} = 0.24 = 24\%.
  3. Conditional: restrict to Grade 9. 2480=0.30=30%\frac{24}{80} = 0.30 = 30\%.

Interpretation: 12%12\% of all participating students are Grade 9 walkers; 24%24\% of all participants walk; 30%30\% of Grade 9 participants walk. The different statements explain the different answers.

Example 2: reverse the conditional question

Question: Among walkers, what percentage are in Grade 9?

  1. The reference group is walkers, with total 24+24=4824 + 24 = 48.
  2. Within that group, 2424 are in Grade 9.
  3. 2448×100%=50%\frac{24}{48} \times 100\% = 50\%.

Interpretation: 12 of the participating walkers\frac12\text{ of the participating walkers} are in Grade 9. Dividing by 8080 would answer the other question: the share of Grade 9 students who walk.

Example 3: build and check a joint table

Question: Convert the Grade 10 row to whole-table percentages and explain its total.

  1. Bus: 36200=18%\frac{36}{200} = 18\%. Walk: 24200=12%\frac{24}{200} = 12\%. Car ride: 60200=30%\frac{60}{200} = 30\%.
  2. The row adds to 18%+12%+30%=60%18\% + 12\% + 30\% = 60\%.
  3. This equals the marginal Grade 10 share, 120200=60%\frac{120}{200} = 60\%.

Why the row is not 100%100\%: the denominator is all 200200 students, not the 120120 Grade 10 students. A conditional Grade 10 row would instead be 30%30\%, 20%20\%, 50%50\%, totaling 100%100\%.

Example 4: use a column total

Question: Describe the grade distribution among car riders, to 1 decimal place1\text{ decimal place}.

  1. There are 16+60=7616 + 60 = 76 car riders.
  2. Grade 9: 1676×100%≈21.1%\frac{16}{76} \times 100\% \approx 21.1\%.
  3. Grade 10: 6076×100%≈78.9%\frac{60}{76} \times 100\% \approx 78.9\%.

Interpretation: About 21.1%21.1\% of participating car riders are Grade 9, and 78.9%78.9\% are Grade 10. Those shares sum to 100.0%100.0\%. They do not say that 78.9%78.9\% of Grade 10 students ride in cars; that reverse conditional share is 60120=50%\frac{60}{120} = 50\%.

Example 5: justify an association claim

Question: A student says, “The grades have the same travel pattern because both have 2424 walkers.” Assess the claim.

  1. Compare the same category using each grade’s own total: 2480=30%\frac{24}{80} = 30\% walk in Grade 9; 24120=20%\frac{24}{120} = 20\% walk in Grade 10.
  2. The equal counts correspond to different shares, a gap of 1010 percentage points.
  3. Car shares differ too: 1680=20%\frac{16}{80} = 20\%, versus 60120=50%\frac{60}{120} = 50\%.

Conclusion: the claim is not supported. Travel-mode distributions differ across grades in the observed data. This establishes a descriptive association among participants, not that grade level causes a travel choice.

Example 6: combine unequal groups correctly

Question: A student averages the car-rider percentages, 20%+50%2=35%\frac{20\%+50\%}{2}=35\%, to find the overall share. Is that valid?

  1. The groups have unequal sizes: Grade 9 has 8080 students and Grade 10 has 120120.
  2. Combine counts first: 16+6080+120=76200=38%\frac{16+60}{80+120}=\frac{76}{200}=38\%.
  3. Equivalently, weight the percentages by the group shares: 0.40×20%+0.60×50%=38%0.40 \times 20\% + 0.60 \times 50\% = 38\%.

Explanation: Grade 10 contributes more students, so its 50%50\% car-rider rate gets more weight. The 35%35\% simple average describes an equal weighting of grades, not the overall share of these 200200 students.

Explain in context

A strong statistical explanation identifies what was counted, who was included, and what the comparison shows. A decimal by itself does not answer a question about students, customers or survey respondents.

Interpret one summaryGroup + category + percentage

“Of the participating Grade 9 students, 30%30\% walk to school.”

The reference group is Grade 9; the category is Walk; the number is 30%30\%.

Justify a comparisonMatched evidence + conclusion

“The walking share is 30%30\% in Grade 9 and 20%20\% in Grade 10, a difference of 1010 percentage points. These different travel distributions show an association among participants.”

Percentage points or percent change?

Going from 20%20\% to 30%30\% is an increase of 1010 percentage points, calculated as 30%−20%30\% – 20\%. The relative percentage increase is 30−2020×100%=50%\frac{30-20}{20}\times100\%=50\%. The baseline matters for percent change. In a straightforward comparison of two conditional percentages, reporting the percentage-point gap is usually clearer.

Use “approximately” when rounding. A calculator can help with division, but the crucial work happens before typing: choosing the group total and matching the numerator to that group. No special calculator command is needed for this lesson.

Improve this answer: “There is a relationship because 2424 is bigger.”

The statement does not identify the comparison, and both walker counts are 2424. A better answer is: “Among participating students, 2480=30%\frac{24}{80} = 30\% of Grade 9 students walk, compared with 24120=20%\frac{24}{120} = 20\% of Grade 10 students. The conditional walking shares differ, so grade and travel mode are associated in these data.”

Find and fix common mistakes

Common errors, why they fail, and how to repair them.
MistakeWhy it failsBetter approach
Divide every answer by 200200.Conditional questions restrict the group.Use 8080 for “among Grade 9” and 4848 for “among walkers.”
Use a row total whenever a cell is in a row.The question may condition on a column category.Name the reference group before looking for its total.
Treat the two conditional directions as interchangeable.They usually use different denominators.Walk among Grade 9 is 30%30\%; Grade 9 among walkers is 50%50\%.
Use a cell count for a marginal numerator.A marginal summary combines over the other variable.Walk overall uses 4848, not only the Grade 9 walkers, 2424.
Require each joint-table row to total 100%100\%.Joint percentages use the whole-table denominator.All interior joint cells sum to 100%100\%; a row sums to its marginal share.
Add row and column marginal shares together.That counts the same individuals across both variables.Check each variable’s marginal distribution separately.
Compare counts to assess patterns in unequal groups.A larger group can have more individuals but a smaller category share.Compare conditional percentages using each group’s own size.
Average group percentages without checking group sizes.Equal group weights may not represent the individuals.Combine counts and totals; here the overall car share is 38%38\%.
Say “10%10\% higher” for 30%30\% versus 20%20\%.This confuses percentage-point and relative changes.Say “1010 percentage points higher.”
Claim causation or population independence from the table alone.An observed pattern does not supply study-design or inference evidence.Describe the association, or matching distributions, in these data.

Practice with hints and solutions

Write the reference group before calculating. Questions 1–3 use the school travel table. Later questions introduce separate fictional data sets. Keep an exact fraction until the final rounding.

1. Identify the type of summary

Classify each question as joint, marginal or conditional, then answer it: (a) What share of all students are Grade 10 and ride in cars? (b) What share are Grade 10 overall? (c) Among Grade 10 students, what share ride in cars?

Hint for question 1

Two labels with an all-students denominator means joint. One overall label means marginal. A restricted Grade 10 group means conditional.

Solution to question 1

(a) Joint: 60200=30%\frac{60}{200} = 30\% of all participants are Grade 10 car riders. (b) Marginal: 120200=60%\frac{120}{200} = 60\% are Grade 10. (c) Conditional: 60120=50%\frac{60}{120} = 50\% of Grade 10 participants ride in cars.

2. Keep the category, change the reference group

Calculate (a) the joint share for Grade 10 and Bus, (b) the overall Bus share and (c) the Bus share within Grade 10. Interpret each percentage.

Hint for question 2

The relevant counts are 3636 Grade 10 bus riders, 7676 bus riders overall and 120120 Grade 10 students.

Solution to question 2

(a) 36200=18%\frac{36}{200} = 18\% of all participants are Grade 10 bus riders. (b) 76200=38%\frac{76}{200} = 38\% of all participants ride the bus. (c) 36120=30%\frac{36}{120} = 30\% of Grade 10 participants ride the bus. The three statements identify the three denominators correctly.

3. Reverse the conditional statement

A student calculates 6076≈78.9%\frac{60}{76} \approx 78.9\% and writes, “78.9%78.9\% of Grade 10 students ride in cars.” Correct the interpretation, then calculate the percentage that the student’s sentence actually asks for.

Hint for question 3

What group has total 7676? What group has total 120120?

Solution to question 3

6076≈78.9%\frac{60}{76} \approx 78.9\% means that about 78.9%78.9\% of participating car riders are in Grade 10. The share of Grade 10 students who ride in cars is 60120=50%\frac{60}{120} = 50\%. The cell count is unchanged, but the reference group changes.

4. Analyze a new table

A café records 1 preferred drink1\text{ preferred drink} from each of 100100 respondents.

Café respondents: counts by visit time and preferred drink.
Visit timeTeaCoffeeTotal
Morning363624246060
Afternoon121228284040
Total48485252100100

Find (a) the marginal Coffee share, (b) the joint Afternoon–Coffee share, (c) the conditional Coffee share among Afternoon respondents, and (d) evidence for an association between visit time and drink preference.

Hint for question 4

Use the grand total for (a) and (b), the Afternoon total for (c), and matching within-time shares for (d).

Solution to question 4

(a) 52100=52%\frac{52}{100} = 52\% prefer Coffee overall. (b) 28100=28%\frac{28}{100} = 28\% are Afternoon respondents who prefer Coffee. (c) 2840=70%\frac{28}{40} = 70\% of Afternoon respondents prefer Coffee. (d) Morning Coffee is 2460=40%\frac{24}{60} = 40\%, versus Afternoon Coffee at 70%70\%, a 3030 percentage-point gap. The conditional preferences differ, showing an association among these respondents. This does not establish that visit time causes drink preference.

5. Recover counts from conditional percentages

Group A contains 8080 survey respondents, 65%65\% of whom answer Yes. Group B contains 120120 respondents, 35%35\% of whom answer Yes. Find both Yes counts, the joint A–Yes share and the overall Yes share. Then find the share of Yes respondents who belong to A, to 1 decimal place1\text{ decimal place}.

Hint for question 5

Multiply each within-group percentage by its own group size. Combine the resulting Yes counts before calculating the overall or reverse conditional shares.

Solution to question 5

A Yes: 0.65×80=520.65 \times 80 = 52; B Yes: 0.35×120=420.35 \times 120 = 42. There are 9494 Yes respondents out of 200200. The joint A–Yes share is 52200=26%\frac{52}{200} = 26\%. The overall Yes share is 94200=47%\frac{94}{200} = 47\%. Among Yes respondents, the A share is 5294×100%≈55.3%\frac{52}{94} \times 100\% \approx 55.3\%. It is not 65%65\%, which conditions on A rather than Yes.

6. Check the normalization

Which statement is correct? Explain why the others are not.

  1. Each row of a joint relative frequency table must sum to 100%100\%.
  2. In a row-conditional table, each row sums to 100%100\% when its row total is positive.
  3. The row and column marginal distributions together must sum to 100%100\%.
  4. A column-conditional table must have every row sum to 100%100\%.
Hint for question 6

For each type of table, identify the group that has been set to 100%100\%.

Solution to question 6

B is correct. A row-conditional distribution divides each row’s cells by that row’s positive total. A is false: all interior joint cells together sum to 100%100\%; an individual row sums to its marginal share. C is false: each variable’s marginal distribution separately sums to 100%100\%, so the two sets together sum to 200%200\%. D is false: column-conditional distributions sum to 100%100\% down each column, not necessarily across rows.

7. One matching category is not the whole distribution

Group A’s color preference is 40%40\% Red, 35%35\% Blue and 25%25\% Green. Group B’s is 40%40\% Red, 20%20\% Blue and 40%40\% Green. Does the equal Red share show that group and preference have no observed association?

Hint for question 7

Compare the complete distributions, including Blue and Green.

Solution to question 7

No. Red matches, but Blue is 35%35\% in A and 20%20\% in B; Green is 25%25\% in A and 40%40\% in B. The conditional distributions differ, showing an association in the observed data. Matching a single category does not imply matching all categories.

8. Zero count or zero denominator?

Group C has 4040 people, with 0 Yes responses0\text{ Yes responses}. Group D has 0 recorded people at all0\text{ recorded people at all}. Find the Yes share within each group and explain the difference.

Hint for question 8

A 0 numerator\text{A }0\text{ numerator} with a positive denominator is valid. Division by 0\text{Division by }0 is not.

Solution to question 8

C: 040=0%\frac{0}{40} = 0\% Yes. D: 00\frac{0}{0} is undefined; there is no observed group on which to base a conditional distribution. Report that there are 0 observations in D0\text{ observations in D}, rather than assigning it a 0%0\% Yes rate.

9. Combine different-sized classes

Class A has 2020 respondents, 1818 of whom prefer online revision. Class B has 8080 respondents, 3232 of whom prefer online revision. Find each class’s conditional share and the combined marginal share. Explain why averaging the two class percentages is misleading here.

Hint for question 9

The combined reference group contains 100100 respondents. A and B contribute different numbers of people.

Solution to question 9

A: 1820=90%\frac{18}{20} = 90\%. B: 3280=40%\frac{32}{80} = 40\%. Combined: 18+3220+80=50100=50%\frac{18+32}{20+80}=\frac{50}{100}=50\%. The simple average 90%+40%2=65%\frac{90\%+40\%}{2}=65\% gives each class equal weight. For the combined respondents, A supplies 20%20\% and B 80%80\%, so 0.20×90%+0.80×40%=50%0.20 \times 90\% + 0.80 \times 40\% = 50\%.

10. Justify a matching-pattern conclusion

In a new survey, Group A has 3030 Yes and 2020 No responses. Group B has 6060 Yes and 4040 No responses. A student says the different Yes counts prove an association. Write a response using conditional distributions, and explain what you can conclude.

Hint for question 10

The group totals are 5050 and 100100. Compare proportions, not just the counts 3030 and 6060.

Solution to question 10

A: 3050=60%\frac{30}{50} = 60\% Yes and 40%40\% No. B: 60100=60%\frac{60}{100} = 60\% Yes and 40%40\% No. The full conditional distributions match, so this table shows no observed association between group and response. The unequal counts reflect unequal group sizes. The sample table alone does not prove that the variables are independent in the population.

Quick revision

Jointcell countgrand total\frac{\text{cell count}}{\text{grand total}}. Both category labels, all observations.
Marginalmargin totalgrand total\frac{\text{margin total}}{\text{grand total}}. One category, combining across the other variable.
Conditionalcell countspecified-group total\frac{\text{cell count}}{\text{specified-group total}}. Restrict first.
Reverse conditions carefullyWalk among Grade 9 differs from Grade 9 among walkers.
NormalizationAll joint cells total 100%100\%; each conditional distribution totals 100%100\%.
AssociationCompare the same categories across the specified groups.
Combine individuals fairlyAdd counts and group totals; check weights before averaging percentages.
Interpret and qualifyName the reference group. Describe observed patterns without overstating scope.

Questions students often ask

Are marginal and conditional distributions the same?

No. A marginal travel distribution combines all grades and uses 200200 as the denominator. A conditional travel distribution restricts to one grade and uses that grade’s total. They may happen to have matching percentages in some data sets, but they describe different reference groups.

How do I decide between row percentages and column percentages?

Name the conditioning category in words. If it is Grade 9 in the school table, use its row total, 8080. If it is Walk, use its column total, 4848. Transposing the table changes the location of the total, not the reference group.

Why do rounded percentages sometimes miss 100%100\% slightly?

Rounding each value separately can accumulate a small difference. Use the original counts or unrounded proportions to check the distribution. Keep the requested precision consistent and explain a rounding discrepancy if it matters.

Does a different conditional percentage prove causation?

No. Different conditional distributions describe an association in the observed data. A causal conclusion needs supporting study design, and population conclusions need appropriate sampling and inference. A two-way table alone supplies neither.

Final understanding check

A fictional school surveys 180180 students about their preferred revision format. Each student selects exactly 1 format\text{exactly }1\text{ format}. The 2 grade groups2\text{ grade groups} are Junior and Senior.

Numbers of respondents by grade group and preferred revision format.
Grade groupPrintVideoAudioTotal
Junior1818363618187272
Senior545427272727108108
Total727263634545180180
  1. Name the observational unit and both categorical variables.
  2. Find the joint relative frequency for Junior and Video.
  3. Find the marginal Video relative frequency.
  4. Find the conditional Video share among Junior students.
  5. Find the conditional Junior share among Video students, to 1 decimal place1\text{ decimal place}.
  6. Write the complete format distribution within each grade group. Use matching evidence to assess association.
  7. Find the overall Print share. Explain why averaging the two groups’ Print percentages does not give that share.
  8. Assess “Being a Senior student causes a preference for Print.”
Reveal the full solution

1. The unit is 1 responding student1\text{ responding student}. The variables are grade group, Junior or Senior, and preferred revision format, Print, Video or Audio.

2. Joint: 36180=20%\frac{36}{180} = 20\% of all respondents are Junior students who prefer Video.

3. Marginal: 63180=35%\frac{63}{180} = 35\% of all respondents prefer Video.

4. Conditional on Junior: 3672=50%\frac{36}{72} = 50\% of Junior respondents prefer Video.

5. Conditional on Video: 3663×100%≈57.1%\frac{36}{63} \times 100\% \approx 57.1\% of Video-preferring respondents are Junior students.

6. Distributions: Junior: 25%25\% Print, 50%50\% Video, 25%25\% Audio. Senior: 50%50\% Print, 25%25\% Video, 25%25\% Audio. The Print share is 2525 percentage points higher for Senior, and Video shares also differ. The conditional distributions show an association between grade group and preferred format among respondents. The matching Audio share does not undo the differences.

7. Combined Print: 72180=40%\frac{72}{180} = 40\%. The groups have 7272 and 108108 students, giving weights 40%40\% and 60%60\%. The weighted result is 0.40×25%+0.60×50%=40%0.40 \times 25\% + 0.60 \times 50\% = 40\%. The simple average, 37.5%37.5\%, weights groups equally despite their unequal sizes.

8. Causation: the school observed preferences rather than randomly assigning a treatment. Other differences between students may explain the association. Describe the observed relationship; these survey results alone do not establish causation or justify a claim about every student.

Ready to move on? You should be able to name the reference group, choose and calculate a relative frequency, interpret it in context, and justify a comparison using matching conditional percentages.

Continue learning

Previous: Topic 2.1 — Tables and Graphs for Two Categorical Variables · Review denominator choice · Retry the practice · Back to the lesson overview