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 P(eventcondition)P(\text{event} \mid \text{condition}) in words first, where P(AB)P(A \mid B) is the probability of AA given that BB 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 shoesOwn shoesTotal
Bouldered3684120
Roped2496120
Total60180240

(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
  1. Check the table before you use it. The rows give 36+84=12036 + 84 = 120 and 24+96=12024 + 96 = 120, the columns give 36+24=6036 + 24 = 60 and 84+96=18084 + 96 = 180, and the margins agree with the grand total: 120+120=240120 + 120 = 240 and 60+180=24060 + 180 = 240.

  2. Part (a) asks for a marginal probability, a column total over the grand total. The rented-shoes column holds 60 visits, so P(rented)=60240=0.25P(\text{rented}) = \frac{60}{240} = 0.25.

  3. Part (b) asks for a joint probability, a single cell over the grand total. The bouldered-and-rented cell holds 36 visits, so P(boulderedrented)=36240=0.15P(\text{bouldered} \cap \text{rented}) = \frac{36}{240} = 0.15.

  4. Part (c) is also a joint probability. The roped-and-own-shoes cell holds 96 visits, so P(ropedown)=96240=0.4P(\text{roped} \cap \text{own}) = \frac{96}{240} = 0.4.

  5. All three parts divide by 240 because none of them restricted you to a smaller group. Nothing here says 'given'.

(a) P(rented)=0.25P(\text{rented}) = 0.25; (b) P(boulderedrented)=0.15P(\text{bouldered} \cap \text{rented}) = 0.15; (c) P(ropedown)=0.4P(\text{roped} \cap \text{own}) = 0.4.

Problem 2

A repair cafe logged the 200 items its volunteers worked on last season, by item type and whether the repair succeeded.

RepairedNot repairedTotal
Electronics364480
Textiles8436120
Total12080200

(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
  1. Confirm the margins: 36+44=8036 + 44 = 80 and 84+36=12084 + 36 = 120 across the rows, 36+84=12036 + 84 = 120 and 44+36=8044 + 36 = 80 down the columns, and 80+120=200=120+8080 + 120 = 200 = 120 + 80.

  2. Part (a): the condition is 'it was electronics', so throw away the textiles row and work inside the electronics row, which holds 80 items.

  3. Of those 80 electronics, the repaired cell holds 36, so P(repairedelectronics)=3680=0.45P(\text{repaired} \mid \text{electronics}) = \frac{36}{80} = 0.45.

  4. Part (b): the condition is now 'it was repaired', so work inside the repaired column, which holds 120 items.

  5. Of those 120 repairs, the electronics cell holds 36, so P(electronicsrepaired)=36120=0.30P(\text{electronics} \mid \text{repaired}) = \frac{36}{120} = 0.30.

  6. 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) P(repairedelectronics)=0.45P(\text{repaired} \mid \text{electronics}) = 0.45; (b) P(electronicsrepaired)=0.30P(\text{electronics} \mid \text{repaired}) = 0.30; (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.

CommuteErrandLeisureTotal
Weekday1809030300
Weekend4060100200
Total220150130500

(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
  1. 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.

  2. Part (a): the weekday row totals 300. Commute is 180300=0.60\frac{180}{300} = 0.60, errand is 90300=0.30\frac{90}{300} = 0.30, and leisure is 30300=0.10\frac{30}{300} = 0.10.

  3. Check the weekday row: 0.60+0.30+0.10=1.000.60 + 0.30 + 0.10 = 1.00.

  4. Part (b): the weekend row totals 200. Commute is 40200=0.20\frac{40}{200} = 0.20, errand is 60200=0.30\frac{60}{200} = 0.30, and leisure is 100200=0.50\frac{100}{200} = 0.50.

  5. Check the weekend row: 0.20+0.30+0.50=1.000.20 + 0.30 + 0.50 = 1.00.

  6. 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.

  7. 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
  1. List what you were given: 400 trees in all, 150 recent plantings, 100 damaged trees, and 24 trees that are both recent and damaged.

  2. Finish the recent row. If 24 of the 150 recent trees are damaged, then 15024=126150 - 24 = 126 recent trees are undamaged.

  3. Get the other row total: 400150=250400 - 150 = 250 trees were planted earlier.

  4. Split that row using the damage column: 10024=76100 - 24 = 76 damaged trees were planted earlier, so 25076=174250 - 76 = 174 earlier trees are undamaged.

  5. Assemble the table and check the second column and the grand total: 126+174=300126 + 174 = 300 and 100+300=400100 + 300 = 400.

    Storm damageNo damageTotal
    Planted in last 10 years24126150
    Planted earlier76174250
    Total100300400
  6. Part (b): condition on each row in turn. P(damagerecent)=24150=0.16P(\text{damage} \mid \text{recent}) = \frac{24}{150} = 0.16 and P(damageearlier)=76250=0.304P(\text{damage} \mid \text{earlier}) = \frac{76}{250} = 0.304.

  7. Part (c): now condition on the damage column, which holds 100 trees, of which 24 are recent plantings, so P(recentdamage)=24100=0.24P(\text{recent} \mid \text{damage}) = \frac{24}{100} = 0.24.

  8. 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) P(damagerecent)=0.16P(\text{damage} \mid \text{recent}) = 0.16 and P(damageearlier)=0.304P(\text{damage} \mid \text{earlier}) = 0.304; (c) P(recentdamage)=0.24P(\text{recent} \mid \text{damage}) = 0.24.

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 watchNo GPS watchTotal
Has run a marathon45550
Has not run a marathon135315450
Total180320500

(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
  1. Check the margins: 45+5=5045 + 5 = 50, 135+315=450135 + 315 = 450, 45+135=18045 + 135 = 180, 5+315=3205 + 315 = 320, and 50+450=500=180+32050 + 450 = 500 = 180 + 320.

  2. Part (a): the condition is having run a marathon, so the denominator is that row total, 50.

  3. P(GPS watchmarathon)=4550=0.90P(\text{GPS watch} \mid \text{marathon}) = \frac{45}{50} = 0.90.

  4. Part (b): the condition is now owning a GPS watch, so the denominator is that column total, 180.

  5. P(marathonGPS watch)=45180=0.25P(\text{marathon} \mid \text{GPS watch}) = \frac{45}{180} = 0.25.

  6. 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 18050=3.6\frac{180}{50} = 3.6.

  7. That factor is exactly the gap between the two answers, since 0.900.25=3.6\frac{0.90}{0.25} = 3.6. In words, nearly every marathoner owns a watch, but only a quarter of watch owners have run a marathon.

(a) P(GPS watchmarathon)=0.90P(\text{GPS watch} \mid \text{marathon}) = 0.90; (b) P(marathonGPS watch)=0.25P(\text{marathon} \mid \text{GPS watch}) = 0.25; (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.

OnlinePhoneBox officeTotal
First-time attendee1242848200
Returning attendee1774578300
Total30173126500

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
  1. 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.

  2. First-time row, total 200: online 124200=0.62\frac{124}{200} = 0.62, phone 28200=0.14\frac{28}{200} = 0.14, box office 48200=0.24\frac{48}{200} = 0.24. Check: 0.62+0.14+0.24=1.000.62 + 0.14 + 0.24 = 1.00.

  3. Returning row, total 300: online 177300=0.59\frac{177}{300} = 0.59, phone 45300=0.15\frac{45}{300} = 0.15, box office 78300=0.26\frac{78}{300} = 0.26. Check: 0.59+0.15+0.26=1.000.59 + 0.15 + 0.26 = 1.00.

  4. Compare channel by channel: online 0.62 against 0.59, phone 0.14 against 0.15, box office 0.24 against 0.26.

  5. The largest gap is 3 percentage points, on online buying. Knowing whether a buyer is new barely changes the channel you would predict.

  6. 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.

AdvancedDid not advanceTotal
Life science27108135
Physical science2184105
Engineering4278120
Total90270360

(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
  1. Check the margins first. Rows: 27+108=13527 + 108 = 135, 21+84=10521 + 84 = 105, 42+78=12042 + 78 = 120. Columns: 27+21+42=9027 + 21 + 42 = 90 and 108+84+78=270108 + 84 + 78 = 270. Grand total: 135+105+120=360=90+270135 + 105 + 120 = 360 = 90 + 270.

  2. Part (a) is a marginal probability, so divide the advanced column total by the grand total: P(advanced)=90360=0.25P(\text{advanced}) = \frac{90}{360} = 0.25.

  3. Part (b): condition on each row in turn. P(advancedlife science)=27135=0.20P(\text{advanced} \mid \text{life science}) = \frac{27}{135} = 0.20.

  4. P(advancedphysical science)=21105=0.20P(\text{advanced} \mid \text{physical science}) = \frac{21}{105} = 0.20 and P(advancedengineering)=42120=0.35P(\text{advanced} \mid \text{engineering}) = \frac{42}{120} = 0.35.

  5. Part (c) reverses the condition. Restrict to the 90 projects that advanced; 42 of them were engineering, so P(engineeringadvanced)=42900.467P(\text{engineering} \mid \text{advanced}) = \frac{42}{90} \approx 0.467.

  6. Notice the contrast: engineering supplied 1203600.333\frac{120}{360} \approx 0.333 of all projects but about 0.4670.467 of the advancing ones.

  7. 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) P(advanced)=0.25P(\text{advanced}) = 0.25; (b) 0.20 for life science, 0.20 for physical science, 0.35 for engineering; (c) P(engineeringadvanced)=42900.467P(\text{engineering} \mid \text{advanced}) = \frac{42}{90} \approx 0.467; (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
  1. Turn the percentages into counts out of 1000 riders. Pass holders: 0.40×1000=4000.40 \times 1000 = 400. Riders without a pass: 1000400=6001000 - 400 = 600.

  2. Split the pass holders with their own rate: 0.75×400=3000.75 \times 400 = 300 ride at least five days a week, so 400300=100400 - 300 = 100 ride fewer.

  3. Split the riders without a pass: 0.20×600=1200.20 \times 600 = 120 ride at least five days a week, so 600120=480600 - 120 = 480 ride fewer.

  4. Assemble the table and check the columns: 300+120=420300 + 120 = 420, 100+480=580100 + 480 = 580, and 420+580=1000420 + 580 = 1000.

    Rides 5 or more daysRides fewer daysTotal
    Monthly pass300100400
    No pass120480600
    Total4205801000
  5. Part (b) is marginal: P(5 or more days)=4201000=0.42P(\text{5 or more days}) = \frac{420}{1000} = 0.42.

  6. Part (c) reverses the condition given in the problem. Restrict to the 420 frequent riders, of whom 300 hold a pass: P(pass5 or more days)=3004200.714P(\text{pass} \mid \text{5 or more days}) = \frac{300}{420} \approx 0.714.

  7. Part (d): independence would require P(5 or more dayspass)=P(5 or more days)P(\text{5 or more days} \mid \text{pass}) = P(\text{5 or more days}), that is 0.75=0.420.75 = 0.42, which is false.

  8. A second check agrees. The joint probability is 3001000=0.30\frac{300}{1000} = 0.30, while the product of the marginals is 0.40×0.42=0.1680.40 \times 0.42 = 0.168, and 0.300.1680.30 \neq 0.168.

(a) pass holders: 300 frequent, 100 not, 400 total; no pass: 120 frequent, 480 not, 600 total; (b) P(5 or more days)=0.42P(\text{5 or more days}) = 0.42; (c) P(pass5 or more days)=3004200.714P(\text{pass} \mid \text{5 or more days}) = \frac{300}{420} \approx 0.714; (d) not independent, since P(5 or more dayspass)=0.75P(\text{5 or more days} \mid \text{pass}) = 0.75 but P(5 or more days)=0.42P(\text{5 or more days}) = 0.42.