Experimental Probability and the Law of Large Numbers
Estimate probability from data, see why small samples wobble and large ones settle down, and use probabilities to predict how often events will happen.
Welcome back!
Step 1 of 12Learn
What actually happened
Theoretical probability comes from reasoning about equally likely outcomes. Experimental probability comes from data:
Experimental P(event) = number of times it happened / number of trials
A basketball player makes 42 of her last 60 free throws. Her experimental probability of making a free throw is 42/60 = 0.7. There is no way to get that number from symmetry; shots are not like coin flips.
Experimental probability also lets you test a theory. Flip a coin 10 times and you might get 7 heads, an experimental probability of 0.7 even though the theoretical probability is 0.5. That does not mean the coin is unfair. Ten flips is a tiny experiment, and results that far from 50% happen often by pure chance.
Some other names you will see: relative frequency means the same thing as experimental probability, and a trial is one repetition of the experiment, such as one flip or one shot.
Step 2 of 12Practice · Work it out
In a survey of 200 students, 46 said they walk to school. What is the experimental probability that a randomly chosen student from this group walks to school, as a percent?
Step 3 of 12Learn
The law of large numbers
Flip a fair coin 10 times and the share of heads could easily be 30% or 70%. Flip it 1,000 times and you will almost certainly land between about 47% and 53%. Flip it a million times and the share of heads will sit within a fraction of a percent of 50%.
This is the law of large numbers: as the number of trials grows, the experimental probability gets closer and closer to the true probability.
The key word is share, not count. After 1,000 flips you might have 520 heads and 480 tails, a gap of 40. After 100,000 flips the gap might be 300. The gap in counts can grow, while the gap in percentages shrinks.
How fast does it settle? The typical wobble shrinks with the square root of the number of trials. To cut the wobble in half, you need four times as many trials. The explorer shows this for any true probability p: the curve is the margin that about 95% of experiments stay within.
Step 4 of 12Chart
Share of heads as the flips pile up
| Number of flips | Heads so far |
|---|---|
| 10 | 70% |
| 20 | 60% |
| 50 | 56% |
| 100 | 47% |
| 200 | 52.5% |
| 500 | 49.2% |
| 1,000 | 50.8% |
| 5,000 | 49.7% |
| 10,000 | 50.1% |
Step 5 of 12Explore
How much do results wobble?
x is the number of trials. The curve shows the margin, in percentage points, that about 95% of experiments land within around the true probability p (the formula is 2 × 100 × √(p(1 − p)/n)).
- Margin after 10 trials
- 31.6 points
- Margin after 100 trials
- 10 points
- Margin after 1,000 trials
- 3.2 points
Step 6 of 12Practice · Estimate
Use the explorer with p = 0.5. After 100 coin flips, about 95% of experiments land within how many percentage points of 50% heads?
Step 7 of 12Learn
Predicting with probability
Probabilities turn into predictions with one multiplication:
Expected number of times = probability × number of trials
The free-throw shooter with a 0.7 success rate who takes 20 shots is expected to make 0.7 × 20 = 14. She will not make exactly 14 every game; some games 11, some 17. Expected means the long-run average.
Companies use this every day. If a factory inspects 400 phone chargers and finds 6 defective, its experimental defect rate is 6/400 = 1.5%. For a shipment of 10,000 chargers, it should expect about 0.015 × 10,000 = 150 defects and plan replacements accordingly.
Experiments are also the only option when no symmetry exists: the chance a thumbtack lands point-up, a new medicine works, or a website visitor clicks a button. When the math gets too complicated, people run simulations: computers repeat a random process millions of times and count the results, using the law of large numbers to get an accurate estimate.
Step 8 of 12Practice · Work it out
A factory inspects 400 parts and finds 6 defective. Based on this rate, about how many defective parts should it expect in a batch of 10,000?
Step 9 of 12Note
Step 10 of 12Practice · Chart
A new restaurant's average rating as reviews add up
Tap the average you would trust most to predict your own meal.
Tap the bar that answers the question, then press Check.
Step 11 of 12Practice · What would you do?
What would you do?
Leo flips a coin 10 times and gets 8 heads. He says, "This coin is clearly unfair, it lands heads 80% of the time." What is the best response?
Step 12 of 12Practice · Choose one
For which of these would you need experimental probability, because there is no symmetry to reason from?
Lesson complete!