Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Residual

How far a prediction was from the true value: y minus y-hat.

For one sample, the residual is y_i - \hat y_i, the signed difference between the true target value and the model's prediction, the quantity least squares minimizes the sum of squares of.

Examples

  • A predicted price of 310,000 against a true price of 325,000 has a residual of $15,000.

Read the full section →
Graph settings

Calculator