📊 Interactive Mode: Click anywhere on the chart to add new data points! Watch how the regression line updates in real-time.
Linear Regression Visualization

Least Squares Linear Regression

Interactive visualization of the analytical solution L(α, β) = 1/n∑(αxi + β - yi)²

Data Points (xi, yi)
Fitted Line ŷ = αx + β
Residuals ei = yi - Å·i
0.00
Slope (α)
0.00
Intercept (β)
0.00
R² Value
0.00
Mean Squared Error