Simulating
Probabilities
Learn to design and run simulations that estimate probabilities, then evaluate how accurate those estimates really are.
What Is a Simulation?
A simulation is an experiment that uses random devices: coins, dice, random number generators, or spinners to model a real-world situation. Instead of computing an exact probability with formulas, you run many trials and observe what happens.
Why Simulate Instead of Calculate?
Key Vocabulary
The Law of Large Numbers
Theoretical vs Experimental Probability
| Theoretical | Experimental | |
|---|---|---|
| Source | Mathematical reasoning | Actual trials / simulation |
| Formula | \( P(E) = \frac{\text{favorable}}{\text{total}} \) | \( \hat{P}(E) = \frac{\text{successes}}{n} \) |
| Precision | Exact | Approximate (improves with more trials) |
| When to use | All outcomes equally likely & countable | Complex scenarios or verification |
How to Design a Simulation
Choosing the Right Device
The device must match the probabilities in the real situation. Each equally likely outcome of the device maps to an outcome in the problem.
Example 1: Flipping 3 Coins
Question: What is the probability of getting exactly 2 heads when flipping 3 fair coins?
Example 2: Free Throw Streak
Question: A player makes \(80\%\) of free throws. What is the probability she makes all 5 shots in a set?
Example 3: The Birthday Problem
Question: In a class of 23 students, what is the probability that at least two share a birthday? This is hard to calculate directly: simulation to the rescue!
Evaluating Accuracy
How do you know if your simulation estimate is any good? Two key strategies:
Variability Shrinks with More Trials
The Simulation Workflow
Common Mistakes
Simulation Summary
| Concept | What It Means | Example |
|---|---|---|
| Trial | One complete run | Flip 3 coins once |
| Success | Outcome you are counting | Exactly 2 heads |
| Relative Frequency | \( \frac{\text{successes}}{n} \) | \( \frac{38}{100} = 0.38 \) |
| Accuracy | Improves as \( n \) grows | \( n = 1000 \) beats \( n = 50 \) |
| Device Choice | Must match real \( P \) | RNG 1-10 for \( P = 0.7 \) |
Question 1 of 5
A simulation of 200 trials produces 56 successes. What is the experimental probability?
Question 2 of 5
A soccer player scores on \(40\%\) of penalty kicks. Which random device best models one kick?
Question 3 of 5
According to the Law of Large Numbers, what happens as you increase the number of trials?
Question 4 of 5
You want to simulate the probability of rolling at least one 6 when rolling two dice. What is one trial?
Question 5 of 5
Two students each simulate the same event. Student A runs 50 trials and gets \( \hat{P} = 0.42 \). Student B runs 500 trials and gets \( \hat{P} = 0.36 \). Whose estimate is likely more accurate?