No single experiment lands on the truth. Many experiments, taken together, do.
A school tests a tutoring programme with a randomized trial. In this simulation we know every student's score with and without tutoring, so we know the true average effect. Commit to your guesses before you touch the controls.
Work as a group with one driver: one person moves the controls, and everyone else watches the same screen and calls out answers. The controls and written answers are shared across your group. Every browser reruns the simulation, so wait for “Finished N trials” under the chart before you read any number or answer.
Your instructor has locked the controls and answers on this page.
The current run has selection above 0, so it is not randomized. Here the estimator is biased, and the claims below about unbiasedness and about the SD do not apply to this run. Set selection to 0 to see the randomized result.
Each trial uses different students and a different random split, so each estimate carries its own random error. Across many trials those errors cancel. Averaged over repeated trials, the estimator gives the true effect. That is what it means for the estimator to be unbiased. It says nothing about how close any one trial is.
Unbiased estimator. The difference in mean outcomes between treated and control units, under random assignment, satisfies:
Quadrupling n halves the SD, so precision costs sample size at a diminishing rate. The SD predicted by theory now appears with the other readouts above: compare it with the SDs you wrote down. When treatment depends on baseline scores, as with the selection control, the errors no longer cancel, and the estimator is biased.
Two dissimilar students are in a trial: Maya scores 70 without tutoring, Sam scores 35. Tutoring helps them differently: it adds +2 for Maya and +8 for Sam, so the average effect of tutoring on these two students is +5. A coin flip decides who is tutored, and the trial's estimate is the tutored student's score minus the other student's score.
What are the two possible estimates? Is this estimator biased for the average effect? What happens to the average estimate as the trial is repeated many times?
Agree on one answer as a group and write it once.
0 / 600 charactersThe two estimates are +37 and −27. If Maya is tutored, the estimate is 72 − 35 = +37. If Sam is tutored, it is 43 − 70 = −27. Neither matches the average effect of +5, and neither matches either student's own effect (+2 or +8), because the two students differ so much at baseline.
The estimator is still unbiased for the average effect. The coin makes the two outcomes equally likely, so the expected estimate is (37 + (−27)) / 2 = +5, which is (2 + 8) / 2, the average of the two individual effects. Unbiasedness comes from random assignment, not from a large or well-matched sample, and it holds even at n = 2. Effects that differ between students do not break it; the target is their average.
Over many repeated trials, the average estimate settles on +5. The expected bias is zero at every number of trials. The gap you observe is chance, and it shrinks roughly like the trial-to-trial SD divided by the square root of the number of trials. Here both estimates sit 32 points either side of +5, so the SD is 32 and the gap is about 3.2 after 100 trials and about 0.32 after 10,000.
Tell the school: a two-student trial is unbiased but nearly useless on its own. Only n, the number of students per trial, shrinks the spread of each estimate.
Left out: confidence intervals, clustering, stratification and covariate adjustment.