Probability, Random Variables, and Simulation: The Idea of Probability and Estimating Probabilities Using Simulation

Learning Targets: What We Want to Discover
  • Learn how probability is really just what happens when you play a chance game over and over for a very long time.

  • Learn how to run pretend practice games (called simulations) to find out how likely something is without doing it in real life.

Big Idea 1: Random Processes and Probability
  • A random process is like a surprise grab bag: you know what toys might be inside, but you never know which one you will pull out next until you reach in and look! Flipping a coin or rolling a die are random processes.

  • A trial means doing the action just one single time (like flipping a coin once).

  • Probability is a score between 00 and 11 that tells us the chance of something happening:

    • A score of 00 means it is completely impossible (like a goldfish flying to the moon).

    • A score of 11 means it is totally guaranteed to happen every single time.

    • In AP Statistics, probability is the proportion of times an outcome occurs in a very long series of trials.

  • In the short run (just a few tries), luck rules and wild surprises happen! In the long run (after thousands of tries), the results settle down and show a clear, predictable pattern.

Big Idea 2: The Law of Large Numbers
  • The Law of Large Numbers: The more times you repeat a random chance game, the closer your actual results get to the true, secret probability.

  • If you flip a coin only 44 times, you might get 44 heads just by luck. But if you flip it 10,00010{,}000 times, the fraction of heads will get closer and closer to exactly 0.50.5.

Real-Life Example: Coffee Drinkers
  • The true probability that a randomly chosen grown-up drinks coffee on any given day is 0.560.56 (or 56%56\%).

    • What this means: If you ask a giant group of adults (like thousands of people), about 56%56\% of them will say yes, they drink coffee.

    • The 100100-Person Trap: If you ask only 100100 adults, will exactly 5656 of them drink coffee? Probably not! Because 100100 is a small group, natural chance variation (luck) means the count will bounce around and likely differ from 5656.

Big Idea 3: Estimating Probabilities Using Simulation
  • A simulation is a pretend game that imitates real life using fair chance tools (like dice, spinners, or random numbers). It allows us to answer questions safely, cheaply, and quickly.

  • The Three Steps of a Simulation:

    1. Describe the Setup and Outcome: Choose how to pretend using chance and decide what number or result you will write down after each turn.

    2. Perform Many Trials: Play the pretend game many times (usually 100100 trials or more) the exact same way.

    3. Answer the Question: Count up the results to find the estimated probability and draw a conclusion.

  • Approximation Rule: A simulation gives a close estimate, never a guaranteed perfect answer. Always use the approximately equal sign (≈\approx) for your probability!

Simulation Story 1: The Superhero Cereal Box Mystery
  • The Story: A cereal company puts 11 of 55 superhero comic books in every box: The Flash, Batman, Superman, Wonder Woman, or Green Lantern. The company promises that each hero has the exact same chance of being in any box.

  • A superfan buys boxes until they get all 55 heroes, but it takes them 2323 boxes! The fan wonders: is the company lying about them being equally likely?

  • Step 1: Simulation Setup:

    • Assign a number to each superhero:

    • Let 1=The Flash1 = \text{The Flash}

    • Let 2=Batman2 = \text{Batman}

    • Let 3=Superman3 = \text{Superman}

    • Let 4=Wonder Woman4 = \text{Wonder Woman}

    • Let 5=Green Lantern5 = \text{Green Lantern}

    • Use a random number generator to pick numbers from 11 to 55 until every number from 11 through 55 appears at least once.

    • Record the total number of boxes opened in that trial.

  • Step 2: Conducting Trials:

    • Repeat this pretend game for 100100 trials.

    • Make a dotplot where each dot represents one trial. For example, a dot at 1818 means it took 1818 boxes to find all 55 heroes in that trial.

  • Step 3: Answering the Question:

    • In the dotplot of 100100 trials, taking 2323 or more boxes only happened 33 times.

    • Estimated probability: 3100=0.03\frac{3}{100} = 0.03 (or 3%3\%).

    • Statistical Conclusion: Because 0.030.03 is less than the standard cutoff of 0.050.05, taking 2323 or more boxes by pure chance is very rare. This provides convincing evidence against the company's claim—the comics are probably not equally likely!

Simulation Story 2: The Golden Ticket Parking Lottery
  • The Story: A high school has 9595 students who park on campus. Every month, 22 students win special reserved spots next to the school door. There are 2828 students in the AP Statistics class. When both winning spots go to AP Statistics students, people suspect the lottery was rigged!

  • Question: Does this result provide convincing evidence that the lottery was unfair?

  • Step 1: Simulation Setup:

    • Give every student a two-digit number label:

    • Let 0101 to 28=AP Statistics students28 = \text{AP Statistics students}

    • Let 2929 to 95=All other parking students95 = \text{All other parking students}

    • Skip numbers 9696 through 9999 and 0000.

    • Read pairs of digits from left to right on a random digit table until you find 22 different labels between 0101 and 9595 (sampling without replacement: ignore repeated numbers).

    • Record whether both winning numbers belong to the AP Statistics group (0101 to 2828).

  • Step 2: Conducting Trials:

    • Repeat the lottery simulation for 100100 trials.

  • Step 3: Answering the Question:

    • In 99 out of the 100100 trials, both winners were AP Statistics students.

    • Estimated probability: 9100=0.09\frac{9}{100} = 0.09 (or 9%9\%).

    • Statistical Conclusion: Because 0.090.09 is not small (it is greater than 0.050.05), getting two winners from the AP Statistics class can easily happen just by random chance. Therefore, we do not have convincing evidence that the lottery was rigged!

AP Statistics Exam Tips for Simulations
  • Label Length: All labels must have the exact same number of digits! For 9595 people, use 0101 to 9595, not 11 to 9595.

  • State What to Ignore: Always state which numbers get skipped (like 9696 through 9999 and 0000).

  • Without Replacement: Whenever selecting different people or items, explicitly write down that repeated numbers must be ignored.

  • Clarity: Describe your simulation step-by-step so clearly that another student could read your instructions and follow them exactly.