Imagine a basketball player who makes 70% of her free throws. She steps to the line for a one-and-one and then takes five shots in a stretch. What's the chance she makes at least four of those five?
You could grind this out with the binomial formula from Lesson 12 — and for five shots, you can. But suppose the question got messier: What's the probability she needs at least 8 boxes of cereal to collect all 4 different prizes hidden inside? Or In a randomly seated class of 30, what's the chance two people share a birthday? These get ugly fast. The formulas either don't exist in a tidy form or require math beyond this course.
Here's the beautiful workaround: instead of computing the probability, we imitate the random process over and over and just count how often the event happens. Flip a coin, roll a die, read random digits — anything that reproduces the right chances. Do it hundreds of times and the fraction of successes settles down near the true probability. That's simulation, and by the end of this lesson you'll be able to design one precisely enough to earn full credit on the AP exam.
A simulation is the imitation of a chance process using a model — random digits, a calculator, dice, cards — designed so that its outcomes occur with the same probabilities as the real situation. We run the model many times, count how often the event of interest happens, and use that fraction as an estimate of the true probability.
The key word is estimate. A simulation does not give you the exact probability. It gives you an approximation that gets better the more trials you run. That last idea has a name we'll return to: the Law of Large Numbers.
Why bother, if the binomial formula exists? Because most real probability questions are not binomial. As soon as outcomes pile up across stages, depend on each other, or involve a "keep going until..." rule, exact computation gets hard or impossible. Simulation sidesteps all of it. If you can describe the chance process, you can simulate it.
On the AP exam, "describe a simulation" is one of the most common — and most missed — tasks. The graders want a procedure precise enough that another person could run it without asking you a single question. Every correct design has these five pieces:
Let's build one completely, for the free-throw question from the warm-up.
Question: A player makes 70% of her free throws. Estimate the probability she makes at least 4 of her next 5 shots.
Step 1 — Assign digits. We need each shot to be a "make" with probability 0.7 and a "miss" with probability 0.3. Use single random digits 0–9. Since 7 of the 10 digits should mean make, assign:
Digits 0, 1, 2, 3, 4, 5, 6 → MAKE (7 digits = probability 7/10 = 0.7) ✓
Digits 7, 8, 9 → MISS (3 digits = probability 3/10 = 0.3) ✓
Always check the count: 7 digits for make, 3 for miss, total 10. The split matches the real 0.7 / 0.3. This matching step is where most points are won or lost.
Step 2 — Define one trial. One trial = 5 shots = read 5 consecutive random digits, classifying each as make or miss.
Step 3 — Stopping rule and success. Each trial stops after exactly 5 digits. A trial is a success if it contains 4 or 5 makes (digits 0–6).
Step 4 — Run many trials. Repeat for many trials — say 30 to start, then more. Each time, read the next 5 digits and record the number of makes.
Step 5 — Estimate. Estimated P(at least 4 makes) = (number of successful trials) / (total number of trials).
Suppose we run 30 trials and, for each, plot the number of makes (0 to 5). Here is what such a run might look like:
[GRAPH: Dotplot titled "Number of Makes in 5 Shots — 30 Simulated Trials." Horizontal axis labeled "Makes" with tick marks at 0, 1, 2, 3, 4, 5. Dots stacked above each value: 0 makes → 0 dots; 1 make → 1 dot; 2 makes → 3 dots; 3 makes → 10 dots; 4 makes → 11 dots; 5 makes → 5 dots. Total = 30 dots. Center of the distribution is around 3.5 makes; clearly right-shifted because each shot is more likely to be a make than a miss.]
To estimate P(at least 4 makes), count the dots at 4 and 5: that's 11 + 5 = 16 successful trials out of 30.
Estimated P(at least 4 makes) = 16 / 30 ≈ 0.533
How good is this estimate? The exact binomial answer is
P(X ≥ 4) = C(5,4)(0.7)⁴(0.3) + (0.7)⁵ = 0.36015 + 0.16807 = 0.52822 ≈ 0.528
Our simulation gave 0.533 — strikingly close after only 30 trials. That closeness is not luck in the long run; it's the Law of Large Numbers at work.
The Law of Large Numbers (LLN) says: as the number of trials increases, the proportion of successes from a simulation converges to the true probability. Ten trials might give 0.4 or 0.7 just by chance; ten thousand trials will sit tightly around 0.528.
Trials: 10 50 200 1,000 10,000
Estimate: 0.40 0.56 0.515 0.531 0.5279
True value: → 0.528 ←
The estimates bounce around early, then settle. Two cautions the AP exam loves to test:
A random digit table is a long string of the digits 0–9, each equally likely and independent, usually printed in groups of five for readability:
Line 119: 71488 09984 29077 14863 61683 47052 62224 51025
The grouping is cosmetic — ignore the spaces and read straight across. To simulate, just pull digits in order and apply your assignment rule. Reading the line above in groups of 5 for the free-throw design (0–6 = make, 7–9 = miss):
71488 → makes at 1,4,8? digits 7,1,4,8,8 → make? 1 yes,4 yes → 2 makes (not a success)
09984 → 0,9,9,8,4 → makes 0 and 4 → 2 makes (not a success)
14863 → 1,4,8,6,3 → makes 1,4,6,3 → 4 makes (SUCCESS)
Don't reuse digits. Once a digit is used in a trial, move on. Reading the same digits again for a new trial makes your trials dependent and corrupts the estimate.
randInt(The table works beautifully when probabilities are in tenths. But what if an outcome has probability like 0.25? That's "2.5 digits" — no clean assignment exists. The calculator handles any whole-number split. The command is:
randInt(low, high, k)
It returns k random integers from low to high, inclusive, each equally likely. Find it under MATH → PROB → 5:randInt(.
randInt(1, 4). Let 1 = correct, 2,3,4 = wrong → P(correct) = 1/4 = 0.25, exactly. ✓randInt(1, 10) and let 1–7 = make, 8–10 = miss → 7/10 = 0.7. ✓randInt(1, 10, 5) returns five integers; count how many are 7 or below.Tip: seed your calculator first (STO→ rand, e.g. 2024 → rand) only if you need reproducible results; otherwise just run randInt(.
The logic is identical to the table — assign outcomes so the probabilities match, define a trial, set a stopping rule, run many trials, divide. The calculator just makes the random numbers and the bookkeeping faster.
Problem. A student guesses randomly on a 5-question quiz. Each question has 4 answer choices, exactly one correct. Describe a simulation using the TI-84 to estimate the probability the student gets at least 3 of the 5 questions correct. (Do not carry it out.)
Strategy. Each question is correct with probability 1/4 = 0.25 — not a tenth, so a single-digit table won't split cleanly. Use randInt(1, 4).
Solution.
randInt(1, 4). Let 1 = correct answer (probability 1/4 = 0.25 ✓) and 2, 3, 4 = wrong (probability 3/4 = 0.75 ✓).randInt(1, 4, 5) — one per question. Count how many are 1 (correct).P(at least 3 correct) = (successful trials) / (total trials).Interpretation. For reference, the exact binomial answer is only about 0.104 — guessing your way to a good score is unlikely, and the simulation would confirm that roughly 1 in 10 simulated quizzes succeeds.
Problem. A cereal company puts a coupon in 30% of its boxes, at random. A shopper buys 4 boxes. Using the random digit line below, run 10 trials to estimate the probability of getting at least one coupon in 4 boxes.
Line 42: 96565 75634 81625 33001 39379 47233 51298 90222
Strategy. P(coupon) = 0.30 → use 3 of 10 digits for "coupon." One box = one digit; one trial = 4 boxes = 4 digits.
Solution.
Reading the line in groups of 4 (spaces ignored):
| Trial | Digits | Any 0/1/2? | Coupon? |
|---|---|---|---|
| 1 | 9656 | no | No |
| 2 | 5756 | no | No |
| 3 | 3481 | 1 | Yes |
| 4 | 6253 | 2 | Yes |
| 5 | 3001 | 0,0,1 | Yes |
| 6 | 3937 | no | No |
| 7 | 9472 | 2 | Yes |
| 8 | 3351 | 1 | Yes |
| 9 | 2989 | 2 | Yes |
| 10 | 0222 | 0,2,2,2 | Yes |
Successes = 7 out of 10 trials.
Estimated P(at least one coupon) = 7 / 10 = 0.70
Interpretation. Based on these 10 trials, we estimate about a 0.70 probability of getting at least one coupon in 4 boxes. (The exact value is 1 − 0.7⁴ = 0.7599; with only 10 trials our estimate of 0.70 is reasonable but rough — more trials would tighten it.)
Problem. A theme park claims 40% of visitors ride the new roller coaster. A researcher simulates groups of 10 visitors, repeating the simulation 50 times, and records the number who ride. The dotplot shows the results.
[GRAPH: Dotplot titled "Number Who Ride Out of 10 Visitors — 50 Simulated Trials." Horizontal axis "Number Who Ride" with ticks 0–10. Dots above each value: 1 → 1; 2 → 4; 3 → 9; 4 → 13; 5 → 11; 6 → 7; 7 → 4; 8 → 1; 0,9,10 → 0. Total = 50 dots, centered near 4, roughly symmetric, slightly right of center mirrors the 0.4 chance.]
(i) Use the dotplot to estimate the probability that 6 or more of 10 visitors ride the coaster.
Solution. Count the dots at 6, 7, 8, 9, 10: 7 + 4 + 1 + 0 + 0 = 12 out of 50.
Estimated P(6 or more ride) = 12 / 50 = 0.24
(ii) Explain how the estimate would change if the researcher ran 5,000 trials instead of 50.
Solution. By the Law of Large Numbers, with far more trials the estimated probability would converge toward the true probability and become more stable and reliable — running again would give nearly the same value each time, rather than bouncing as a 50-trial estimate can.
1. Digit assignment that doesn't match the probability. For a 35% event, a student writes "digits 1, 2, 3 = success." That's 3/10 = 0.30, not 0.35. Fix: match the proportion exactly. For 0.35, use two-digit numbers: 00–34 = success (35 of 100 = 0.35), 35–99 = failure. Always count your digits and confirm the fraction equals the real probability before going further.
2. Miscounting what one trial is. The scenario is "4 boxes," but the student reads only 1 digit per trial, or rereads 5 digits because the line is grouped in fives. Fix: one trial must reproduce the whole scenario. Four boxes = exactly four digits, regardless of how the table is spaced. Write down "one trial = ___ digits" before you start counting.
3. Too few trials. Concluding a probability from 5 or 10 trials and treating it as the truth. Fix: a small simulation gives a rough estimate. State that more trials would improve it — and if a problem asks you to critique a simulation, "only ran a few trials" is a valid weakness.
4. Reusing or skipping digits incorrectly. Starting each new trial back at the beginning of the line, or randomly jumping around. Fix: read digits once, in order, straight across the line. Each digit is used for one position in one trial, then you move on.
5. Confusing the Law of Large Numbers with "things evening out." Thinking that after several makes, a miss is "due." Fix: the LLN is about the long-run proportion converging — individual independent outcomes never become "due." Each trial is fresh.
A simulation is best described as:
- (A) An exact calculation of a probability using a formula
- (B) Imitating a chance process many times to estimate a probability
- (C) A method that always gives the true probability
- (D) A way to remove randomness from an experiment
An event has probability 0.40. Which single-digit assignment correctly models it?
- (A) Digits 1, 2, 3, 4 = success; 5, 6, 7, 8, 9 = failure
- (B) Digits 0, 1, 2, 3 = success; 4, 5, 6, 7, 8, 9 = failure
- (C) Digits 1, 2, 3 = success; 4–9, 0 = failure
- (D) Digits 0–4 = success; 5–9 = failure
To simulate an event with probability 0.62, the most appropriate tool is:
- (A) A single random digit, 0–9
- (B) A coin flip
- (C) Two-digit numbers 00–99 (or randInt(1,100))
- (D) A six-sided die
According to the Law of Large Numbers, increasing the number of trials in a simulation will:
- (A) Make every trial produce the same outcome
- (B) Guarantee the next outcome is a success
- (C) Move the estimated probability closer to the true probability
- (D) Have no effect on the estimate
A student simulates a process where P(success) = 0.5 and gets 5 successes in the first 5 trials. What is the probability the 6th trial is a success?
- (A) Less than 0.5, because successes are "overdue" to stop
- (B) Exactly 0.5
- (C) Greater than 0.5, because the player is "hot"
- (D) Cannot be determined
Which TI-84 command simulates rolling a fair six-sided die 4 times?
- (A) randInt(0, 6, 4)
- (B) randInt(1, 6, 4)
- (C) randInt(1, 4, 6)
- (D) randInt(4, 6)
(In context) A baseball player gets a hit 30% of the time. To estimate the probability he gets at least 2 hits in his next 4 at-bats, you assign digits 0, 1, 2 = hit and 3–9 = no hit. How many digits make up one trial?
- (A) 1
- (B) 2
- (C) 4
- (D) 10
(Reads a random-digit line) Using the assignment in Problem 7 (0,1,2 = hit) and reading the line below in groups of 4, how many hits occur in the first trial?
40027 61835 09210
A simulation of 100 trials estimates a probability as 0.61. The exact probability is later computed to be 0.58. The best explanation is:
- (A) The simulation was done incorrectly
- (B) Simulations always overestimate
- (C) Normal sampling variability; the estimate is close and would improve with more trials
- (D) The exact computation must be wrong
(In context) A spinner lands on red with probability 0.25. Which is the best way to simulate one spin?
- (A) One random digit; 0, 1 = red
- (B) randInt(1, 4); 1 = red
- (C) Two random digits; 00–25 = red
- (D) A coin flip; heads = red
11. (Short answer) An airline finds that 20% of booked passengers miss their flight. Describe how to use a random digit table to simulate whether each of 5 booked passengers shows up. Give the digit assignment and define one trial.
12. (Short answer) Explain, in one or two sentences, the difference between the Law of Large Numbers and the (false) "gambler's fallacy" idea that outcomes even out in the short run.
13. (Short answer — reads a random-digit line) A free-throw shooter makes 60% of her shots. Using 0–5 = make, 6–9 = miss, and reading the line below in groups of 5, carry out 4 trials and estimate the probability she makes all 5 shots in a set of 5.
03474 37386 36964 73661 46986
14. (Short answer) A student claims, "I ran my simulation 8 times and got the answer 0.375, so the probability is 0.375." Identify the two weaknesses in this claim.
15. (Short answer — design) A teacher wants to estimate the probability that, in a class of 25 students, at least two share a birthday (ignore leap years; assume 365 equally likely birthdays). Describe how you would use the TI-84 randInt( to simulate one trial, and state the success condition.
Statistical Practice 3 — Analyze Data
A tennis player's first serve goes in 60% of the time, independently from serve to serve. In a particular game she will hit 5 first serves. Her coach wants to estimate the probability that at least 4 of those 5 first serves go in.
(a) Describe a simulation, using a random digit table, to estimate this probability. Your description must include the digit assignment, the definition of one trial, and what counts as a successful trial. (4 points)
(b) Carry out 10 trials of your simulation using the random digit line below, reading the digits in order. Show your work by recording, for each trial, the number of serves that go in and whether the trial is a success. (4 points)
Line 137: 03474 37386 36964 73661 46986 37162 33261 68045 60111 41095
(c) Use your 10 trials to estimate the probability that at least 4 of her 5 first serves go in, and interpret this estimate in context. (2 points)
(a) Design.
`
Digits 0, 1, 2, 3, 4, 5 → serve goes IN (6/10 = 0.60 ✓)
Digits 6, 7, 8, 9 → serve is OUT (4/10 = 0.40 ✓)
`
P = successes ÷ trials.(b) Carry out 10 trials (each group of 5 digits = one trial; "in" = 0–5):
| Trial | Digits | # In (0–5) | At least 4 in? |
|---|---|---|---|
| 1 | 03474 | 0,3,4,(7),4 → 4 | Success |
| 2 | 37386 | 3,(7),3,(8),(6) → 2 | No |
| 3 | 36964 | 3,(6),(9),(6),4 → 2 | No |
| 4 | 73661 | (7),3,(6),(6),1 → 2 | No |
| 5 | 46986 | 4,(6),(9),(8),(6) → 1 | No |
| 6 | 37162 | 3,(7),1,(6),2 → 3 | No |
| 7 | 33261 | 3,3,2,(6),1 → 4 | Success |
| 8 | 68045 | (6),(8),0,4,5 → 3 | No |
| 9 | 60111 | (6),0,1,1,1 → 4 | Success |
| 10 | 41095 | 4,1,0,(9),5 → 4 | Success |
Successes: trials 1, 7, 9, 10 → 4 successes out of 10.
(c) Estimate and interpret.
Estimated P(at least 4 of 5 first serves in) = 4 / 10 = 0.40
Based on these 10 simulated trials, we estimate the probability that at least 4 of the player's 5 first serves go in is about 0.40. (Note: 10 trials is a small simulation; the estimate would become more reliable with many more trials. For reference, the exact binomial value is 0.337.)
Part (a) — Design (4 points)
Part (b) — Carry out (4 points)
Part (c) — Estimate and interpret (2 points)
Total: 10 points.
1. B. A simulation imitates a chance process repeatedly to estimate a probability. (A) describes an exact formula, not simulation; (C) is false — simulations only estimate; (D) is backward — simulations use randomness.
2. B. Digits 0, 1, 2, 3 = success is 4 digits out of 10 = 0.40 ✓, with 4–9 = failure (6 digits = 0.60). (A) assigns 1, 2, 3, 4 to success (0.40) but lists only 5–9 for failure, leaving digit 0 unassigned — an incomplete, invalid assignment. (C) is 3 digits = 0.30. (D) is digits 0–4 = 5 digits = 0.50.
3. C. 0.62 requires hundredths (62 out of 100), so two-digit numbers 00–99 (or randInt(1,100)) is needed. A single digit (A) only gives tenths; a coin (B) gives 0.5; a die (D) gives sixths.
4. C. The Law of Large Numbers: more trials → estimate converges to the true probability. (A) and (B) misstate it (outcomes stay random); (D) is false.
5. B. Trials are independent; P(success) stays 0.5 regardless of past results. (A) and (C) are the gambler's fallacy / "hot hand" — both wrong; (D) is wrong because the probability is known (0.5).
6. B. randInt(1, 6, 4) gives 4 integers from 1 to 6. (A) includes 0 (seven outcomes); (C) gives 6 integers from 1–4; (D) gives one integer from 4–6.
7. C. One trial = 4 at-bats = 4 digits. (A) is one at-bat; (B) would be 2 at-bats; (D) confuses the 10 digits in the assignment with trial length.
8. C. First trial = first 4 digits 4, 0, 0, 2. Hits are digits 0, 1, 2: that's 0, 0, and 2 → 3 hits (the 4 is not a hit). (A) and (B) undercount; (D) overcounts by wrongly treating the leading 4 as a hit.
9. C. A 100-trial estimate of 0.61 versus a true 0.58 is ordinary sampling variability — close, and improvable with more trials. (A), (B), (D) all misattribute a normal small discrepancy to error.
10. B. P(red) = 0.25 = 1/4 maps exactly to randInt(1,4) with 1 = red. (A) gives 0.20; (C) gives 26/100 = 0.26 (off, and clunky); (D) gives 0.50.
11. Assign digits 0, 1 = misses flight (2/10 = 0.20 ✓) and digits 2–9 = shows up (8/10 = 0.80 ✓). One trial = read 5 digits, one per passenger, and record how many show up (digits 2–9). Repeat for many trials.
12. The Law of Large Numbers says the long-run proportion of successes over many trials converges to the true probability; it makes no promise about any short run. The gambler's fallacy wrongly claims short runs must "balance out" — e.g., that a tail is "due" after several heads. Independent trials have no memory, so short-run balancing does not happen.
13. Reading groups of 5 (make = 0–5, miss = 6–9), success = all 5 makes:
| Trial | Digits | # Makes (0–5) | All 5? |
|---|---|---|---|
| 1 | 03474 | 0,3,4,(7),4 → 4 | No |
| 2 | 37386 | 3,(7),3,(8),(6) → 2 | No |
| 3 | 36964 | 3,(6),(9),(6),4 → 2 | No |
| 4 | 73661 | (7),3,(6),(6),1 → 2 | No |
Successes = 0 of 4 → estimated P(all 5 makes) = 0/4 = 0. (This is clearly too few trials: the true value is 0.6⁵ ≈ 0.078, so we'd expect roughly 1 success every ~13 trials. The "0" estimate illustrates exactly why many more trials are needed.)
14. (1) Too few trials — 8 trials give a very rough estimate; the Law of Large Numbers says many more are needed for a reliable value. (2) Reporting the estimate as the probability — a simulation only estimates a probability; it should be stated as approximate, not exact.
15. Use randInt(1, 365, 25) to generate 25 random birthdays (one trial). A trial is a success if at least two of the 25 numbers are equal (a repeated birthday). Repeat for many trials; estimate P = successes ÷ trials. (Each integer 1–365 is equally likely, matching the assumption of 365 equally likely birthdays.)
FRQ. Full model response and 10-point rubric given in Section (f). Estimate from the provided line = 4/10 = 0.40; exact value ≈ 0.337.
StatsIQ · Lesson 14 of 30 · Unit 2: Probability, Random Variables, and Probability Distributions · Phase 2: Probability
This lesson aligns to the revised 2026–27 AP Statistics Course and Exam Description (first exam May 2027). "AP" is a registered trademark of the College Board, which was not involved in the production of, and does not endorse, this product.
Accuracy review: Every simulated estimate, digit-to-probability assignment, and random-digit-line tally in this lesson was independently recomputed and verified, and each is compared against its exact value where one exists. Reviewed for statistical accuracy by Isaac, retired actuary.