AP Statistics · Unit 2 · Topic 2.3

    2.3 Estimating Probabilities Using Simulation

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    The probability of an outcome is the proportion of times it would happen in a very long series of repetitions. A simulation imitates a chance process with random numbers so you can estimate a probability without doing the real thing thousands of times. A good simulation description says how outcomes are represented, how one trial works, what is recorded, and how the probability is estimated from many trials.

    What you need to know

    • Explain probability as long-run relative frequency.
    • Design a simulation that models a chance process, stating how random numbers represent outcomes.
    • Estimate a probability from simulation results.
    • Explain why more trials give a more reliable estimate.

    Probability as long-run relative frequency

    Flip a fair coin ten times and you might get seven heads. Flip it ten thousand times and the proportion of heads will be very close to 0.5. This is the law of large numbers: as the number of trials grows, the relative frequency of an outcome settles down to its probability. In the short run, chance behaviour is unpredictable; in the long run, it is regular.

    Designing a simulation

    A basketball player makes 70% of her free throws. What is the probability she makes all three in a game? Assume shots are independent. A simulation:

    1. Represent outcomes: let the digits 0–6 represent a made shot and 7–9 a miss (7 of 10 digits = 70%).
    2. Describe one trial: read three random digits (repeats allowed, because each shot is a fresh 70% chance).
    3. Record: whether all three digits are 0–6.
    4. Repeat and estimate: carry out many trials; the proportion of trials with all three made is the estimate.
    Ten example trials (three digits each)
    TrialDigitsAll made?
    13 0 5Yes
    28 2 6No
    31 1 4Yes
    46 9 0No
    52 5 3Yes
    67 7 1No
    70 4 6Yes
    85 8 2No
    94 3 9No
    106 1 2Yes

    Five of these ten trials had all three made, an estimate of 0.5. With so few trials the estimate is rough; the exact answer is 0.73=0.3430.7^3 = 0.343, and 1,000 simulated trials would usually land within a few hundredths of it.

    When simulation is useful

    Simulation shines when the exact calculation is hard: the chance that a family with four children has at least two girls in a row, or how often a random sample would show a difference as big as one observed in a study. That second use is the heart of inference: later units compare an observed result with what chance alone would produce, often using a simulated distribution.

    Key terms

    Probability
    The long-run relative frequency of an outcome in many repetitions of a chance process.
    Law of large numbers
    As the number of trials increases, the relative frequency of an outcome approaches its probability.
    Simulation
    Imitating a chance process with random numbers to estimate probabilities.
    Trial
    One repetition of the simulated chance process.
    Independent trials
    Trials where the outcome of one does not change the probabilities for another.

    Common mistakes

    • Representing a 70% outcome with digits 1–7 out of 1–10 in a table of 0–9.

      Use exactly 7 of the 10 digits 0–9, such as 0–6.

    • Ignoring whether repeats are allowed.

      State it: repeats allowed for independent trials, not allowed when sampling without replacement.

    • Trusting an estimate from a handful of trials.

      Use many trials; the estimate improves as the number of trials grows.

    How this topic is tested

    • Describe a simulation in four parts: assign digits, one trial, what to record, estimate from many trials.
    • Say explicitly whether repeated digits are allowed and why.
    • Report the estimate as a proportion of trials, e.g. 34 of 100 = 0.34.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 2 · Collect Data

      A spinner lands on red 40% of the time. Which assignment of random digits 0–9 models one spin?

    2. Question 2 · SP 3 · Analyze Data

      In 200 simulated trials, an event occurred 46 times. What is the estimated probability?

    3. Question 3 · SP 4 · Interpret Results

      A gambler has lost 8 roulette spins in a row and says a win is 'due'. What is wrong with this reasoning?

    4. Question 4 · SP 2 · Collect Data

      To simulate choosing 3 different students at random from a class of 25, labelled 01–25, using two-digit random numbers, you should:

    5. Question 5 · SP 4 · Interpret Results

      Why do more simulated trials give a better estimate?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Practices 2 and 3 · 4 points

    A cereal company puts one of 5 different toys, equally likely, in each box. Hari buys 4 boxes. He wants to estimate the probability that he gets 4 different toys.

    1. (a) Describe how to use random digits to carry out one trial.
    2. (b) In 100 trials, 19 gave four different toys. Estimate the probability and interpret it.

    Connected topics

    Frequently asked questions

    Does a simulation give the exact probability?

    No, it gives an estimate. More trials make it more accurate, but exact answers come from probability rules.

    Can I use a calculator's random integer command?

    Yes. Say what range of integers you generate and what each represents.

    What is the exact answer to the toy question?

    It is (5 × 4 × 3 × 2)/5⁴ = 120/625 = 0.192, close to the simulated 0.19.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 2 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Probability, Random Variables, and Probability Distributions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 2 practice test: 60 questions with explanations

    All topics in Unit 2: Probability, Random Variables, and Probability Distributions

    1. 2.1 Tabular and Graphical Representations for the Distributions of Two Categorical Variables
    2. 2.2 Summary Statistics for Two Categorical Variables
    3. 2.3 Estimating Probabilities Using Simulation
    4. 2.4 Introduction to Probability
    5. 2.5 Mutually Exclusive Events
    6. 2.6 Conditional Probability
    7. 2.7 Independent Events and Unions of Events
    8. 2.8 Introduction to Random Variables and Probability Distributions
    9. 2.9 Parameters of Random Variables
    10. 2.10 The Binomial Distribution
    11. 2.11 The Normal Distribution
    12. 2.12 Sampling Distributions and the Central Limit Theorem

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.