Probability Rules and Conditional Probability
Interpret probability as long-run frequency, apply the complement and addition rules, read two-way tables and avoid the base-rate trap.
Welcome back!
Step 1 of 14Learn
What a probability means
A forecast says there's a 30% chance of rain tomorrow. Tomorrow will happen only once, so what does 30% mean? It means that on days with conditions like these, it rains on about 30 out of every 100.
That's the core idea: the probability of an event is the proportion of times it would happen over a very long run of repetitions. Probabilities run from 0 (impossible) to 1 (certain), and are often written as percentages.
Flip a fair coin 10 times and you might get 7 heads. Flip it 10,000 times and you'll get very close to 50% heads. This is the law of large numbers: as the number of trials grows, the observed proportion settles down to the true probability.
The law of large numbers says nothing about the short run, though. After a fair coin lands heads five times in a row, many people feel tails is "due." It isn't. The coin has no memory; the chance of tails on the next flip is still 1/2. This mistaken belief is the gambler's fallacy, and casinos are built on it.
Probability is the language of uncertainty, and it's the bridge to inference. When we later ask, "Could this result have happened by chance?", we're asking a probability question.
Step 2 of 14Practice · Diagram
The probability scale
Which marker shows an event with probability 1/6?
Tap the shape that answers the question, then press Check.
- Impossible
Rolling a 7 on a standard die.
- Roll a 6
1 out of 6 equally likely faces, about 0.17.
- 30% rain
On days like this, it rains about 30 times in 100.
- Heads
A fair coin lands heads half the time in the long run.
- Certain
The sun rising tomorrow, for practical purposes.
Step 3 of 14Practice · True or false
A fair coin has landed heads 6 times in a row. On the next flip, tails is more likely than heads.
Step 4 of 14Learn
The basic rules
A few rules cover most probability calculations. Let A be an event.
- 0 ≤ P(A) ≤ 1 for any event.
- The probabilities of all possible outcomes add up to 1.
- Complement rule: P(not A) = 1 − P(A). If there's a 30% chance of rain, there's a 70% chance of no rain.
The complement rule is a powerful shortcut for "at least one" questions. What's the probability of rolling at least one six in four rolls of a die?
Counting all the ways to get one, two, three or four sixes is painful. Instead, find the probability of no sixes and subtract from 1. Each roll has a 5/6 chance of not being a six, and the rolls are independent, so:
P(no sixes) = (5/6)4 ≈ 0.482 P(at least one six) = 1 − 0.482 = 0.518
Many people guess 4 × 1/6 = 0.667, adding the chances. That reasoning breaks down quickly: with seven rolls it would give more than 1, which is impossible. Adding probabilities only works for events that can't happen together, as you'll see next.
Step 5 of 14Practice · Work it out
A factory's machine produces a defective part 10% of the time, independently. If you pick 3 parts, what is the probability that at least one is defective? Give a decimal to three places.
Step 6 of 14Learn
The addition rule
What's the probability of drawing a heart or a face card from a standard 52-card deck?
There are 13 hearts and 12 face cards (jack, queen, king in four suits). But 3 cards are both: the jack, queen and king of hearts. Adding 13 + 12 counts those three twice. So:
P(heart or face) = 13/52 + 12/52 − 3/52 = 22/52 ≈ 0.423
That's the general addition rule:
P(A or B) = P(A) + P(B) − P(A and B)
In probability, "or" means at least one of the events happens (possibly both).
If two events can't happen at the same time, they are mutually exclusive (also called disjoint), and P(A and B) = 0. Then the rule simplifies to P(A or B) = P(A) + P(B). Rolling a 2 or a 5 on one die: 1/6 + 1/6 = 1/3.
A survey example: 60% of students own a laptop, 45% own a tablet, and 25% own both. The probability that a random student owns a laptop or a tablet is 0.60 + 0.45 − 0.25 = 0.80. Without subtracting the overlap, you'd get 1.05, a probability above 1, which is a clear sign you've double-counted.
Step 7 of 14Practice · Diagram
Hearts or face cards: don't count the overlap twice
Tap the region that the addition rule subtracts.
Tap the shape that answers the question, then press Check.
- Hearts (13)
- Face cards (12)
- Hearts (13) only
10 hearts that are not face cards.
- A-10 of hearts
- Face cards (12) only
9 face cards that are not hearts.
- J, Q, K of other suits
- Hearts (13) + Face cards (12) (overlap)
3 cards in both sets. Adding 13 + 12 counts them twice, so subtract them once.
- J, Q, K of hearts
Step 8 of 14Learn
Two-way tables and conditional probability
A company surveys 400 adults about whether they use its app:
| Uses app | Doesn't | Total | |
|---|---|---|---|
| Under 30 | 120 | 30 | 150 |
| 30 and over | 80 | 170 | 250 |
| Total | 200 | 200 | 400 |
Overall, P(uses app) = 200/400 = 0.50.
But what if we only look at people under 30? Among those 150, 120 use the app. That's a conditional probability: the probability of one event given that another has occurred, written with a vertical bar:
P(uses app | under 30) = 120/150 = 0.80
The formula is P(A | B) = P(A and B) / P(B). Here, P(app and under 30) = 120/400 = 0.30 and P(under 30) = 150/400 = 0.375, so 0.30/0.375 = 0.80. Same answer: conditioning just restricts attention to one row or column of the table.
Order matters. P(under 30 | uses app) asks a different question: among the 200 app users, how many are under 30? That's 120/200 = 0.60. The two conditional probabilities share a numerator but have different denominators: "given" tells you which group goes on the bottom.
Step 9 of 14Chart
App use by age group (400 adults)
Conditioning on a row means looking only inside that bar. The two bars have very different proportions of app users, which is what "not independent" looks like.
| Item | Uses app | Doesn't |
|---|---|---|
| Under 30 | 120 | 30 |
| 30 and over | 80 | 170 |
Step 10 of 14Practice · Work it out
Using the app survey table, what is P(uses app | 30 and over)? Give a decimal.
Step 11 of 14Learn
Independence and the base-rate trap
Two events are independent if knowing one occurred doesn't change the probability of the other: P(A | B) = P(A). Coin flips are independent. In the app survey, age and app use are not: P(app) = 0.50 overall but 0.80 for people under 30.
For independent events, the multiplication rule is simple: P(A and B) = P(A) × P(B). In general, P(A and B) = P(A) × P(B | A).
Conditional probability explains one of the most surprising results in statistics. A disease affects 1% of people. A test catches 99% of people who have it and wrongly flags 1% of healthy people. You test positive. What's the chance you're sick?
Most people say 99%. Imagine 10,000 people:
- 100 have the disease; the test catches 99 of them.
- 9,900 are healthy; 1% of them, 99, test positive anyway.
So 99 + 99 = 198 people test positive, and only 99 are sick: P(disease | positive) = 99/198 = 50%.
The disease is so rare that false positives from the huge healthy group match the true positives. Ignoring how common something is to begin with is called base-rate neglect. It's why doctors confirm surprising results with a second test.
Step 12 of 14Try the calculator
What does a positive test really mean?
Set how common the condition is and how accurate the test is. The output is the probability that a person who tests positive actually has the condition.
- True positives per 10,000 people
- 99
- False positives per 10,000 people
- 99
- P(condition | positive test)
- 0.5
Step 13 of 14Note
Step 14 of 14Practice · Choose one
In the app survey, P(uses app) = 0.50 and P(uses app | under 30) = 0.80. What can you conclude?
Lesson complete!