STATAverse

Uncertainty and repeated samples

Fit the same regression three ways. Then draw new samples to see how often each interval contains the known coefficient.

Begin with the guided inference lesson →

Same data · Same coefficient

Three uncertainty estimates

The coefficient is fixed across these three rows. The standard-error formula and reference degrees of freedom determine the interval. Containment is observable here because the population coefficient is known.

The realized errors

Residuals and group membership

The highlighted points share a group; the other points are gray. A residual is an estimated error. The export also includes the true generated errors and their conditional standard deviations.