We often need to find the probability of an event when we already know another piece of information is true.
1
How a Condition Shrinks the Universe
Suppose we track 100 commuters heading to work and organize them into a two-way table by how they commuted (Took Train or Drove) and whether they arrived On Time or Late. We want to find the probability that a randomly chosen commuter was late once we already know they took the train.
How a Condition Shrinks the Universe
When no extra information is given, every commuter in the table could be picked, so the whole group of 100 stays on the bottom of the fraction:
Probability=The whole universeThe group we care about
P(Late)P(Drove and Late)=10030=30%,=10020=20%
Once we are told the commuter took the train, we find the probability by looking only at that single row:
Text solution:
Shrink the universe to the Took Train row: Cross out the 40 drivers so the group we are choosing from shrinks from all 100 commuters down to the 60 train riders on the bottom of the fraction.
Total Train=50+10=60
Divide the overlap cell by the new universe: Put the 10 commuters who both took the train and arrived late on top of the 60 train riders.
Total TrainTrain and Late=6010≈16.7%
So a train rider has about a 16.7% chance of arriving late, compared to 30% for a commuter chosen from the whole table.
2
Flipping the Condition
Now let's see what happens when two questions use the exact same categories, Took Train and Late, but swap which one we already know: what is the chance a commuter was late if they took the train, versus the chance they took the train if they were late?
Flipping the Condition
Both questions look at the same overlap cell of 10 commuters who took the train and arrived late, but they compare those 10 people against different universes on the bottom:
If Train, chance Late(only the Train row):Total TrainTrain and Late=6010≈16.7%If Late, chance Train(only the Late column):Total LateTrain and Late=3010≈33.3%
So only 16.7% of train riders arrived late, whereas 33.3% of the late commuters came from the train.
On a test, write down the bottom of your fraction before you look for the top. The condition you already know comes right after phrases like "Given that...", "If...", "Of the people who...", or "Among those who...":
Conditional probability=Condition totalOverlap
Try switching between the whole table, the Took Train row, and the Late column below to see how the 10 commuters in the overlap stay on top while the total on the bottom changes.
Focusing on a single row or column changes the total on the bottom of the fraction, while the same overlap stays on top.
3
Conditional Probability Notation and Formula
Next, we need a short way to write conditional probability, and a way to calculate it when a problem only gives overall percentages instead of a table of counts, such as telling us that 10% of commuters took the train and were late, and 60% of commuters took the train.
Conditional Probability Notation and Formula
P(Late∣Train)=?
In P(Late∣Train), the vertical bar ∣ is read "given that" or "out of" (it is not a division sign). Whatever comes after the bar is the condition that becomes the new universe on the bottom:
P(Late∣new universeTrain)P(Train∣new universeLate)=Total TrainTrain and Late=6010,=Total LateTrain and Late=3010
When we divide both the top and bottom counts by the grand total of 100 commuters, each count turns into an overall probability out of the whole group:
P(Late∣Train)=6010=1006010010=0.600.10≈16.7%
This gives the conditional probability formula for percentages and probabilities:
P(Late∣Train)=new universeP(Train)P(Late and Train)overlap
4
Building a Two-Way Table from Percentages
Dividing P(Late and Train) by P(Train) works in one step when a problem gives us both the overlap percentage and the condition's percentage. What if a word problem gives conditional percentages in one direction, and asks for the conditional probability flipped the other way around?
At a company, 20% of employees work remotely. Of the remote workers, 80% hit their sales target. Of the in-office workers, 50% hit their sales target. If you pick a random employee who hit their target, what is the probability they work remotely, P(Remote∣Hit Target)?
Building a Two-Way Table from Percentages
Text solution:
Split 100 employees into Remote and In-Office row totals: Start the table with an easy grand total of 100 employees so 20% remote gives the two row totals by subtraction.
Total RemoteTotal In-Office=20% of 100=20,=100−20=80
Fill the Hit Target cells inside each row: Take 80% of the 20 remote workers and 50% of the 80 in-office workers to find how many hit their target in each group (leaving 20−16=4 and 80−40=40 who missed).
Remote and Hit Target=80% of 20=16,In-Office and Hit Target=50% of 80=40
Add the Hit Target column and divide by the new universe: Add down the Hit Target column to get the condition total of 56, then put the 16 remote employees who hit their target on top.
P(Remote∣Hit Target)=Total Hit TargetRemote and Hit Target=16+4016=5616≈28.6%
So about 28.6% of the employees who hit their sales target work remotely, even though 80% of remote workers hit their target.
5
Spotting Independence in a Two-Way Table
Two events are independent when knowing one happened tells you nothing about the chance of the other. Let's check our commuter table to see whether taking the train and arriving late are independent.
Spotting Independence in a Two-Way Table
To test for independence, we compare the overall probability of arriving late across all 100 commuters with the probability of arriving late when zoomed in on the 60 train riders:
Whole table:P(Late)Zoomed in on Train:P(Late∣Train)=10030=30%=6010≈16.7%
Because zooming in on the Took Train row drops the chance of being late from 30% to 16.7%, how someone commutes changes their chance of arriving late, so taking the train and being late are not independent.
Try changing the split between On Time and Late inside the Took Train row below to see when the percentage bars for P(Late) and P(Late∣Train) match.
Zooming in on the train row changes the chance of being late unless the train row has the exact same percentage of late commuters as the whole table.
Key concepts
Every conditional probability question builds the same fraction: the overlap where both events happen on top, divided by the new universe we are zooming in on at the bottom. First check whether there is a condition at all. If a question simply asks for P(Drove and Late) with no "given," "if," "of the people who," or "among those who," do not shrink the universe; keep all 100 people on the bottom (10020=20%).
When there is a condition, choose what to do based on what the problem gives you:
A two-way table of counts
Put the row or column total for the condition after the bar on the bottom first, and put the shared overlap cell on top. Flipping the condition keeps the overlap on top the same and swaps the universe on the bottom:
When a problem already gives both percentages out of the whole group, divide them directly:
P(Late∣Train)=P(Train)P(Late and Train)=0.600.10≈16.7%
Percentages within each group and a flipped question
When a problem gives conditional percentages in one direction (like 80% of the 20% remote workers and 50% of the 80% in-office workers) and asks for the flipped condition P(Remote∣Hit Target), start a two-way table with 100 people, fill the cells, and add the new condition column (16+4016=5616≈28.6%).
Testing independence
Compare the overall probability with the conditional probability. If zooming in changes the percentage (P(Late)=30% vs. P(Late∣Train)≈16.7%), the events are not independent; if the percentage stays the exact same, they are independent.
6
Practice
1
A coffee shop tracks 200 drink orders in a two-way table. Iced drinks: 50 Small, 70 Large, Total 120. Hot drinks: 60 Small, 20 Large, Total 80. Column totals: 110 Small, 90 Large, Grand Total 200. Among the customers who ordered an iced drink, what is the probability they ordered a large?
Watch out for dividing by the grand total of 200 (which gives 20070=35%, the overall probability of Iced and Large) or by the Large column total of 90 (which flips the condition to P(Iced∣Large)=9070≈77.8%).
Look at the phrase "Among the customers who ordered an iced drink." Which row or column is your new universe, and what is its total?
The condition "ordered an iced drink" uses the Iced row total of 120 as the bottom of the fraction, with 70 in the Iced and Large overlap cell on top. Watch out for dividing by the grand total of 200 (which gives 20070=35%, the overall probability of Iced and Large) or by the Large column total of 90 (which flips the condition to P(Iced∣Large)=9070≈77.8%).
P(Large∣Iced)=12070≈58.3%
2
A survey of club members records whether they play a sport and whether they play an instrument. Plays Sport: 15 play an instrument, 25 do not. No Sport: 30 play an instrument, 10 do not. Find both P(Instrument∣Sport) and P(Sport∣Instrument).
The problem only lists the inside cells. Which two cells do you add together to get the total for the group after the bar in each part?
First add the cells in each group to find the row and column totals: Total Sport=15+25=40 and Total Instrument=15+30=45. Don't divide 15 by the 25 who do not play an instrument (giving 2515=60%) or by the 30 who do not play a sport (giving 3015=50%), and don't swap the two denominators:
In a town, 40% of households own a dog, 25% own a cat, and 10% own both a dog and a cat. What is the probability that a randomly chosen household owns a cat, given that it owns a dog?
Be careful not to put the Cat percentage on the bottom (0.250.10=40%, which finds P(Dog∣Cat) instead).
You already have the overlap percentage and the percentage for each single group. Which of the two single-group percentages comes after "given that" and goes on the bottom?
The condition "given that it owns a dog" puts P(Dog)=0.40 on the bottom and the overlap P(Cat and Dog)=0.10 on top. Be careful not to put the Cat percentage on the bottom (0.250.10=40%, which finds P(Dog∣Cat) instead).
P(Cat∣Dog)=P(Dog)P(Cat and Dog)=0.400.10=25%
4
A theater tracks 200 moviegoers. Bought Popcorn: 36 saw a comedy, 84 saw an action movie, Total 120. No Popcorn: 24 saw a comedy, 56 saw an action movie, Total 80. Column totals: 60 Comedy, 140 Action, Grand Total 200. Are seeing a comedy and buying popcorn independent? Show the probabilities you compare.
How does the overall percentage of moviegoers who saw a comedy across all 200 people compare to the percentage who saw a comedy inside the Bought Popcorn row?
Compare the overall probability P(Comedy) with the conditional probability P(Comedy∣Popcorn). Don't compare the raw counts (36 vs. 24) and think they are dependent because 36=24, and don't divide 36 by 200 (18%) instead of the Popcorn row total of 120:
Because knowing someone bought popcorn leaves the probability of seeing a comedy unchanged at 30%, the two events are independent (30%).
5
At an airport, 30% of flights are international and the rest are domestic. Of the international flights, 10% are delayed. Of the domestic flights, 20% are delayed. If you pick a random flight that is delayed, what is the probability it is an international flight?
Don't take 10% and 20% of 100 directly (which gives 10+2010≈33.3%), and don't divide the 3 delayed international flights by all 100 flights (which gives 1003=3%) instead of the 3+14=17 total delayed flights.
Start a two-way table with 100 total flights. Once you split the 100 flights into international and domestic, how many flights inside each row are delayed?
Out of 100 flights, 30 are international (10% of 30=3 delayed, 27 on time) and 70 are domestic (20% of 70=14 delayed, 56 on time). Don't take 10% and 20% of 100 directly (which gives 10+2010≈33.3%), and don't divide the 3 delayed international flights by all 100 flights (which gives 1003=3%) instead of the 3+14=17 total delayed flights.