Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Drag the observed-statistic slider below. The blue histogram is a randomization null distribution: 10,000 differences in group means, each from one random shuffle of the group labels of a simulated two-group experiment. Every shuffle is a world where the null hypothesis is true, so the histogram shows the wobble chance alone produces (centered on the green dotted no-effect line at 0).

The slider sets a hypothetical observed test statistic D|D|. The figure shades the two-sided tail beyond ±D\pm|D| (vermillion, hatched) and reports the simulated p-value -- the proportion of shuffles at least as extreme as the observed value:

p-value=#{i:DiDobs}M.\text{p-value} = \frac{\#\{\,i : |D^{*}_i| \ge |D_{\text{obs}}|\,\}}{M}.

Slide right and watch the shaded tail -- and the p-value -- shrink. Somewhere around D4|D| \approx 4 the tail proportion drops past 0.05: that is the α=0.05\alpha = 0.05 line made visible.

Loading...