← Gallery

Least-Squares Regression & Residuals

Drag the line to find where the sum of squared residuals is smallest, then vary the spread to see how correlation r behaves and why extrapolation is risky.

Open in a new tab

Ready to remix β€” hit the 🍴 Remix button below. You'll sign up first, then this app is copied into your workspace.

Creates a private copy. Review and send your request in the playground to start AI editing.

About this app

An interactive statistics lesson on least-squares regression and residuals. Adjust a line's slope and intercept to see vertical residuals, compare squared-residual sums, and identify the least-squares line. A separate correlation section shows how spread affects r and illustrates the difference between interpolation and risky extrapolation.

Use cases

  • High school students learning regression and residuals
  • Teachers demonstrating least-squares concepts in class
  • Learners practicing slope and intercept adjustment
  • Statistics review for correlation and prediction

Features

  • Interactive slope and intercept controls for fitting a line
  • Visual residuals showing point-minus-line distances
  • Squared residual areas and a minimum sum of 12
  • Correlation coefficient r with adjustable point spread
  • Prediction control showing interpolation and extrapolation zones
  • Mission-based activities with reset and next controls

Collections

App folders grouped by topic β€” learn, play, and build.See all β†’

Explore related apps

Derivatives, Maxima and Minima

Slide the tangent line to read the sign of the slope, locate maxima and minima where it changes, and find the largest fenced area for a fixed perimeter.

#math#derivative

Coordinate Plane & Proportions

Read coordinates and quadrants, then change the values to see direct proportion draw a line and inverse proportion a curve.

#math#coordinate_plane

Linear Inequalities & Number Lines

Solve linear inequalities step by step and mark the solution set on a number line (●/β—‹), seeing how dividing by a negative flips the inequality sign.

#math#inequality

Algebra Tiles (Expanding & Factoring)

Expand and factor (x+a)(x+b) by arranging rectangular tiles until their areas match.

#math#algebra