Study guides & original practice
Conditional probability from two-way tables
For P(A | B), first restrict the table to the group B named after “given.” Then divide the count that meets both A and B by the total in B. The given group determines the denominator. Use the whole-table total only when the question selects from the whole table.
Published November 8, 2026. The data and exercises below are fictional, original teaching examples. Each probability describes a student selected uniformly at random from the stated group; the examples do not claim anything about real students.
Worked example: what does “given” change?
| Travel to school | School lunch | Packed lunch | Total |
|---|---|---|---|
| Bus | 36 | 24 | 60 |
| Walk | 12 | 18 | 30 |
| Other | 12 | 18 | 30 |
| Total | 60 | 60 | 120 |
Find the probability that a student brings a packed lunch, given that the student walks.
- Name the eligible group: the walk row, containing 30 students.
- Within that row, find the desired outcome: 18 bring packed lunches.
- Divide: P(packed | walk) = 18/30 = 0.60 = 60%.
- Read the result in words: 60% of the walkers in this table bring packed lunches.
Cover the bus and other rows while solving. Their counts are real parts of the table, but those students are not eligible under this condition.
The same cell can answer three different questions
- P(packed | walk) = 18/30 = 60%: select from walkers.
- P(walk | packed) = 18/60 = 30%: select from packed-lunch students.
- P(walk AND packed) = 18/120 = 15%: select from everyone and require both characteristics.
The numerator is 18 in all three, but the sample space changes. “Given,” “among” and “of the students who” can all introduce a restricted group. Read the entire sentence before choosing the row or column.
Connect counts to the probability formula
For P(B) > 0, P(A | B) = P(A AND B) / P(B). With equally likely selections from a table of N people, this becomes (count in both / N) ÷ (count in B / N). The N cancels, leaving count in both / count in B.
For the walkers example: (18/120) ÷ (30/120) = 18/30. This is why dividing the intersection count by the given-group count works. If the given group has zero members, this table-based conditional probability is undefined; report that the condition cannot be used, rather than dividing by zero or answering zero.
Eight practice problems with answers
Use the travel-and-lunch table for questions 1–7. Question 8 supplies a new dataset. Before calculating, write “eligible group = …” and its size.
1. Condition on a row
Among students who take the bus, what fraction bring a packed lunch?
Show answer and denominator
The eligible group is the 60 bus riders. Of those, 24 bring a packed lunch: 24/60 = 2/5 = 40%. The denominator is the bus row total, not 120.
2. Reverse the condition
Among students who bring a packed lunch, what fraction walk?
Show answer and denominator
Restrict to the 60 packed-lunch students. There are 18 walkers in that column, so 18/60 = 3/10 = 30%.
3. Compare the reversed question
What is the probability of bringing a packed lunch, given that the selected student walks?
Show answer and denominator
Now restrict to the 30 walkers. The same 18 students satisfy both descriptions, but the denominator changes: 18/30 = 3/5 = 60%. Reversing the condition changed 30% into 60%.
4. Recognize an intersection
One student is selected uniformly from all 120. What is the probability that the student walks AND brings a packed lunch?
Show answer and denominator
There is no restriction before selection. Use the 18 students in the intersection over all 120: 18/120 = 3/20 = 15%. This differs from both conditional probabilities above.
5. Keep the condition when taking a complement
Given that the student does not take the bus, what is the probability that the student has school lunch?
Show answer and denominator
The eligible group contains the walk and other rows: 30 + 30 = 60. Favorable students number 12 + 12 = 24, so 24/60 = 40%. Do not use the total school-lunch column of 60 as the numerator: that includes bus riders who are outside the condition.
6. Read a union within a condition
Among packed-lunch students, what is the probability that a student walks OR uses another mode besides bus and walking?
Show answer and denominator
Within the packed-lunch column, the walk and other rows are disjoint. Add their counts: (18 + 18)/60 = 36/60 = 60%. Here adding works because each student has exactly one travel category.
7. Repair a wrong denominator
A student claims P(bus | school lunch) = 36/120 = 30%. Identify the first error and correct the result.
Show answer and denominator
The numerator 36 is correct, but the condition selects only 60 school-lunch students. Use 36/60 = 60%. The proposed 36/120 answers the different question P(bus AND school lunch).
8. Complete a second table
A different club has 50 members. Twenty choose coding and the rest choose art; each chooses exactly one. There are 18 beginners, including 8 who choose coding. Among art members, what fraction are beginners?
Show answer and denominator
Art total = 50 − 20 = 30. Art beginners = 18 − 8 = 10. Therefore P(beginner | art) = 10/30 = 1/3, about 33.3%. For a check, the four interior counts are coding beginner 8, coding experienced 12, art beginner 10 and art experienced 20; they sum to 50.
Check your denominator before your calculator
- Underline the condition. If there is none, identify the original selection group.
- Count everyone eligible under that condition, including those who do not meet the desired outcome.
- Count only the eligible people who also meet the desired outcome.
- Check that the numerator is no larger than the denominator and that your answer lies between 0 and 1.
- Translate the result back into a sentence naming the group.
A two-way table does not automatically imply independence. To check whether the condition changes the probability, compare the conditional fraction with the corresponding overall fraction. Work through the independence check using a table.
For a short review, make two cards that reverse a condition: “packed given walk” and “walk given packed.” Explain the denominator on each using the free manual flashcard maker, then try a changed table without looking at these answers.
Sources and scope
The conditional-probability method is supported by OpenStax: Contingency Tables. The College Board AP Statistics course overview includes conditional probability and independent events. This is independent practice for those concepts, not an official exam question set or a predicted score.
Practice your own class material
Generate flashcards, notes and quizzes from your lecture notes in Exam Cat.
Try 7 days free ↗Yearly plan: 7 days free, then $39.99/year. Cancel before the trial ends to avoid a charge.
APUSH study guide · Biology study guide · APUSH practice · All study tools
