Chapter 5 — where sampling distributions come from
A café claims its new machine pulls espresso faster. You time a sample of shots from each machine and compare the two means. The controls below let you set the truth — the real difference between the machines, and how variable the shots are — and then draw samples from it.
That is something you can never do with real data. In a real study you get one sample and never learn the truth. Here you can draw a hundred and watch what the one you would have got is a sample of.
Start drawing samples to see the sampling distribution emerge!
Set true difference = 0, sample size = 30, population SD = 50. Do not press anything yet.
Question 1: The two machines are genuinely identical. You are about to draw one sample of 30. What difference do you expect to see — exactly 0 ms, or something else? Say why.
Question 2: Now press Draw One Sample five times and write down the five differences. Were any of them 0?
Set true difference = 0 and population SD = 100, and leave both there for all three rows — the only thing you change is the sample size. For each row: set the sample size, press Reset, then Run 100 Samples, and record what the panel shows.
Your numbers will not match your partner's exactly, and they should not. Each run is 100 fresh samples.
| Sample size (SD = 100, true diff = 0) |
Mean of differences | SD of differences | Theoretical SEM | % of samples ≥ +50 ms |
|---|---|---|---|---|
| 10 | ||||
| 30 | ||||
| 100 |
Question 3: The mean of the differences stayed near 0 in all three rows, but the SD did not. Describe what happened to the SD as the sample size grew, and explain why in one sentence.
Question 4: Compare your "SD of differences" column against the "Theoretical SEM" column. They should be close. What is the theoretical SEM predicting?
Question 5: Look down your last column. At n = 10 a noticeable share of samples cleared +50 ms; by n = 100 it is essentially none — even though the true difference was 0 the whole time. Nothing about the machines changed between those rows. What did?
The counter says % of samples ≥ +50 ms. It counts one direction only: a sample that came out at −60 ms is just as far from zero, and it is not counted.
Question 6: With the true difference set to 0, the sampling distribution is symmetric around 0. Take your own n = 10 figure from the table above. Roughly what percentage of samples landed at least 50 ms away from zero in either direction? Explain your reasoning.
If your n = 100 row reads 0.0%, that is the correct answer and not a broken simulator — a 50 ms gap is about three and a half standard errors out at that sample size.
Question 7: This counter is not statistical power, and the page says so. Appendix E defines power as the probability of correctly rejecting the null hypothesis when the alternative is true. Using that definition, name one thing this page would need before it could report power at all.
Question 8: Set true difference to 0 and run 100 samples. Now imagine you are a researcher who ran exactly one study and got the most extreme sample on your screen. What would you have concluded, and would you have been wrong?
Question 9: A classmate says "my study found a 45 ms difference, so the machines really are different." Using this simulator, what would you ask them before agreeing?
Question 10: Every significance test you will run this term compares what you observed against a distribution like the one you just built. In your own words, what is that distribution a distribution of?
Grading: Credit/no-credit, not scored for correctness — but credit requires a genuine attempt; blank or clearly-unattempted answers earn no credit. Work through it with your partner and say what you actually think; a wrong idea you reasoned your way to is worth more here than a right one you copied.
coffee_lastname1_lastname2.pdf and upload to the course site.