Problem Statement

Predict exam score from study hours

Move slope and intercept to fit the training data. Watch residuals, loss, gradient direction, and test performance update instantly.

Train data Test data Prediction line Residual error
1Dataset

Study hours and exam scores.

2Hypothesis

Use y = mx + b for prediction.

3Residual

Actual score minus predicted score.

4Loss

Average squared residuals.

5Gradient

Direction to reduce loss.

6Evaluate

Check test points and metrics.

Live Prediction Table

First rows from the dataset. Test rows are held out to check generalization.

SetHoursActualPredictedResidual