Two-way table probability practice problems
By Jude Wallis · Updated
These 8 problems pull joint, marginal, and conditional probabilities out of two-way tables, complete a table from partial counts, build a conditional distribution across a row, and judge whether two categorical variables are associated. Work each on paper, then check the solution steps.
AP Statistics: Unit 2 (topics 2.1 Tabular and Graphical Representations for the Distributions of Two Categorical Variables, 2.2 Summary Statistics for Two Categorical Variables). These problems cover Unit 2 topics 2.1 (tabular and graphical representations for the distributions of two categorical variables) and 2.2 (summary statistics for two categorical variables, where joint, marginal, and conditional relative frequencies are defined) in the Fall 2026 AP Statistics course. Unit 2 is 15 to 25% of the multiple-choice section.
What these problems build
These 8 problems build the three quantities a two-way table holds: the joint relative frequency (one cell divided by the grand total), the marginal relative frequency (a row total or a column total divided by the grand total), and the conditional relative frequency (a cell divided by its own row total or its own column total). If that vocabulary is new, read how to read a two-way table before you start.
Every table that is printed below gives all row totals, all column totals, and the grand total, so you can check your denominator before you divide; problems 4 and 8 print no table at all and ask you to build one first. The habit that saves the most points is writing in words first, where is the probability of given that has happened. Swapping the two events swaps the denominator and usually changes the answer, which is worked through in the guide on which conditional you need.
Three of the problems ask whether the row variable and the column variable look associated. You answer that by comparing conditional distributions row against row, never by comparing raw counts, since a bigger row produces bigger counts on its own. When you want to test whether the gap you see is larger than chance alone would produce, the chi-square calculator does that step. For more drill on the formula itself use the conditional probability practice set, and for the course framing see topic 2.1 and topic 2.2.
Problem 1
A climbing gym logged 240 visits over one weekend, recording whether the climber bouldered or roped and whether they rented shoes.
| Rented shoes | Own shoes | Total | |
|---|---|---|---|
| Bouldered | 36 | 84 | 120 |
| Roped | 24 | 96 | 120 |
| Total | 60 | 180 | 240 |
(a) Find the probability that a randomly chosen visit involved rented shoes. (b) Find the probability that a visit involved bouldering and rented shoes. (c) Find the probability that a visit involved roping and own shoes.
Show the worked solution
Check the table before you use it. The rows give and , the columns give and , and the margins agree with the grand total: and .
Part (a) asks for a marginal probability, a column total over the grand total. The rented-shoes column holds 60 visits, so .
Part (b) asks for a joint probability, a single cell over the grand total. The bouldered-and-rented cell holds 36 visits, so .
Part (c) is also a joint probability. The roped-and-own-shoes cell holds 96 visits, so .
All three parts divide by 240 because none of them restricted you to a smaller group. Nothing here says 'given'.
(a) ; (b) ; (c) .
Problem 2
A repair cafe logged the 200 items its volunteers worked on last season, by item type and whether the repair succeeded.
| Repaired | Not repaired | Total | |
|---|---|---|---|
| Electronics | 36 | 44 | 80 |
| Textiles | 84 | 36 | 120 |
| Total | 120 | 80 | 200 |
(a) Find the probability an item was repaired given that it was electronics. (b) Find the probability an item was electronics given that it was repaired. (c) State which total each part divided by.
Show the worked solution
Confirm the margins: and across the rows, and down the columns, and .
Part (a): the condition is 'it was electronics', so throw away the textiles row and work inside the electronics row, which holds 80 items.
Of those 80 electronics, the repaired cell holds 36, so .
Part (b): the condition is now 'it was repaired', so work inside the repaired column, which holds 120 items.
Of those 120 repairs, the electronics cell holds 36, so .
Part (c): both fractions start from the same 36 items. Part (a) divides by the row total 80 and part (b) divides by the column total 120, which is the whole reason the two answers differ.
(a) ; (b) ; (c) part (a) divides by the row total 80, part (b) by the column total 120.
Problem 3
A bike-share system classified 500 trips by day type and by the purpose the rider selected in the app.
| Commute | Errand | Leisure | Total | |
|---|---|---|---|---|
| Weekday | 180 | 90 | 30 | 300 |
| Weekend | 40 | 60 | 100 | 200 |
| Total | 220 | 150 | 130 | 500 |
(a) Find the conditional distribution of trip purpose for weekday trips. (b) Find the conditional distribution of trip purpose for weekend trips. (c) Describe how the two distributions differ.
Show the worked solution
A conditional distribution across a row divides every cell in that row by that row's own total, and the results must add to 1.
Part (a): the weekday row totals 300. Commute is , errand is , and leisure is .
Check the weekday row: .
Part (b): the weekend row totals 200. Commute is , errand is , and leisure is .
Check the weekend row: .
Part (c): compare category by category. Commuting falls from 60% of weekday trips to 20% of weekend trips, leisure climbs from 10% to 50%, and errands hold at 30% in both.
Because the two conditional distributions sit far apart on two of the three purposes, day type and trip purpose are associated in this data.
(a) commute 0.60, errand 0.30, leisure 0.10; (b) commute 0.20, errand 0.30, leisure 0.50; (c) commuting dominates weekdays and leisure dominates weekends, while errands stay at 30% in both, so the two variables are associated.
Problem 4
A city surveyed 400 street trees. In all, 150 were planted within the last 10 years and 100 show storm damage. Among the trees planted within the last 10 years, 24 show storm damage.
(a) Complete the two-way table. (b) Find the probability a tree shows storm damage given it was planted within the last 10 years, and the probability it shows storm damage given it was planted earlier. (c) Find the probability a tree was planted within the last 10 years given that it shows storm damage.
Show the worked solution
List what you were given: 400 trees in all, 150 recent plantings, 100 damaged trees, and 24 trees that are both recent and damaged.
Finish the recent row. If 24 of the 150 recent trees are damaged, then recent trees are undamaged.
Get the other row total: trees were planted earlier.
Split that row using the damage column: damaged trees were planted earlier, so earlier trees are undamaged.
Assemble the table and check the second column and the grand total: and .
Storm damage No damage Total Planted in last 10 years 24 126 150 Planted earlier 76 174 250 Total 100 300 400 Part (b): condition on each row in turn. and .
Part (c): now condition on the damage column, which holds 100 trees, of which 24 are recent plantings, so .
Parts (b) and (c) both use the same 24 trees. The first divides by 150 recent trees, the second by 100 damaged trees.
(a) recent plantings: 24 damaged, 126 undamaged, 150 total; earlier plantings: 76 damaged, 174 undamaged, 250 total; (b) and ; (c) .
Problem 5
A running club with 500 members recorded whether each member has ever finished a marathon and whether they own a GPS watch.
| Owns a GPS watch | No GPS watch | Total | |
|---|---|---|---|
| Has run a marathon | 45 | 5 | 50 |
| Has not run a marathon | 135 | 315 | 450 |
| Total | 180 | 320 | 500 |
(a) Find the probability a member owns a GPS watch given that they have run a marathon. (b) Find the probability a member has run a marathon given that they own a GPS watch. (c) Explain why the two answers are so far apart when both describe the same 45 members.
Show the worked solution
Check the margins: , , , , and .
Part (a): the condition is having run a marathon, so the denominator is that row total, 50.
.
Part (b): the condition is now owning a GPS watch, so the denominator is that column total, 180.
.
Part (c): the same 45 members sit on top of both fractions, but the groups underneath are very different sizes. Only 50 members have run a marathon while 180 own a watch, and .
That factor is exactly the gap between the two answers, since . In words, nearly every marathoner owns a watch, but only a quarter of watch owners have run a marathon.
(a) ; (b) ; (c) the same 45 members are divided by 50 marathoners in one case and 180 watch owners in the other, and 180 is 3.6 times 50.
Problem 6
A community theater recorded how 500 ticket buyers bought their tickets and whether they were attending for the first time.
| Online | Phone | Box office | Total | |
|---|---|---|---|---|
| First-time attendee | 124 | 28 | 48 | 200 |
| Returning attendee | 177 | 45 | 78 | 300 |
| Total | 301 | 73 | 126 | 500 |
Do purchase channel and attendee type look associated? Compare the conditional distribution of channel for each attendee type and justify your answer.
Show the worked solution
Do not compare raw counts. The returning row beats the first-time row in every channel only because it holds 300 buyers against 200, so convert each row to proportions first.
First-time row, total 200: online , phone , box office . Check: .
Returning row, total 300: online , phone , box office . Check: .
Compare channel by channel: online 0.62 against 0.59, phone 0.14 against 0.15, box office 0.24 against 0.26.
The largest gap is 3 percentage points, on online buying. Knowing whether a buyer is new barely changes the channel you would predict.
Conclude that these data show little evidence of association. Identical conditional distributions would mean the two variables show no association in this sample, and these two are close to identical.
No strong association. Channel proportions are 0.62, 0.14, 0.24 for first-time buyers and 0.59, 0.15, 0.26 for returning buyers, a gap of at most 3 percentage points, so attendee type barely changes the channel distribution.
Problem 7
A regional science fair judged 360 projects and recorded the category and whether the project advanced to the state round.
| Advanced | Did not advance | Total | |
|---|---|---|---|
| Life science | 27 | 108 | 135 |
| Physical science | 21 | 84 | 105 |
| Engineering | 42 | 78 | 120 |
| Total | 90 | 270 | 360 |
(a) Find the probability a project advanced. (b) Find the probability a project advanced, given each of the three categories. (c) Find the probability a project was an engineering project given that it advanced. (d) Does category appear to be associated with advancing? Justify your answer using your part (b) values.
Show the worked solution
Check the margins first. Rows: , , . Columns: and . Grand total: .
Part (a) is a marginal probability, so divide the advanced column total by the grand total: .
Part (b): condition on each row in turn. .
and .
Part (c) reverses the condition. Restrict to the 90 projects that advanced; 42 of them were engineering, so .
Notice the contrast: engineering supplied of all projects but about of the advancing ones.
Part (d): the advance rate is 0.20 in both science categories and 0.35 in engineering, a gap of 15 percentage points. Because the conditional probability of advancing changes when the category changes, category and advancing look associated.
(a) ; (b) 0.20 for life science, 0.20 for physical science, 0.35 for engineering; (c) ; (d) yes, engineering advanced at 0.35 against 0.20 for both science categories.
Problem 8
A regional bus network reports that 40% of its riders hold a monthly pass. Among pass holders, 75% ride at least five days a week. Among riders without a pass, 20% ride at least five days a week.
(a) Build a two-way table for a hypothetical 1000 riders. (b) Find the probability a rider rides at least five days a week. (c) Find the probability a rider holds a monthly pass given that they ride at least five days a week. (d) Are holding a pass and riding at least five days a week independent? Justify with a calculation.
Show the worked solution
Turn the percentages into counts out of 1000 riders. Pass holders: . Riders without a pass: .
Split the pass holders with their own rate: ride at least five days a week, so ride fewer.
Split the riders without a pass: ride at least five days a week, so ride fewer.
Assemble the table and check the columns: , , and .
Rides 5 or more days Rides fewer days Total Monthly pass 300 100 400 No pass 120 480 600 Total 420 580 1000 Part (b) is marginal: .
Part (c) reverses the condition given in the problem. Restrict to the 420 frequent riders, of whom 300 hold a pass: .
Part (d): independence would require , that is , which is false.
A second check agrees. The joint probability is , while the product of the marginals is , and .
(a) pass holders: 300 frequent, 100 not, 400 total; no pass: 120 frequent, 480 not, 600 total; (b) ; (c) ; (d) not independent, since but .