Regression Lab

Regression analysis

Add and drag points, watch the best-fit line react, and read the results.

Scatter plot

Slope (b₁)–
Correlation (r)–
R²–

Data point Best-fit line Your line Influential point

Regression results

–

Points (n)
–
Slope (b₁)
–
Std error of slope
–
Intercept (b₀)
–
Correlation (r)
–
R²
–
Std error of estimate (s)
–
t for the slope
–
p-value (slope)
–
95% CI for slope
–
Influential points
–

Predict

Predicted y (ŷ)
–
95% CI for the mean
–
95% prediction interval
–

Residual plot

Each dot is the gap between a point and the best-fit line. A good straight-line fit leaves a shapeless cloud around zero.

Try your own line

The best-fit line is the one with the smallest total squared error. Can you match it by hand?

Your line
–
Your total squared error
–
Best possible (best-fit line)
–