Fitting a line

Drag points, fit a line by hand, and compare the best lines under squared and absolute error when an outlier appears.

BeginnerExplained in Linear regression and loss

Fitting a line

Drag points to move them, tap empty space to add one, tap a point to remove it.

  • Data points
  • Squared misses (area)
  • Your line
Line
Loss
0.20
4.50
Mean squared error0.998
Mean absolute error0.781
Best possible MSE0.41
Liney = 0.2x + 4.5

Try this

  • In Your line, use the sliders to reach the best possible mean squared error.
  • Switch to Best fit, press Add an outlier, and compare the solid and dashed lines.

Try "embedding", "softmax", "overfitting", or "backpropagation".