Random Digits, Simulation and Chance Differences

AP Statistics · Unit 2 — Probability, Random Variables, and Probability Distributions

Using a table of random digits

To choose an SRS, or to assign treatments, the exam expects a procedure that anyone could repeat: (1) label every unit with the same number of digits — $40$ units get labels $01$ to $40$; (2) read the table in groups of that many digits; (3) ignore numbers outside the label range and any repeats; (4) stop when you have enough. With the line $71340\ 08521\ 45663$ and labels $01$–$40$, the pairs $71,\,34,\,00,\,85,\,21,\,45,\,66,\,3\ldots$ give the units $34$ and $21$ first. For random assignment, the first $20$ labels drawn go to treatment A and the rest to B — write that sentence, it is the part graders look for.

Is the difference real or just chance?

After an experiment you see, say, a mean difference of $8$ points between the two groups. Random assignment alone would produce some difference even if the treatment did nothing. A simulation answers "how big a difference does chance produce?": keep the observed responses, re-randomise the group labels many times, compute the difference each time, and count how often it is at least as large as the one observed. If only $6$ of $200$ re-randomisations reach $8$ points, chance produces such a gap about $3\%$ of the time — the result is statistically significant, meaning unlikely to be due to random assignment alone.

Describing a simulation

A full-credit description names four things: what one trial represents, how randomness is generated (digits, cards, a spinner), what is recorded from each trial, and how the many trials are used to estimate the probability. Missing any one of the four costs the point.

Worked example: describing a procedure with a random number table

A chain has $40$ stores. (a) Describe how to use a random number table to choose $5$ stores to inspect. Use the line $71340\ 08521\ 45663\ 01924$ to show the $5$ stores chosen. (b) Afterwards, $20$ employees were randomly divided into two groups of $10$ to try a new training method; the new group sold on average $12$ more orders. Describe a simulation to determine whether $12$ orders could be due just to the random division into groups.

Solution

(a) Assign each store a two-digit label $01$–$40$. Read the line in pairs, skipping $00$, pairs greater than $40$, and repeated pairs, until $5$ labels are found. The pairs in turn: $71$ (skip), $34$ ✓, $00$ (skip), $85$ (skip), $21$ ✓, $45$ (skip), $66$ (skip), $30$ ✓, $19$ ✓, $24$ ✓. Choose stores $34, 21, 30, 19, 24$.

(b) Write the number of orders sold by each of the $20$ employees on $20$ cards. One trial: shuffle the cards, randomly deal them into two piles of $10$, compute the difference of the mean of the first pile minus the second pile, and record it. Repeat many times, for example $1000$ trials. Estimate the probability as the proportion of trials with a difference $\ge12$. If that proportion is small (under $5\%$), a difference of $12$ orders is hard to explain by random grouping alone, meaning the new training method has a real effect.

Check against the rubric: all four ideas (a trial, how randomness is generated, what is recorded, how it is used) and the direction "at least $12$", matching the direction in the question.

Common mistake

Labels must have the same number of digits; assigning $1$–$40$ and then reading digit by digit is wrong from the first step. When sampling you skip repeated labels, but when simulating dice rolls or shuffling cards, repeated results are normal. In the simulation part, count the trials "at least as large as observed", not "exactly equal to"; and never conclude "definitely has an effect" — say only "hard to explain by chance".

Key takeaway

Random number table: assign labels of equal length, read in groups, skip numbers out of range and repeats, and state clearly who goes in which group. A shuffling simulation answers "how big a difference does chance produce". If the observed difference is rare in the simulation, it is statistically significant.

← Categorical Data and Two-Way Tables · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · Probability Rules →