📐 Linear Regression
① Draw & Fit
② Gradient Descent
③ Prediction
④ Residuals
Live Stats
Click canvas to add points.
Points
0
β₀
—
β₁
—
R²
—
MSE
—
Example
Clear
Controls
Learning Rate
0.010
Steps / click
10
▶ Step
⟳ Auto
Reset
Epoch
0
β₀
0.00
β₁
0.00
Loss
—
Convergence
Press Step or Auto…
Study Hours
Hours Studied
5.0
Predicted Score
—
Y = β₀ + β₁·X
β₀
—
β₁
—
Input X
—
Legend
Actual point
Predicted (line)
Pos. residual
Neg. residual
Metrics
MAE
—
MSE
—
RMSE
—
R²
—
Hover a Point
X
—
Actual Y
—
Ŷ
—
Residual
—
Shuffle Data