Research Methods · Simplified

Sampling Distribution and p-Value Simulator

A world in which nothing is going on. Run studies in it, and see how far apart two groups drift anyway.

The simulator

Two groups from the same population

Both groups are drawn from one population, so the true difference is exactly zero. Every study still finds some difference. The pile of those differences is the sampling distribution, and the p-value is read off it.

Key terms
Null model
The assumed state of affairs the calculation is done under: here, that both groups come from the same population and the true difference is zero.
Sampling distribution
The spread of results you would get by repeating the same study many times when the null model is true.
Standard error
How much the difference between two group means moves from study to study. Here it is the population standard deviation times the square root of two over the group size.
p-value
The share of studies under the null model that land at least as far from zero as the one observed, counting both directions.
Simulation settings
40
15
5
Differences between two groups drawn from the same population

One mark per simulated study. The shaded regions are everything at least as far from zero as the observed difference, in either direction.