Evaluating Models
with Data & Simulation
Does a model match reality? Use simulation to decide whether observed results are surprising or just chance.
What Is a Probability Model?
A model is a claim about how a random process behaves. It assigns probabilities to outcomes before we collect any data.
The big question of this lesson: when should real data make us doubt a model?
Three Key Terms
The Coin Example: 5 Tails in a Row
Why Use Simulation?
For complex situations, computing exact probabilities by hand is hard. Simulation repeats the random process thousands of times under the model.
The Decision Rule
A common (not absolute) threshold: if the result would occur less than about 5% of the time, \( P < 0.05 \), we treat it as surprising.
Reading a Simulation Distribution
Surprising vs. Impossible
How to Apply It
Example 1: 5 Tails in a Row
Model: \( P(\text{heads}) = 0.5 \). Data: 5 tails in 5 flips.
This is below 5%, so it is somewhat surprising. But for only 5 flips, many would say it is not yet strong enough evidence to reject a fair coin. We might flip more to gather data.
Example 2: A Suspicious Die
Model: A fair die rolls a six with \( P = \frac{1}{6} \approx 0.167 \). Data: in 60 rolls, we get 20 sixes.
A simulation of fair-die rolls almost never produces 20 or more sixes in 60 rolls. The proportion is far below 5%, so this is strong evidence the die is not fair.
Example 3: Consistent Result
Model: A coin is fair, \( P(\text{heads}) = 0.5 \). Data: 100 flips give 54 heads.
Common Mistakes
Summary: Consistent or Not?
| Consistent | Question Model | |
|---|---|---|
| Simulation outcome | Result is common | Result is rare |
| Proportion as extreme | Large (e.g. \( > 0.05 \)) | Small (e.g. \( < 0.05 \)) |
| Conclusion | Model plausible | Doubt the model |
Question 1 of 5
A model claims a coin is fair, \( P(\text{heads}) = 0.5 \). What is the probability of getting 5 tails in a row?
Question 2 of 5
In a simulation, a result as extreme as the observed data occurred in only 2% of trials. What should you conclude?
Question 3 of 5
A fair coin model is tested. 100 flips give 54 heads, and simulations of fair coins commonly land between 40 and 60 heads. What is the best conclusion?
Question 4 of 5
Why do we run a simulation when evaluating a model?
Question 5 of 5
A fair die model expects \( 60 \times \frac{1}{6} = 10 \) sixes in 60 rolls, but you observe 20 sixes, and simulation almost never reaches that many. What is the conclusion?