Home · Statistics · Correlation & Regression · Residual Calculator

Residual Calculator

Residuals of paired data against a line you supply, ŷ = a + b·x: the headline result is the largest absolute residual — the worst-fitting point.

Your figures

Example result — edit the figures to make it yours

2

Residuals (in data order)0.5, 1, -1.5, 1, 0.5, 2, -0.5
Largest residual2
Line usedy = 1 + 1.5 x

What this calculator does

Residuals of paired data against a line you supply, ŷ = a + b·x: the headline result is the largest absolute residual — the worst-fitting point. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Residual eᵢ = yᵢ − (a + b·xᵢ); headline = max |eᵢ|

Enter the line's intercept a and slope b — for example from the Linear Regression Calculator — and each residual is the vertical gap between the observed y and the line at that x.

The headline is the maximum absolute residual: the single point the line fits worst.

Residuals are signed before the absolute value: positive means the point sits above the line.

Worked example

With the example inputs this page opens with (intercept a 1, slope b 1.5), the result is 2.0000. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying intercept a
Intercept aResult
0.52.5000
0.82.2000
12.0000
1.251.7500
1.52.0000
22.5000

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

What is a residual, in plain terms?

The part of y the line failed to explain at that x: observed minus predicted. A good model leaves small residuals with no pattern; a visible curve or funnel in the residuals means the model is missing structure.

Why report the largest absolute residual?

It flags the worst-fitting observation — often an outlier, a data-entry error, or the point where the model's shape breaks down. Here it is 2.0, at x = 6, where y = 12 sits 2 above the line's 10.

How does the Residual Calculator work?

Residuals of paired data against a line you supply, ŷ = a + b·x: the headline result is the largest absolute residual — the worst-fitting point. X values · y values · Intercept a · Slope b → Largest absolute residual. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Residual Calculator need?

X values · y values · Intercept a · Slope b → Largest absolute residual. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.