SECTION 1
Historical Context & Motivation
Humans have been grappling with chance for thousands of years, from ancient dice games to modern weather forecasts. For a long time, mathematicians could only calculate probability for simple, well-defined scenarios like coin flips and card draws. But what happens when a real-world problem is too complicated for a neat formula? That is exactly where probability simulations come in — they let us run experiments, collect data, and estimate probabilities that would otherwise be extremely difficult to compute.
The idea of using repeated random trials to solve problems grew from the work of gamblers, scientists, and eventually computer pioneers. The timeline below highlights key moments that shaped the simulation approach we use today.
1654 • The Birth of Probability Theory
1777 • Buffon's Needle Experiment
1946 • The Monte Carlo Method
2000s • Simulations Go Mainstream
The central question this lesson addresses is: How can we design a random experiment to estimate the probability of an event, and how do we know whether our estimate is accurate? By the end, you will be able to set up a simulation, run it, and evaluate how close your experimental estimate is to the true probability.
SECTION 2
Core Principles & Definitions
Before we build a simulation, we need to understand the vocabulary and logic behind it. A probability simulation is a model that uses random processes — like flipping coins, rolling dice, or generating random numbers — to mimic a real-world event. The goal is to repeat the random process many times and track how often our target outcome occurs.
Simulation
Theoretical vs. Experimental Probability
Law of Large Numbers
Random Number Generator (RNG)
Accuracy of the Estimate
KEY TAKEAWAY
SECTION 3
Visual Explanation — Convergence of Experimental Probability
The diagram below illustrates one of the most important ideas in simulation: as you increase the number of trials, your experimental probability bounces around at first but gradually settles closer and closer to the theoretical probability. The graph shows a simulation of flipping a fair coin, tracking the running proportion of heads.
The graph reveals a critical lesson: a small number of trials can produce misleading results. After just one flip you might see 100 % heads, but after 500 flips the proportion is almost exactly 0.50. When you design a simulation, plan for enough trials so the estimate has time to stabilize. In most classroom settings, 50 to 100 trials is a reasonable starting point, but professional simulations often use thousands or even millions.
SECTION 4
Mathematical Framework
Even though simulations are hands-on experiments, a bit of mathematical notation helps us describe what is happening precisely. Two key formulas anchor this lesson: one for experimental probability and one for measuring how far our estimate might be from the true value.
EXPERIMENTAL PROBABILITY
P̂ (read "P-hat") denotes the experimental (or empirical) probability. "Successes" are the trials where the event of interest occurred. As the number of trials increases, P̂ approaches the theoretical probability P.
THEORETICAL PROBABILITY (EQUALLY LIKELY OUTCOMES)
This formula applies when every outcome in the sample space is equally likely, such as rolling a fair die or drawing from a well-shuffled deck. When the situation is too complex for this formula, we turn to simulation.
RELATIVE ERROR
This measures the percent deviation of the experimental estimate from the theoretical value. A smaller relative error means a more accurate simulation. For example, if P = 0.50 and P̂ = 0.48, the relative error is |0.48 − 0.50| ÷ 0.50 × 100% = 4%.
When Do We Use Simulation Instead of a Formula?
SECTION 5
Designing a Simulation — Step by Step
Designing a simulation requires careful planning. You need to choose a random device that matches the probability structure of the real event, define what counts as a trial, decide how many trials to run, and interpret the results. The flowchart below walks through the design process.
Let's look at a concrete example of how to match a random device to a problem. Suppose a baseball player has a batting average of .300, meaning he gets a hit about 30% of the time. To simulate one at-bat, you could use a random number generator producing integers 1 through 10. If the number is 1, 2, or 3, it represents a hit (3 out of 10 = 30%). Numbers 4 through 10 represent outs. Each at-bat is one trial, and a "success" is a hit.
| Real-World Event | Good Random Device | How to Assign Outcomes |
|---|---|---|
| 50% chance of rain | Fair coin | Heads = rain, Tails = no rain |
| 1 in 6 chance of winning a prize | Standard six-sided die | Roll a 1 = win, Roll 2–6 = no win |
| 70% free-throw success rate | RNG: integers 1–10 | 1–7 = make, 8–10 = miss |
| 25% chance of selecting type A | Deck of cards (one suit) | Spades = type A, other suits = not A |
Matching random devices to real-world probabilities
SECTION 6
Worked Example — Simulating Free Throws
A basketball player makes 60% of her free throws. Her coach wants to estimate the probability that she makes both shots in a two-shot foul situation. Let's design and run a simulation to estimate this probability, then compare it to the theoretical answer.
Estimating the Probability of Making Both Free Throws
- 1
Step 1 — State the Problem
What is the probability that the player makes both free throws, given that each shot independently has a 60% chance of going in? - 2
Step 2 — Define a Trial and Success
One trial consists of simulating two consecutive free throws. A "success" for the trial is both shots going in. - 3
Step 3 — Choose a Random Device
Use a random number generator producing integers 1 through 10. Numbers 1–6 represent a made shot (60%), and numbers 7–10 represent a miss (40%). For each trial, generate two random numbers. - 4
Step 4 — Run 20 Trials (sample data)
Here is a sample of 20 trials. Each pair of random numbers represents two free throws: (3, 5) ✓ | (8, 2) ✗ | (1, 4) ✓ | (6, 9) ✗ | (2, 3) ✓ | (7, 1) ✗ | (4, 6) ✓ | (5, 5) ✓ | (10, 3) ✗ | (2, 8) ✗ | (1, 1) ✓ | (3, 7) ✗ | (6, 6) ✓ | (9, 4) ✗ | (4, 2) ✓ | (5, 10) ✗ | (3, 3) ✓ | (7, 8) ✗ | (2, 6) ✓ | (1, 5) ✓ ✓ means both shots made (both numbers ≤ 6). Count of successes = 11 out of 20 trials.11 successes out of 20 trials - 5
Step 5 — Calculate Experimental Probability
P̂(both made) = 11 ÷ 20 = 0.55, or 55%.P̂ = 0.55 (55%) - 6
Step 6 — Compare to Theoretical Probability
Since each shot is independent, the theoretical probability is P(both) = 0.60 × 0.60 = 0.36 (36%). Our estimate of 55% from only 20 trials is not very close. The relative error is |0.55 − 0.36| ÷ 0.36 × 100% ≈ 52.8%. This large error tells us that 20 trials is not enough for a reliable estimate.Theoretical P = 0.36 (36%). Relative error ≈ 52.8% — need more trials! - 7
Step 7 — Scale Up (500 trials with a computer)
Running the same simulation with 500 trials on a computer yields 187 successes: P̂ = 187 ÷ 500 = 0.374. Now the relative error is |0.374 − 0.36| ÷ 0.36 × 100% ≈ 3.9%. This is much more accurate, illustrating why more trials matter.500 trials → P̂ ≈ 0.374, relative error ≈ 3.9%
SECTION 7
Strengths and Limitations of Simulations
Probability simulations are powerful tools, but they are not perfect. Understanding when to use them — and when a formula is better — is an important part of statistical thinking. The table below contrasts the main strengths and limitations.
| Strengths | Limitations |
|---|---|
| Can estimate probabilities for complex problems where formulas are impractical. | Results are estimates, not exact answers; they vary each time you run the simulation. |
| Easy to understand — anyone can flip a coin or use a random number generator. | Requires a large number of trials for accurate estimates, which can be time-consuming by hand. |
| Flexible — can model multi-step events, dependent events, and unusual distributions. | A poorly designed simulation (wrong random device, too few trials) produces misleading results. |
| Builds intuition about randomness and variability in probability. | Does not explain why a probability has a certain value — only estimates what it is. |
Comparing strengths and limitations of probability simulations
KEY TAKEAWAY
SECTION 8
Connection to Advanced Probability & Statistics
The simulation techniques you learn now are the foundation for much of advanced statistics. In AP Statistics and college courses, you will encounter formal tools for quantifying how accurate a simulation estimate is, including confidence intervals and margin of error. You will also study the Central Limit Theorem, which explains the mathematical reason why estimates improve with more trials.
| This Lesson (Grade 9) | Advanced (AP / College) |
|---|---|
| Estimate probability using experimental proportion P̂ | Build confidence intervals around P̂ with specified margins of error |
| Observe that more trials give better estimates (Law of Large Numbers) | Prove the Law of Large Numbers formally and use it with the Central Limit Theorem |
| Use coins, dice, and simple RNGs | Use Monte Carlo simulations with thousands or millions of computer-generated trials |
| Judge accuracy informally by comparing to theoretical value | Calculate standard error and use hypothesis testing to evaluate accuracy |
How probability simulation concepts scale from Grade 9 to advanced study
The key idea to carry forward is this: every simulation is an experiment, and every experiment comes with uncertainty. The tools for measuring that uncertainty become more precise as you advance in your math education, but the underlying philosophy — use repeated random trials to approximate truth — remains the same from Grade 9 through graduate school.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A probability simulation uses a random device — such as a coin, die, or random number generator — to model a real-world event and estimate the probability of a specific outcome. The five essential design steps are: state the problem, define a trial and success, choose an appropriate random device, run many trials, and calculate the experimental probability (P̂ = successes ÷ trials).
The Law of Large Numbers guarantees that as the number of trials increases, the experimental probability converges toward the theoretical probability. Accuracy is assessed by comparing P̂ to the known theoretical value, computing relative error, or running multiple sets of trials to check consistency. Always remember: a well-designed simulation with a large number of trials is a powerful, flexible tool for estimating probabilities that are otherwise difficult to calculate.