Home▸Physics & Mechanics▸Interactive Linear Regression: Least Squares, Gradient Descent, Residuals and Bootstrap

📈 Interactive Linear Regression: Least Squares, Gradient Descent, Residuals and Bootstrap

Interactive linear regression: drag data points, compare squared, absolute and Huber loss, ridge shrinkage, gradient descent on the loss contour, residual plot, R squared, confidence bands and a bootstrap of the slope.

Physics & Mechanics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
Interactive Linear Regression: Least Squares, Gradient Descent, Residuals and Bootstrap ↗ Open standalone
⚙ Under the hood

Interactive linear regression with draggable points, squared, absolute and Huber loss, ridge, gradient descent on the loss contour, residuals, R squared, confidence bands and a bootstrap of the slope.

Linear RegressionLeast SquaresGradient DescentStatisticsCanvas 2D

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)