Home▸Statistics▸Linear Regression: OLS Scatter Plot (2D)

📈 Linear Regression: OLS Scatter Plot (2D)

Interactive 2D least-squares linear regression. Click to add data points, generate random datasets, adjust noise, and watch slope, intercept and R² update live with residual lines.

Statistics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-linear-regression ↗ Open standalone
⚙ Under the hood

Interactive 2D least-squares linear regression. Click to add data points, generate random datasets, adjust noise, and watch slope, intercept and R² update live with residual lines.

StatisticsRegressionLeast SquaresData FittingMath

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

What did you find?

Add reproduction steps (optional)