What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Residual formula: what it means and how to use it

Measure vertical prediction error for one observation. This regression relationship belongs to statistics. Read the symbols against the problem, confirm the required conditions, and estimate the scale before calculating.

\[e=y-\hat y\]

Define the population, event, or assumptions first

Residuals computed at the same points used to fit the model are optimistically small, because the line was tuned to those exact cases. A model can leave tiny residuals on its own data and still predict badly on new observations, so in-sample residuals alone never establish that a model is good.

What each quantity represents in Residual

Name the experiment or data-generating process, distinguish sample information from population parameters, and state the event or estimate in words. Rebuild missing background in the statistics subject guide, then use statistics practice to retrieve the relationship without being told its name.

Interpret a complete Residual calculation

The numerical line is only the middle of the answer; connect it back to the event, data, or uncertainty:

\[Observed $18$ and predicted $15$ give residual $3$.\]

Compute without losing the statistical question

  1. Name the unknown, and the unit the answer has to come out in.
  2. Match the symbols to your values. $y$ is observed response and $\hat y$ predicted response.
  3. Check the conditions before substituting. Positive residual means the observation lies above the fitted model.
  4. Substitute, keep exact values to the last line, then test the sign, size, and unit against a rough estimate - The check that catches most statistics slips.

Check the range, direction, and interpretation

After using Residual, repeat the calculation with units attached and test the result against a boundary case or a quick numerical estimate.

An inference this formula does not justify

What goes wrong: Computing predicted minus observed instead of observed minus predicted.

Why it fails: The sign then reverses, so points above the line are reported as negative. Any conclusion about whether the model over- or under-predicts a case comes out backwards.

Repair: Fix the order in your head as actual first: what really happened, minus what the model said would happen.

Questions about interpreting Residual

What does a curved pattern in a residual plot tell me?

That a straight line is the wrong shape for the data. The line has absorbed the average trend but left a systematic bend behind, which usually calls for a transformation or a curved model.

Should residuals always add up to zero?

They do for a least-squares line that includes an intercept, since the fitting condition forces it. If yours do not, either the model has no intercept or there is an arithmetic error.

Is a residual the same thing as an error?

No. An error is the distance from the true underlying relationship, which nobody can observe. A residual is the distance from the fitted line, which is an estimate of that relationship.

How do residuals help me spot an unusual case?

Look for one that is far larger in size than the rest. That point deserves investigation, especially if it also sits at an extreme x value, where it can drag the whole line toward itself.

Make it yours

Change one input, predict whether the output should rise, fall, or stay fixed, and only then recalculate.