Introduction to Statistics · Chapter 3 · Probability Topics
A lab, not a reading: pick two candies at a time under two different rules, work out what each rule predicts, then run it yourself and see how close twelve trials come.
bookSHelf · Introduction to Statistics · §3.6 · a self-paced section
Learning objectives — by the end of this section you will be able to
§3.6.1 — theoretical and empirical probability
Every probability in this lab has two faces: one you can compute from the bag before you ever touch it, and one you can only get by picking candies and keeping score.
Neither number is the "right" one — they answer different questions, and the whole lab is about watching them disagree.
The probability the bag already knows
Definition 3.6.1 — Theoretical Probability
The theoretical probability of an event is the ratio of the number of outcomes in that event to the total number of outcomes in the sample space, computed from the known makeup of the experiment:
P(event)=total number of outcomesnumber of outcomes in the eventDefinition 3.6.1: counted off the bag — 5 of the 40 candies are red, so P(red) = 5/40 without a single pick.
It requires no trials, because it comes from the structure of the experiment rather than from doing it — it is what the experiment should do in the long run.
The probability the trials produced
Definition 3.6.2 — Empirical Probability
The empirical probability of an event is the ratio of the number of trials in which the event actually occurred to the total number of trials performed:
P(event)=total number of trialsnumber of trials in which the event occurredDefinition 3.6.2: scored off the trials — 4 of 12 recorded picks were doubles, so P(doubles) = 4/12.
It requires no knowledge of the bag's contents — you get it by running the thing and keeping score. It is what the experiment did, and it is also called a relative frequency.
Insight Note — pricing a coin flip
Two roads to the same number
You can say heads is one-half because a coin has two sides, or you can flip it 12 times, get 7 heads, and say seven-twelfths. Neither person is lying. The first described the coin; the second described an afternoon.
Your turn — commit before the reveal
Try It Now 3.6.1 — Erin's die
Erin rolls a standard six-sided die 20 times. Four of her rolls come up 3. Write the theoretical probability of rolling a 3 and the empirical probability of rolling a 3 from this run, and say which one would change if she rolled another 20 times.
Step 1 — theoretical. A fair die has six equally likely faces and exactly one is a 3: P(roll a 3)=61. This comes from the die's structure and does not change with more rolls.
Step 2 — empirical. Four of the 20 rolls came up 3: P(roll a 3)=204.
Answer: theoretical 61, empirical 204 — only the empirical value moves on a re-run; the theoretical value was never about any particular run.
§3.6.2 — building your own bag
Count out 40 mixed-color M&Ms — about one small bag's worth — and record how many of each color you have. These counts are your population: everything you compute on paper for the rest of the lab depends on them, so count twice.
Every worked calculation from here on uses one specific demonstration bag, so you can see each step done in full. Those numbers are not your numbers — read the demonstration to learn the move, then redo it with your own counts.
§3.6.2 — recording what you count
| Color | Quantity |
|---|---|
| Yellow (Y) | |
| Green (G) | |
| Blue (BL) | |
| Brown (B) | |
| Orange (O) | |
| Red (R) |
Table 3.6.1: Population — your own color counts.
§3.6.2 — the bag every worked example uses
| Color | Quantity |
|---|---|
| Yellow (Y) | 8 |
| Green (G) | 6 |
| Blue (BL) | 7 |
| Brown (B) | 5 |
| Orange (O) | 9 |
| Red (R) | 5 |
| Total | 40 |
Table 3.6.2: the demonstration bag used in every worked example below.
These numbers are not yours — read the demonstration to learn the move, then redo it with your own Table 3.6.1 counts.
Context Pause — reading the subscripts
The subscript is the pick number
Throughout this lab, R1 means red on the first pick and G2 means green on the second. The subscript is the pick number, not a second color. A double means both picks came out the same color.
P(R1 AND G2) and P(G1 AND R2) describe different events — say the event out loud in words before you write a fraction.
Your turn — read the bag
Try It Now 3.6.2 — not yellow
Using the demonstration bag in Table 3.6.2, how many M&Ms are not yellow, and what fraction of the bag is that?
Step 1 — total the bag. 8+6+7+5+9+5=40.
Step 2 — subtract the yellows. 40−8=32.
Answer: 32 of the 40 candies are not yellow, which is 4032 of the bag.
§3.6.3 — the first column
For each of the seven events in Table 3.6.3, compute the probability twice — once assuming the first M&M goes back before the second pick, once assuming it does not. This subsection fills the first column; leave every answer unreduced.
With replacement the cup is full again before the second pick, so both picks face the same 40 candies — 40⋅40=1600 ordered pairs, and the two picks are independent.
§3.6.3 — seven events, two designs
| Event | With Replacement | Without Replacement |
|---|---|---|
| P(2 reds) | ||
| P(R1B2 OR B1R2) | ||
| P(R1 AND G2) | ||
| P(G2∣R1) | ||
| P(no yellows) | ||
| P(doubles) | ||
| P(no doubles) |
Table 3.6.3: compute these from your own Table 3.6.1 counts.
Your turn — one pair, with replacement
Try It Now 3.6.3 — brown then orange
Using the demonstration bag with replacement, compute P(B1 AND O2) — brown on the first pick, orange on the second. Leave the answer unreduced.
Step 1. The bag has 5 brown and 9 orange out of 40.
Step 2. The brown goes back in, so the second pick still faces all 40: 405⋅409=160045.
Answer: 160045.
Worked example — the full with-replacement column
Example 3.6.1 — filling in the with-replacement column
Tayen's demonstration bag has 8 yellow, 6 green, 7 blue, 5 brown, 9 orange, and 5 red, for a total of 40. Help them compute all seven theoretical probabilities with replacement.
Every row multiplies two fractions over 40, because the first candy always goes back. For doubles, add all six same-color products; no doubles is the complement over 1600.
P(G2∣R1) only asks about the second pick — the red went back in, so the cup still holds all 6 greens out of 40, giving 406 directly, with no second factor to multiply.
| Event | With Rep. |
|---|---|
| 2 reds | 25/1600 |
| R1B2 or B1R2 | 50/1600 |
| R1 and G2 | 30/1600 |
| G2∣R1 | 6/40 |
| no yellows | 1024/1600 |
| doubles | 280/1600 |
| no doubles | 1320/1600 |
§3.6.4 — the second column
Redo the same seven events with the first candy left out of the cup. The first pick is unchanged, but every second pick now faces 39 candies instead of 40 — one short in whichever color left the cup.
That gives 40⋅39=1560 ordered pairs, and it makes the two picks dependent — you need the full multiplication rule, P(A AND B)=P(A)P(B∣A).
Your turn — the same pair, without replacement
Try It Now 3.6.4 — brown then orange, redone
Redo Try It Now 3.6.3 without replacement: compute P(B1 AND O2), and say why the numerator did not change even though the design did.
Step 1. Brown first is 405. With a brown gone, the cup holds 39, and all 9 oranges are still there: 399.
Step 2. 405⋅399=156045.
Answer: 156045 — same numerator as with replacement, because removing a brown candy never touches the orange count; only the pool it's drawn from shrank.
Worked example — the full without-replacement column
Example 3.6.2 — filling in the without-replacement column
Wes is redoing the same demonstration bag without replacement. Compute all seven theoretical probabilities the way he would.
Removing the first candy shrinks the second pick's pool to 39 — and shrinks that color's own count by one, if the second pick asks for the same color again.
For doubles, each color's second candy must be one of the remaining candies of that color: 8⋅7+6⋅5+7⋅6+5⋅4+9⋅8+5⋅4=240.
| Event | Without Rep. |
|---|---|
| 2 reds | 20/1560 |
| R1B2 or B1R2 | 50/1560 |
| R1 and G2 | 30/1560 |
| G2∣R1 | 6/39 |
| no yellows | 992/1560 |
| doubles | 240/1560 |
| no doubles | 1320/1560 |
The headline result — §3.6.5
Removing the first candy never touches a different-color pair — only same-color counts and the total move.
Both no-doubles rows read 1320: 16001320 with replacement, 15601320 without.
Banning replacement removes exactly the 40 ordered pairs where you'd have drawn the very same candy twice — and every one of those was a double. So the doubles count falls by 40 and the total falls by 40, leaving the two-different-colors count untouched.
† The general pattern: removing the first candy can only affect the second pick's count for that candy's own color. Ask for a different color second, and only the denominator moves; ask for the same color, and both move.
Insight Note — one shelf, not the whole cabinet
The rule change only touched one shelf
Banning replacement removes exactly the outcomes where you pick the same physical candy twice. Those were all doubles, so the non-doubles shelf is untouched — 1320 either way.
Your turn — predict without computing
Try It Now 3.6.5 — Alexis predicts first
Predict whether each is larger with replacement or without, for the demonstration bag: (a) P(2 reds), and (b) P(R1 AND G2).
(a) Same color twice. Removing the first red shrinks the numerator (25→20, a 20% drop) and the denominator (1600→1560, only 2.5%). The numerator loses more — without replacement is smaller.
(b) Two different colors. Removing a red takes nothing from the greens, so the numerator holds at 30 while the denominator drops — without replacement is larger.
§3.6.6 — the candy half
Returning both candies before the next pair is what makes the 12 pairs comparable to each other — each pair starts from a full cup of 40.
§3.6.6 — your record sheet
| Pick | With Replacement | Without Replacement |
|---|---|---|
| 1 | ||
| 2 | ||
| ⋮ | ||
| 12 |
Table 3.6.4: your 12 pairs under each design (60 total values).
Your turn — a bag with only one red
Try It Now 3.6.6 — can a pair be (R, R)?
Suppose you run the without-replacement pass with a bag that holds only one red candy. Could one of your pairs come out (R, R)? Explain what that tells you about reading a double.
Step 1. Without replacement, the two candies in a pair are always two different physical objects — the first is removed before the second is drawn.
Step 2. With only one red, once it's out there's no red left to draw — (R, R) is impossible.
Answer: no. A double means the two candies matched in color, not that the same candy was drawn twice — without replacement it always means two distinct candies sharing a color.
Worked example — a completed record sheet
Example 3.6.3 — Malik's 24 pairs
Malik and his partner Devon ran both passes with the demonstration bag. His record is the input for every empirical calculation ahead.
With Replacement (picks 2, 6, 8, 12 are doubles — pick 6 drew the same red candy twice, which still counts)
1 (R,G) 2 (O,O) 3 (Y,B) 4 (BL,R) 5 (G,O) 6 (R,R) 7 (Y,O) 8 (BL,BL) 9 (O,G) 10 (B,Y) 11 (R,B) 12 (G,G)
Without Replacement (picks 2, 6, 10 are doubles — always two different candies of the same color)
1 (G,R) 2 (O,O) 3 (B,O) 4 (R,G) 5 (Y,G) 6 (R,R) 7 (BL,Y) 8 (G,O) 9 (R,B) 10 (Y,Y) 11 (B,G) 12 (O,BL)
§3.6.7 — counting from your record
Go through your Table 3.6.4 record and count. For six of the seven events, count how many of your 12 pairs satisfied it and write that count over 12 — leave it unreduced.
The seventh event, P(G2∣R1), works differently and gets its own subsection next.
§3.6.7 — the counted version of Table 3.6.3
| Event | With Replacement | Without Replacement |
|---|---|---|
| P(2 reds) | ||
| P(R1B2 OR B1R2) | ||
| P(R1 AND G2) | ||
| P(G2∣R1) | ||
| P(no yellows) | ||
| P(doubles) | ||
| P(no doubles) |
Table 3.6.5: count these from your own Table 3.6.4 record.
Your turn — does the direction match?
Try It Now 3.6.7 — Rosalia checks Malik's doubles
Malik's empirical P(doubles) came out higher with replacement (124) than without (123). Does that match what the theoretical values predicted?
Step 1. Theoretical: 1600280=0.1750 with replacement, 1560240≈0.1538 without — with-replacement is higher, and so is his data. The direction matches.
Answer: yes, but the theoretical gap (≈0.021) is smaller than one trial's worth (121≈0.083) — 12 trials cannot reliably detect a difference that small, so this is encouraging, not confirming.
Worked example — counting Malik's record
Example 3.6.4 — the six out-of-12 rows
Fill in the six out-of-12 rows of the empirical table from the 24 pairs in Example 3.6.3.
| Event | With Rep. | Without Rep. |
|---|---|---|
| 2 reds | 1/12 | 1/12 |
| R1B2 or B1R2 | 1/12 | 1/12 |
| R1 and G2 | 1/12 | 1/12 |
| no yellows | 9/12 | 9/12 |
| doubles | 4/12 | 3/12 |
| no doubles | 8/12 | 9/12 |
Try it in rāSHio — let it do the tallying
Enter your results as a column and choose Graph → Frequency Table. It counts each distinct value and reports the matching relative frequency — the same pair of columns you're building by hand here. Count yourself first, then use the table to check your counts add back to the number of trials you ran.
§3.6.8 — the row that isn't out of 12
The row P(G2∣R1) is not out of 12 — this is the step most groups get wrong. A conditional probability only concerns the trials where the given condition actually happened.
Your turn — Jordan checks the conditional row
Try It Now 3.6.8 — both of Malik's passes
Compute the empirical P(G2∣R1) for both of Malik's passes in Example 3.6.3, and explain the denominator you used.
With replacement. Pairs starting red: picks 1, 6, 11 — 3 pairs, 1 with green second: P(G2∣R1)=31.
Without replacement. Pairs starting red: picks 4, 6, 9 — again 3 pairs, again 1 with green second: 31.
Answer: 31 in both passes — the other nine pairs never satisfied R1, so including them would answer P(R1 AND G2), a different question.
§3.6.9 — put the tables side by side
You now have two full tables of numbers for the same seven events. Put them side by side and look at where they agree and where they do not.
Your turn — what changes at 240 trials?
Try It Now 3.6.9 — Mai runs 240 instead of 12
What values could her empirical P(doubles) take, and would you expect it to land closer to the theoretical 0.1750?
Step 1. With 240 trials the step size drops to about 0.0042 (from 0.0833) — any multiple of 2401.
Step 2. 0.1750×240=42, a whole number — 24042 hits the target exactly, something 12 trials never could.
Answer: any multiple of 2401; yes — the Law of Large Numbers pulls long-run relative frequency toward the theoretical value.
Worked example — theoretical against empirical
Example 3.6.5 — two gaps, one resolution
For Malik's bag and record, compare the with-replacement estimates of P(no yellows) and P(doubles) in decimal form.
| Event | Theoretical | Empirical | Gap |
|---|---|---|---|
| no yellows | 0.6400 | 0.7500 | +0.1100 |
| doubles | 0.1750 | 0.3333 | +0.1583 |
One extra matching trial out of 12 moves the empirical estimate by 121≈0.0833 — both gaps here are within about two of those steps. With only 12 trials the empirical value can land on just 13 possible numbers, so it physically cannot sit closer to the truth, however carefully the experiment was run.
Context Pause — why polls quote a sample size
The resolution is set by how many trials paid for it
A poll of 12 people cannot report 43% support, because 43% is not a multiple of one-twelfth. Run 240 trials instead of 12 and the step size drops to 2401, which lets the empirical value land near the theoretical one — and the Law of Large Numbers says it will.
Try it in rāSHio — simulate what you can't hand-draw
You are not going to draw 240 pairs of M&Ms by hand, but you can simulate them. Open rāSHio and choose File → Random Numbers…, set the range 1 through 40, leave No repeats UNCHECKED so a color can repeat, and ask for far more than a handful. Compare a short column against a long one — the long one is not more random, it is just further along.
Figure 3.6.1
File → Random Numbers…
Set a minimum, a maximum, and how many numbers to draw, then press Generate. Widen the range and the count to simulate a long run.
Figure 3.6.1: set a range and a count, then Generate. Widen the range and the count to simulate a long run.
§3.6.10 — discuss with your group
Answer these with your group, using your own two tables. Every one is a judgement call — what matters is whether you can point at your own numbers to defend the answer.
Key Terms — this lab's vocabulary
theoretical probability — a probability computed from the known structure of an experiment, the ratio of favorable outcomes to total outcomes, without running any trials.
empirical probability — a probability estimated from data: the ratio of trials in which an event occurred to the total trials; also called a relative frequency.
trial — one full repetition of the experiment; in this lab, one pick of two M&Ms.
double — an outcome in which both picks in a trial come out the same color.
sampling with replacement — the first item is returned before the second is drawn, so both picks face the same population.
sampling without replacement — the first item is not returned before the second is drawn, so the second pick faces a population one item smaller.
§3.6 — conclusions
Theoretical probability comes from the bag's known makeup; empirical probability comes from running the experiment and keeping score. They almost never agree exactly — the disagreement is information about how many trials you ran, not a mistake.
A 12-trial estimate has a step size of 121, so it cannot sit closer to the truth than about half a step, however carefully you run it. More trials shrink the step and let the Law of Large Numbers pull the empirical value toward the theoretical one.
Next: Chapter 4 — Random Variables, starting with the probability distribution function for a discrete random variable.