← Gallery

Least-Squares Regression & Residuals

by Anonymous · ⭐ 1 · 🍴 0

Slide a line through a cloud of points, see residuals as vertical bars, and find by hand where the squared areas add up to the smallest totalβ€”then change the spread to explore correlation r and risky extrapolation.

πŸ”— Open in a new tabShare on XOpens X in a new tab with a post ready to edit β€” nothing is posted until you send it.

About this app

Least-Squares Regression & Residuals is an interactive statistics lesson for exploring how a line fits a scatter plot. Adjust the slope and intercept to see vertical residuals, then represent squared residuals as areas and find the line that minimizes their total. A separate section demonstrates how changing point spread affects correlation coefficient r and distinguishes interpolation from risky extrapolation.

Use cases

  • High school students learning regression and residuals
  • Teachers demonstrating least-squares fitting in class
  • Learners practicing slope and intercept adjustment
  • Anyone exploring correlation and extrapolation visually

Features

  • Interactive slope and intercept controls for a fitted line
  • Vertical residual bars showing point minus line
  • Squared-residual areas with a displayed sum and minimum of 12
  • Missions for finding the mean-point line and least-squares line
  • Adjustable point spread with correlation coefficient r
  • Prediction x control showing interpolation and extrapolation regions