Lesson 7.5 · Probability
Simulations
Some probabilities are too hard to count and too slow or costly to test for real. What is the chance a basketball player makes at least of her next shots? You can't make her shoot thousands of times, but you can act it out with a coin, a number cube or random digits. That's a simulation.
What is a simulation?
Definition
Simulation
A simulation is an experiment that uses a simple random tool to model a real situation. The tool's outcomes must have the same probabilities as the real outcomes. You run many trials, then use the experimental probability as an estimate.
Choosing a random tool
Match the tool to the probability you need.
| Probability of the real event | A tool that works |
|---|---|
| flip a coin: heads means the event happens | |
| or | roll a number cube: a means yes (or or for ) |
| spin a spinner with equal sections, one of them shaded | |
| a percent like or | pick random digits to : let digits (or digits) mean yes |
Random digits are the most flexible tool. Each digit from to has a chance, so you can match any probability in tenths. Computers and calculators can produce long strings of random digits for you.
Running a simulation
Four steps of a simulation
- Choose a tool whose outcomes have the right probabilities.
- Define a trial: what one run of the situation looks like with your tool.
- Run many trials and record whether the event happened in each.
- Estimate: the probability is about .
Worked example: Three shots
Keisha makes of her shots. Use a simulation to estimate the probability that she makes at least of her next shots.
- Tool: random digits. Let mean "make" (that's of digits, or ) and mean "miss."
- Trial: one group of digits stands for shots.
- Run trials. Here are trials.
| Trial | Digits | Makes | At least ? |
|---|---|---|---|
| yes | |||
| no | |||
| yes | |||
| no | |||
| yes | |||
| no | |||
| yes | |||
| yes | |||
| no | |||
| yes |
- Estimate. The event happened in of the trials, so the probability is about .
Ten trials give only a rough estimate. Just like any experiment, running more trials (a class might combine results to get ) gives an estimate you can trust more.
Common mistake
The tool must match the real probabilities, not just the number of outcomes. A shot is either a make or a miss, but you can't simulate Keisha's shots with a coin, because a coin gives a make only of the time, not .
Worked example: Guessing on a quiz
A quiz has true-or-false questions. Explain how to simulate the chance that someone who guesses on every question gets all right.
Each guess is right with probability , so flip a coin: heads means a correct answer. One trial is flips. Run many trials and count the ones that are all heads. Divide that count by the number of trials.
(You can check the result with the tree-diagram method: outcomes, one of them all heads, so the theoretical probability is . A good simulation should give something close to that.)
Tip
Before you start, write down what each outcome of your tool means, like " to = make." Deciding in the middle of the simulation makes mistakes easy.
Practice
A basketball team wins half of its games. Which tool is best for simulating whether the team wins its next game?
A bus is on time of the time. You want to simulate one day using a random digit from to . How many of the ten digits should stand for "on time"?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A class ran a simulation times. The event they were studying happened in of the trials. What is their estimate of the probability? Give your answer as a decimal.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A carnival game is won of the time. Which simulation does not model the game correctly?
To simulate families with two children, Nia flips a coin twice for each family (heads = girl, tails = boy). Her trials are below.
GB, BB, GG, BG, GB, GG, BB, BG, GB, BB, GG, GB, BG, BB, GB, GG, BG, BB, GB, BG
Based on her simulation, what is the probability that a family with two children has two girls? Give your answer as a fraction.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A softball player gets a hit of the time. To simulate at-bats, you use groups of random digits, where , and mean a hit and through mean no hit. Here are trials.
Based on these trials, what is the probability that she gets at least one hit in at-bats?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A simulation estimates that the probability of a traffic jam on Main Street during a school morning is . About how many of the school mornings in a year should have a traffic jam?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.