Regression Playground

Descriptive stats → best-fit line → sum of squares → F. Move any slider and watch every number and plot update together. Pin a baseline to see exactly what changed.

1. Data and fitted line

Black dots are people. Blue is the least-squares line; it always passes through the ring at (X̄, Ȳ). Red segments are residuals. The dashed gray line is the null model.

Live formulas

Each formula with your current numbers substituted. Green = went up, red = went down, compared with your last move (or the pinned baseline). The number glows when it just changed.

2. Descriptive stats

What you computed in earlier lectures.

Regression

3. Variance explained (ANOVA)

SS_T = SS_M + SS_res. The bar is the whole pie.

Properties of the fitted model

4. Is F bigger than chance?

Curve = F(1, n−2) when there is no relationship. Red tail = the 5% you choose (alpha). Blue = your p-value.

5. Why the best line is the bottom

SS_res as a function of the slope. The minimum sits at the best-fit slope, where the derivative is 0. Use the nudge slider to move off it.