All AP Courses AP StatisticsAP Stats

Lab

Probability Simulator

A probability is the long-run relative frequency of an outcome. In the short run, anything can happen. Run a simulation and watch how long the run has to be before the relative frequency settles.

How to do this lab

  1. Pick an event in the Experiment menu, such as two dice summing to 7 or at least one six in four rolls.
  2. Write down your prediction of the probability before running anything.
  3. Press Run 1, Run 10, Run 100 or Run 1,000 and watch the running relative frequency line on the graph.
  4. Compare Trials, Event happened and Relative frequency, and read the last outcomes below the readouts.
  5. Press Show the true probability to draw the exact value on the graph, and Start over to try again. Changing the experiment also resets the run.

What you will learn

  • Explain probability as a long-run relative frequency.
  • Describe how simulation estimates a probability and how the estimate improves with more trials.
  • Compare simulated estimates with exact values found by counting outcomes.
  • Explain why short runs can stray far from the true probability.

Common mistakes

  • Believing a streak must correct itself. After many heads in a row, the next flip is still a fair coin flip.
  • Expecting the line to land exactly on the true value. It wanders closer but never promises an exact match.
  • Judging a result after 10 trials. Early swings are large.
  • Estimating at least one six in four rolls as 4/6. The exact value is 1 minus (5/6) to the fourth power.

Check your work

  • Relative frequency should equal Event happened divided by Trials.
  • Reveal the true probability and see how many trials it took to get within 0.01.
  • Compute the exact value by counting, such as 6/36 for a sum of 7, and compare it with the lab's answer.

Challenges

  1. Estimate the probability that two dice sum to 7 with 50 rolls, then with 5,000. Compare both to the exact answer.
  2. After 10 flips the running proportion of heads is often far from 0.5. After 1,000 it rarely is. What does that say about short runs?
  3. Find the event among the choices with the smallest probability. How many trials did it take before your estimate was within 0.01 of it?

Topics this lab supports