Simulation for
Probability
Learn how to estimate probabilities by running experiments many times, using random number generators and the power of repetition.
What Is a Simulation?
A simulation is a method that uses random experiments to model a real-world process. Instead of calculating an exact probability with formulas, we run the experiment many times and observe what happens.
Key Vocabulary
Why Simulation Matters
Many real-world probability problems are too complex for exact formulas. Simulation lets us tackle problems that would otherwise be unsolvable at the introductory level.
The Law of Large Numbers
With few trials, results are volatile. With many trials, the estimate stabilizes near the true probability.
Experimental vs. Theoretical Probability
| Experimental (Simulation) | Theoretical (Calculated) | |
|---|---|---|
| Method | Run trials, observe outcomes | Count favorable / total outcomes |
| Formula | \(\frac{\text{successes}}{n}\) | \(\frac{|E|}{|S|}\) |
| Precision | Approximate (improves with more trials) | Exact |
| When to Use | Complex or unknown models | All outcomes equally likely & countable |
| Example | Flip a coin 1000 times | \(P(\text{heads}) = \frac{1}{2}\) |
How to Set Up a Simulation
Example 1: Coin Flip Simulation
Problem: Estimate the probability of getting exactly 2 heads when flipping a fair coin 3 times.
Coin Flip: Scaling Up
Let's see how the estimate improves as we increase the number of trials:
| Trials \( n \) | Successes | \(\hat{P}\) | Error from \(\frac{3}{8}\) |
|---|---|---|---|
| 10 | 5 | 0.500 | 0.125 |
| 50 | 21 | 0.420 | 0.045 |
| 200 | 78 | 0.390 | 0.015 |
| 1000 | 374 | 0.374 | 0.001 |
Example 2: Using a Random Digit Table
Problem: A basketball player makes 70% of her free throws. Estimate the probability she makes all 3 free throws in a bonus situation.
Random Digit Table: Walkthrough
Example 3: Dice Simulation
Problem: Estimate the probability that the sum of two dice equals 7.
Choosing the Right Model
The key to a good simulation is choosing a random device whose outcomes match the probabilities in the real situation:
| Situation | Model | Mapping |
|---|---|---|
| 50/50 outcome | Fair coin | H = success, T = failure |
| 1 in 6 chance | Fair die | Roll 1 = success, 2-6 = failure |
| 30% probability | Digits 0-9 | 0-2 = success, 3-9 = failure |
| 73% probability | Digits 00-99 | 00-72 = success, 73-99 = failure |
How Many Trials Do You Need?
Common Mistakes
Summary: Simulation at a Glance
| Step | Action | Key Point |
|---|---|---|
| 1. Identify | State the event of interest | Be specific |
| 2. Model | Choose an appropriate random device | Probabilities must match |
| 3. Define Trial | Specify what counts as one trial | One complete run |
| 4. Repeat | Run many trials (\( n \geq 100 \)) | More trials = better estimate |
| 5. Calculate | Compute \(\hat{P} = \frac{\text{successes}}{n}\) | This is your estimate |
Question 1 of 5
A student wants to simulate an event with probability 40% using single digits (0-9). Which digit assignment is correct?
Question 2 of 5
A simulation of 200 coin flips yielded 112 heads. What is the experimental probability of heads?
Question 3 of 5
Which statement best describes the Law of Large Numbers?
Question 4 of 5
To simulate a situation where there is a 1 in 6 chance of winning, which model is most appropriate?
Question 5 of 5
A student runs a simulation with 20 trials and gets an estimated probability of 0.65. The true probability is \( 0.50 \). What should the student do?