Simulation worksheet with answer key
8 problems on simulation, ready to print for class or homework. The answer key prints on its own page, so hand out everything before it.
Name: ______________________________ Date: ______________ Period: ______
Problem 1
A juice bar's records show that 30 percent of customers order the ginger blend. You plan to model one customer's order with a table of random digits. (a) Give a digit assignment for a single customer and say why it is correct. (b) A classmate suggests using 1, 2, and 3 for ginger, 4 through 9 for everything else, and ignoring any 0 that comes up. Find the probability that scheme actually models. (c) Give a single-digit assignment that models a 25 percent chance instead. (d) State what one trial is if the question you want to answer is the probability that at least one of the next 4 customers orders the ginger blend.
Problem 2
A student garden club has 20 members, numbered 01 through 20. Four different members will be chosen at random for a seed-swap trip. You run the selection with a random digit table read in pairs. (a) Describe the assignment, including how to handle pairs outside the range and pairs that repeat. (b) Find the proportion of two-digit pairs that get discarded on the range check alone. (c) Using the digits below, read left to right in pairs and carry out one complete trial.
7 3 1 4 0 8 2 0 5 1 9 6 1 4 0 3 8 2 1 7
(d) Explain why repeats are discarded here even though they would be kept in a simulation of 4 separate customers.
Problem 3
A trading-card app advertises a 20 percent chance that a pack contains a holographic card. You want to estimate the probability that at least one of 4 packs contains a holographic card. (a) Give the digit assignment and define one trial. (b) Ten trials have been read off a digit table and grouped below, one trial per line. Carry out the count and give the estimate.
| Trial | Digits |
|---|---|
| 1 | 5 3 1 8 |
| 2 | 7 2 6 4 |
| 3 | 0 9 4 3 |
| 4 | 6 6 2 7 |
| 5 | 4 1 5 0 |
| 6 | 8 3 9 2 |
| 7 | 2 5 7 1 |
| 8 | 9 4 3 6 |
| 9 | 1 7 8 5 |
| 10 | 3 0 6 2 |
(c) The exact answer is . Compute it and compare. (d) A student counts every holographic digit in the whole block and reports . Say what that number estimates.
Problem 4
A tutoring center says its scheduling software assigns each Saturday shift to one of its 8 tutors at random, so every tutor is equally likely each week. Over the last 20 Saturdays, one tutor, Rosa, worked 6 of the shifts. (a) Describe a digit assignment for one Saturday and define one trial. (b) One hundred trials were run and the number of Rosa shifts in each trial was recorded.
| Rosa shifts in 20 Saturdays | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 or more |
|---|---|---|---|---|---|---|---|---|---|
| Number of trials | 7 | 20 | 27 | 22 | 14 | 7 | 2 | 1 | 0 |
Check that the simulated mean is close to what random assignment predicts. (c) Estimate the probability that a particular tutor gets 6 or more of 20 shifts under random assignment. (d) Decide whether Rosa's 6 shifts are surprising enough to doubt the random-assignment claim, and state one limit on what the simulation can conclude.
Problem 5
A bakery's quality log says 60 percent of its sourdough loaves pass the crust check. The head baker wants to estimate the probability that 8 or more loaves in a batch of 10 pass. (a) Design a simulation using a table of random digits: give the digit assignment, define one trial, say what you record, and say how the estimate is computed. (b) Run 5 trials on the digits below, one trial per line.
| Trial | Digits |
|---|---|
| 1 | 3 7 1 5 9 0 4 8 2 6 |
| 2 | 2 0 5 3 1 4 7 6 0 8 |
| 3 | 1 4 0 2 5 3 9 7 0 4 |
| 4 | 8 6 3 7 2 9 5 1 6 0 |
| 5 | 0 5 2 1 8 4 0 6 9 7 |
(c) Give the estimate these 5 trials produce and explain why the baker should not report it. (d) Name the assumption the digit assignment makes about the loaves within a batch.
Problem 6
A city bike-lane survey classifies every rider as a commuter (45 percent), a recreational rider (35 percent), or a delivery rider (20 percent). You want to estimate the probability that at least 2 of 6 randomly chosen riders are delivery riders. (a) Give a digit assignment and define one trial. (b) A classmate proposes single digits: 0 to 4 for commuters, 5 to 7 for recreational riders, and 8 and 9 for delivery riders. Find the three probabilities that scheme actually models. (c) Run 2 trials on the digits below, reading in pairs, six pairs per line.
| Trial | Digits |
|---|---|
| 1 | 0 7 6 2 9 1 3 8 4 5 8 3 |
| 2 | 5 4 2 0 7 6 0 9 3 3 6 8 |
(d) Say why you cannot report an estimate from part (c), and say how many trials you would run.
Problem 7
A packaging machine jams on 1 out of every 3 startups. You want to estimate the probability that it jams at least twice in the next 5 startups. (a) Explain why no assignment of the ten digits can give a probability of exactly , and give an assignment that does. (b) Say what fraction of digits your scheme discards and roughly how many digits one trial needs. (c) Run 4 trials on the digits below, reading left to right and running straight on into the next trial.
6 4 0 9 5 2 7 1 3 0 8 6 4 9 2 5 0 1 7 3 8 0 6 4
(d) Give the estimate and compare it with the exact probability .
Problem 8
A community solar program received 500 applications, 200 of them from renters, and awarded 25 panel subsidies by what it describes as a fair lottery. Only 5 of the 25 winners are renters. A housing group wants to know whether that is surprising under a fair lottery. (a) Give a digit assignment and justify the proportion. (b) Define one trial and say exactly what to record. (c) The first trial used the 25 digits below. Find the number of renters it produced.
8 2 5 0 9 3 6 1 7 4 0 8 2 9 5 3 6 0 4 7 1 9 8 2 5
(d) Across 200 trials, 6 produced 5 or fewer renters. Estimate the probability and say what it means. (e) Decide what the housing group can and cannot conclude, and name the approximation the digit assignment makes.
From statslearn.org/worksheets/simulation-worksheet. Free to print and copy for classroom use.
Simulation: answer key
(a) 0, 1, 2 for ginger and 3 through 9 for other orders, since ; (b) it models , because discarding 0 leaves only 9 usable digits; (c) 0 and 1 ginger, 2 through 7 other, discard 8 and 9, giving , or read pairs with 00 to 24 as ginger; (d) one trial is 4 digits, one per customer, and you record whether at least one of them is 0, 1, or 2.
(a) Pairs 01 to 20 select a member, pairs 00 and 21 to 99 are discarded, and any pair repeating a member already chosen is discarded; (b) of pairs are discarded on the range check; (c) members 14, 8, 20, and 3, using the first 16 digits after discarding 73, 51, 96, and the repeated 14; (d) the 4 members come from one pool without replacement, so a repeat is impossible in the real process, while 4 separate customers share no pool and can repeat freely.
(a) 0 and 1 mean a holographic card and 2 through 9 mean none, and one trial is 4 digits with repeats kept, recording whether at least one digit is 0 or 1; (b) 6 of the 10 trials contain a 0 or a 1, so the estimate is ; (c) , about below the estimate; (d) estimates the chance that a single pack is holographic, not the chance that at least one of 4 packs is.
(a) Digit 1 is Rosa and digits 2 to 8 are the other tutors, with 0 and 9 discarded, and one trial is 20 usable digits with the number of 1s recorded; (b) the simulated mean is shifts against the predicted ; (c) ; (d) is below the usual 5 percent mark, so the result is surprising and gives some evidence against the claim, but a 3 percent event still happens sometimes and Rosa was picked out after the fact.
(a) 0 to 5 pass and 6 to 9 fail, giving ; one trial is 10 digits (one batch), you record whether 8 or more digits fall in 0 to 5, and the estimate is the proportion of yes trials over several hundred trials; (b) passes of 6, 7, 8, 5, and 6, so only trial 3 reaches 8; (c) , which is unusable because 5 trials allow only six possible answers; (d) that the 10 loaves are independent with a constant pass rate of .
(a) Pairs 00 to 44 are commuters, 45 to 79 recreational, and 80 to 99 delivery, with one trial being 6 pairs and the count of pairs from 80 to 99 recorded; (b) commuter, recreational, and delivery, so two of the three are wrong; (c) trial 1 has 2 delivery riders and records yes, trial 2 has 0 and records no; (d) 2 trials allow only the values , , and , so run several hundred; the exact probability is .
(a) Every all-digit assignment gives a probability of the form and is not one of those, so assign 1, 2, 3 to a jam and 4 to 9 to a clean startup and discard 0, giving ; (b) of digits are discarded and a trial needs about digits; (c) jam counts of 1, 2, 2, and 1, so trials 2 and 3 record yes; (d) against the exact .
(a) Digits 0 to 3 are renters and 4 to 9 are not, matching ; (b) one trial is 25 digits, and you record the count of digits from 0 to 3 and whether it is 5 or fewer; (c) 10 renters, which is also the expected count ; (d) , so about 3 percent of fair lotteries would give 5 or fewer renters; (e) the result is surprising but not proof, and the scheme approximates without-replacement draws as independent, which the 10% condition permits since .
Every step is worked at statslearn.org/practice/simulation-practice. Free to print and copy for classroom use.
The key gives final answers only. The full worked solution for each problem is on the matching practice set, and every other sheet is on the worksheets page.
More worksheets from this unit
- Binomial probability worksheet with answer key
- Conditional probability worksheet with answer key
- Expected value and random variable worksheet with answer key
- Independent events worksheet with answer key
- Normal distribution worksheet with answer key
- Probability rules worksheet with answer key
- Discrete random variable worksheet with answer key
- Sampling distribution and CLT worksheet with answer key
- Tree diagram probability worksheet with answer key
- Two-way table probability worksheet with answer key
- Z-scores and normal distribution worksheet with answer key