Line Fit Explorer

Paste (x, y) pairs or load a CSV file, then drag the sliders to choose a y-intercept and slope. The goal is to make the sum of squared errors as small as you can — watch the numbers to know when you are getting closer. Edit data ↓

1 · Fit a line

ŷ = 0 + 0 · x

2 · How good is the fit?

Sum of squared errors (SSE)
—
Average squared error (SSE ÷ n)
—
R² (fraction of variation explained)
—
Best so far: —

Plot

  • Data points
  • Your line
  • Errors (vertical gaps)
Show the numbers (table view)

3 · Data

↑ Back to plot

Or drag a file onto the text box. Files are read in your browser; nothing is uploaded.