# Estimating Probabilities Using Simulation: AP Statistics Review

Course: AP® Statistics › Unit 2: Probability, Random Variables, and Probability Distributions › 2.3 Estimating Probabilities Using Simulation ([course hub](https://www.albert.io/blog/category/test-prep/advanced-placement/ap-statistics.md))
Source: https://www.albert.io/blog/estimating-probabilities-using-simulation-ap-statistics-review/ · Updated November 16, 2026

When calculating an exact probability is too difficult — a multi-step scenario, an unusual game, a real-world process you cannot fully model — **simulation** is the tool you reach for. A simulation estimates probability by modeling a random process repeatedly and counting how often your event of interest occurs. Instead of solving a complex formula, you let randomness do the work and observe what happens over many trials. This article covers AP Statistics **Topic 2.3** (Unit 2: Probability, Random Variables, and Probability Distributions, Learning Objective VAR-4.A): how to design a simulation, interpret simulation output, and explain why more trials produces a better estimate.

## What Is a Random Process and How Simulations Model It

At the heart of every simulation is a **random process** — something with outcomes determined by chance. Rolling a die, spinning a spinner, drawing a card, flipping a coin — all are random processes. The key insight: even though you cannot predict any single outcome, the long-run behavior of random processes is predictable.

![The law of large numbers: running proportions settle near the true probability.](https://www.albert.io/blog/wp-content/uploads/2026/11/law-of-large-numbers.png) The law of large numbers: running proportions settle near the true probability.

A simulation works by:

1. Setting up a model that mimics the real random process
2. Running the model many times (each run = one **trial**)
3. Counting how often the event of interest occurs
4. Dividing that count by the total number of trials to estimate the probability

For example, suppose you want to estimate the probability that a basketball player makes at least 2 out of 3 free throws when each shot has P(make) = 0.5. You could flip a coin 3 times (heads = make, tails = miss) and record whether you got at least 2 heads. Repeat this 1,000 times. The proportion of simulations where you got at least 2 heads is your estimate of the probability. The simulation does not give you an exact theoretical answer — it gives you an estimate that improves as you run more trials.

## Key Concepts: Outcomes, Trials, and Events

To design a simulation correctly, you need three core terms locked down:

![Venn diagrams for mutually exclusive and overlapping events.](https://www.albert.io/blog/wp-content/uploads/2026/11/venn-diagrams-probability.png) Venn diagrams for mutually exclusive and overlapping events.

**Outcome:** A single, specific result of a random process. Rolling one die produces an outcome of 1, 2, 3, 4, 5, or 6. Flipping one coin produces heads or tails.

**Trial:** One complete run of the random process. If your trial involves flipping a coin three times, those three flips together are one trial. A trial might produce multiple individual outcomes, but it counts as one trial.

**Event:** The outcome (or set of outcomes) you are tracking. For instance, the event "at least 2 heads in 3 flips" includes the outcomes HHT, HTH, THH, and HHH.

When you run a simulation, you perform many trials. Each trial either satisfies your event condition or it does not. Count the successes, divide by total trials — that's your estimated probability.

## Designing and Running a Simulation

Here is how to set up a simulation from scratch:

![A completely randomized design assigns subjects to treatments at random.](https://www.albert.io/blog/wp-content/uploads/2026/11/completely-randomized-design.png) A completely randomized design assigns subjects to treatments at random.

**Step 1: Identify the Random Process.** What chance event are you modeling? You need a tool that generates random outcomes matching the real-world probabilities. A fair coin works for 50/50 events. A random integer from 1 to 10 works for any probability that is a multiple of 10%.

**Step 2: Define Your Event.** What outcome (or set of outcomes) are you counting? Be specific. "At least 2 successes in 4 trials" is clear. "Something good happens" is not.

**Step 3: Choose Your Simulation Tool.** Use a random number generator, physical objects (coins, dice, cards), a random digit table, or technology. The tool must produce outcomes with the correct probabilities. If the real event has P = 0.7, use digits 1–7 as success and 8–10 as failure (not a coin flip).

**Step 4: Run Many Trials.** Perform your simulation at least 100 times, ideally 1,000 or more. Each trial is independent — the results of one trial do not affect the next.

**Step 5: Calculate Relative Frequency.** Count how many trials produced your event. Divide by total trials. This **relative frequency** is your probability estimate:

**Relative frequency = (number of trials where event occurred) / (total number of trials)**

**Example Simulation**

**Problem:** A student guesses randomly on a 4-question multiple-choice quiz (4 choices per question). Estimate the probability of getting at least 3 correct.

1. **Random process:** Generate a random integer from 1 to 4 for each question. A "1" represents a correct guess (probability 1/4); "2," "3," or "4" represent incorrect guesses.
2. **Event:** At least 3 of 4 questions correct (3 or more 1s in a set of 4 random integers)
3. **Simulation tool:** A random number generator producing integers from 1 to 4
4. **Run 1,000 trials:** For each trial, generate 4 integers. Count how many are 1s. If 3 or 4 are 1s, the event occurred.
5. **Result:** If 48 of the 1,000 trials had at least 3 correct: relative frequency = 48/1,000 = 0.048, so P(at least 3 correct) ≈ 4.8%.

## The Law of Large Numbers

Why does simulation work? Because of the **law of large numbers**: as the number of trials increases, the relative frequency of an event converges to its true probability.

- With 10 trials, your estimate might be far off just by chance.
- With 100 trials, you are probably closer.
- With 10,000 trials, you are quite accurate.

The law of large numbers does not guarantee any specific result for a small number of trials — it guarantees that with enough trials, your estimate gets as close as you want to the true probability. This is why simulations need large sample sizes to be useful. On the AP exam, questions often give you simulation results ("Out of 1,000 trials, the event occurred 247 times") and ask you to estimate a probability. Just calculate the relative frequency: 247/1,000 = 0.247.

## Test-Taking Strategies

**Mnemonic: TRIAL**

- **T** — Tool: choose a random generator that matches the real probability
- **R** — Repeat: run many trials (100+ minimum, 1,000 preferred)
- **I** — Identify the event precisely before you start
- **A** — Analyze: count successes ÷ total trials
- **L** — Large numbers matter: more trials = better estimate

**Cross-Topic Connections**

- **Topic 1.3 (Frequency Tables):** Relative frequency from a simulation is the same concept as relative frequency from a data table — count / total. The skill is identical.
- **Unit 2 (Sampling Distributions and Binomial):** You can simulate binomial scenarios and compare your simulated distribution to the theoretical one. When the AP exam asks why the simulated histogram approaches the theoretical shape as n increases, the law of large numbers is the answer.
- **Units 3–4 (Inference):** P-values in hypothesis testing are probabilities. Understanding simulation grounds your intuition for what p-values mean — "the probability of getting data this extreme if H0 is true" is the long-run frequency of this event under random chance.

**Common AP Exam Question Formats**

- **"Based on the simulation, estimate the probability that…"** — Divide event count by total trials. That is it. Do not overcomplicate.
- **"Describe a simulation to estimate the probability of…"** — State your random process, your tool, what counts as your event, how many trials you would run, and how you would calculate the estimate. Use all five TRIAL steps explicitly.
- **"Why is simulation preferred over theoretical calculation here?"** — The scenario is too complex to model analytically, or you do not know all the theoretical probabilities.
- **"How would you improve the estimate?"** — Increase the number of trials.

**Frequent Student Mistakes**

- **Not matching probabilities correctly.** If a player makes 70% of free throws, do not use a coin flip (50/50) to model it. Use random integers 1–10, where 1–7 = make and 8–10 = miss. Always align your simulation tool to the actual probability.
- **Running too few trials.** A simulation with only 10 trials is nearly useless — randomness introduces too much noise in small samples. Aim for at least 100 trials, ideally 1,000+.
- **Confusing trials with individual outcomes.** If your trial involves rolling a die 5 times, those 5 rolls are 1 trial — not 5 trials. Do not count individual outcomes as separate trials.
- **Not defining the event precisely.** On free-response questions, you must explicitly state how your simulation tool matches the probability: "I would use a random number from 1 to 10, where 1–4 represents success because the probability is 0.4." Vague descriptions earn partial credit at best.

**Test-Day Shortcuts and Time Tips**

- When the question gives you simulation data and asks you to estimate a probability, just compute the relative frequency. If 312 out of 1,000 trials resulted in the event, the estimated probability is 0.312. Do not overthink it.
- Simulation design questions require careful reading. Budget 1–2 minutes to understand the random process and define your event precisely, then 2–3 minutes to write your answer. Rushing the setup leads to the most common mistakes (mismatched probability, undefined event).
- If asked why simulation works, the answer is always the law of large numbers: as the number of trials increases, relative frequency converges to true probability. Memorize this phrasing — it earns full credit.

## Check for Understanding

Think you've got it? Complete the quiz below to make sure. Download your results at the end.

Previous topic: [2.2 Summary Statistics for Two Categorical Variables](https://www.albert.io/blog/ap-statistics-statistics-for-two-categorical-variables.md)
Next topic: [2.4 Introduction to Probability](https://www.albert.io/blog/introduction-to-probability-ap-statistics-review.md)
