01 / 20

Evaluating Models
with Data & Simulation

Does a model match reality? Use simulation to decide whether observed results are surprising or just chance.

Statistics & Probability

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

Model
A stated assumption about probabilities, e.g. \( p = 0.5 \).
Data
Actual observed results from the real process.
Simulation
Many fake trials run assuming the model is true.

The Coin Example: 5 Tails in a Row

Model says: \( P(\text{heads}) = 0.5 \)
T T T T T Should this surprise us?

Why Use Simulation?

For complex situations, computing exact probabilities by hand is hard. Simulation repeats the random process thousands of times under the model.

1
Assume the model is true (e.g. each flip is heads with \( p = 0.5 \)).
2
Run many trials generating fake data from that model.
3
See how often a result as extreme as our data appears.

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

observed typical results (common) extreme (rare)

Surprising vs. Impossible

Surprising
Rare under the model but can happen. Gives us reason to doubt, not proof.
Consistent
Result occurs often in simulation. Model is plausible.

How to Apply It

1
State the model. Write the assumed probability clearly.
2
Identify the observed result from the real data.
3
Simulate many trials assuming the model is true.
4
Find the proportion of trials as extreme as the observed result.
5
Decide: if that proportion is small, question the model.

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.

54 heads center near 50

Common Mistakes

✕ Rare = Impossible
A rare result still happens sometimes. It signals doubt, not certainty.
✕ Tiny Samples
Judging a model from a handful of trials is unreliable. More data is better.
✕ Ignoring "Or More Extreme"
Count results as extreme or more than the data, not exactly equal.

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?

Key Takeaways

1
A model assigns probabilities; data tests it.
2
Simulation shows how often extreme results appear if the model is true.
3
A rare result (e.g. \( P < 0.05 \)) is evidence to question the model.
4
Surprising is not impossible — simulation measures doubt, not proof.