VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Partial Residual Plots: Curvature After Adjustment

Why is mathematics important when a straight-line regression may be hiding curvature? A partial residual plot keeps the original predictor on the horizontal axis and adds its fitted linear component back to the full-model residual. The result helps a modeller inspect the shape of one predictor's relationship with the response while the other predictors remain in the model.

This graph is a diagnostic, not a proof that a particular transformation is correct. It must be read with collinearity, leverage, residual and subject-matter checks.

Did You Know? The vertical coordinate can be written as residual + fitted coefficient × predictor. That small piece of algebra restores the target predictor's fitted contribution while leaving the other fitted contributions removed.

Full chapter index

Chapters 1–4 · Understand the question
  1. The shape-after-adjustment question
  2. The authoritative construction
  3. The algebra in plain language
  4. A worked example
Chapters 5–9 · Reproduce the example
  1. Why the original x-axis matters
  2. Add a smooth curve carefully
  3. Collinearity can hide variation
  4. Leverage and influence
  5. Heteroscedasticity
Chapters 10–15 · Check assumptions
  1. Interactions change the meaning
  2. A transformation workflow
  3. Why visual evidence needs numerical checks
  4. A spreadsheet workflow
  5. A coding workflow
  6. Applications and careers
Chapters 16–20 · Explore applications
  1. A student investigation
  2. What the plot cannot prove
  3. Common misconceptions
  4. Connection to recent mathematics articles
  5. Guidance for students and parents
Chapters 21–23 · Study and verify
  1. Practice questions
  2. Frequently asked questions
  3. Useful next reading

CHAPTER 1 OF 23 · Understand the question

1. The shape-after-adjustment question

Back to contents

A raw response-versus-predictor scatter plot mixes the target predictor with every measured variable correlated with it. A partial residual plot asks a narrower question: after the fitted effects of the other predictors have been accounted for, does the remaining relationship with the target predictor still look linear?

Contents · Next chapter

CHAPTER 2 OF 23 · Understand the question

2. The authoritative construction

Back to contents

NIST defines the plotted vertical value as Res + beta-hat_i X_i and plots it against X_i. NIST also warns that the display can fail when X_i is highly correlated with other predictors. Read the NIST partial residual plot reference.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 23 · Understand the question

3. The algebra in plain language

Back to contents

Start with the full-model residual e_i = y_i – y-hat_i. Add back only the fitted component beta-hat_j x_ij for the predictor under study. Plot c_i = e_i + beta-hat_j x_ij against x_ij. If the linear term is adequate, the cloud should be compatible with a straight component plus random scatter.

ResidualCoefficientPredictor
-1.20.84
Partial residual inputs.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 23 · Understand the question

4. A worked example

Back to contents

Suppose a case has residual -1.2, target predictor x=4 and fitted coefficient 0.8. Its component is 0.8×4=3.2. Its partial residual is -1.2+3.2=2.0, so the plotted point is (4,2.0).

ComponentPartial residualPlotted point
3.22.0(4, 2.0)
Partial residual coordinate.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 23 · Reproduce the example

5. Why the original x-axis matters

Back to contents

The horizontal axis remains the target predictor in its original units. That makes bends, thresholds and transformations easier to discuss than in a partial regression plot, whose horizontal axis is a residualised predictor.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 23 · Reproduce the example

6. Add a smooth curve carefully

Back to contents

A LOWESS or other restrained smoother can reveal systematic curvature, but its span controls how wiggly it appears. Compare the smoother with the fitted component line and with plausible scientific mechanisms rather than treating every bend as real.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 23 · Reproduce the example

7. Collinearity can hide variation

Back to contents

When the target predictor overlaps strongly with other predictors, the partial residual plot can understate the true uncertainty and distort the apparent strength of the relationship. Pair it with variance inflation factors, condition indices and the observed predictor range.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 23 · Reproduce the example

8. Leverage and influence

Back to contents

A point far out on the x-axis may control the apparent bend or slope. Label influential cases and compare Cook's distance, DFFITS and DFBETAS before proposing a new functional form.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 23 · Reproduce the example

9. Heteroscedasticity

Back to contents

A fan-shaped vertical spread may indicate changing variance rather than mean curvature. Inspect ordinary residual-versus-fitted plots and consider a variance model or transformation supported by the measurement process.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 23 · Check assumptions

10. Interactions change the meaning

Back to contents

If the effect of x differs by another predictor, one overall partial residual plot can average across distinct relationships. Use interaction-specific plots or conditional predictions when the model contains interactions.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 23 · Check assumptions

11. A transformation workflow

Back to contents

First identify a reproducible shape. Then propose a defensible term such as log(x), x squared or a spline. Refit the model, compare diagnostics and out-of-sample performance, and preserve the original scale in the explanation.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 23 · Check assumptions

12. Why visual evidence needs numerical checks

Back to contents

A plot is sensitive to axis limits, smoothing and sparse regions. Report the model formula, data range, smoother settings and uncertainty. A visual pattern becomes evidence only when it survives reasonable display and modelling choices.

Contents · Previous chapter · Next chapter

CHAPTER 13 OF 23 · Check assumptions

13. A spreadsheet workflow

Back to contents

Fit the full regression, save fitted values and residuals, copy the target predictor and coefficient, calculate e_i + beta-hat_j x_ij row by row, then create a scatter plot. Audit one row by hand before trusting the column.

Contents · Previous chapter · Next chapter

CHAPTER 14 OF 23 · Check assumptions

14. A coding workflow

Back to contents

Use a tested diagnostic routine or compute the coordinates explicitly. Preserve row IDs, preprocessing, missing-value rules and coefficient labels. Confirm that the coordinates match the model matrix actually fitted.

Contents · Previous chapter · Next chapter

CHAPTER 15 OF 23 · Check assumptions

15. Applications and careers

Back to contents

Partial residual plots support dose-response modelling, engineering calibration, environmental trend analysis, economics, education research and interpretable machine learning. The shared skill is diagnosing shape without confusing a model display with causation.

Contents · Previous chapter · Next chapter

CHAPTER 16 OF 23 · Explore applications

16. A student investigation

Back to contents

Model plant growth using light, water and temperature. Inspect the partial residual plot for light, then compare a linear term with a biologically plausible saturating or curved term. Explain which observations support the change.

Contents · Previous chapter · Next chapter

CHAPTER 17 OF 23 · Explore applications

17. What the plot cannot prove

Back to contents

It cannot establish causation, repair measurement error, guarantee a transformation, or substitute for external validation. It describes the fitted sample under the chosen adjustment set.

Contents · Previous chapter · Next chapter

CHAPTER 18 OF 23 · Explore applications

18. Common misconceptions

Back to contents

The vertical coordinate is not the raw response. A curved smoother is not automatically a better model. A visually straight display does not prove assumptions such as independence or constant variance.

Contents · Previous chapter · Next chapter

CHAPTER 19 OF 23 · Explore applications

19. Connection to recent mathematics articles

Back to contents

The partial regression plots guide explains the different residual-on-residual construction. The condition indices guide helps diagnose the collinearity warning.

Contents · Previous chapter · Next chapter

CHAPTER 20 OF 23 · Explore applications

20. Guidance for students and parents

Back to contents

Students should show the coordinate calculation for at least one case and label both axes precisely. Parents can ask what other predictors were adjusted for, whether influential cases drive the shape and how a proposed curve was checked.

Contents · Previous chapter · Next chapter

CHAPTER 21 OF 23 · Study and verify

21. Practice questions

Back to contents

  • Recalculate the worked point when the residual is 0.4.
  • Explain why the horizontal axis helps with choosing log(x).
  • Describe how high collinearity could make the display misleading.

Contents · Previous chapter · Next chapter

CHAPTER 22 OF 23 · Study and verify

22. Frequently asked questions

Back to contents

### Is a partial residual plot the same as a partial regression plot? No. Their axes and main diagnostic purposes differ.

### Does curvature prove a quadratic term? No. It prompts a model comparison.

### Should every predictor receive a plot? Often yes, with priority given to terms central to the question.

Contents · Previous chapter · Next chapter

CHAPTER 23 OF 23 · Study and verify

23. Useful next reading

Back to contents

Use the Mathematics Learning Hub to connect residual algebra with functions, graphs and statistical reasoning. Build both partial residual and partial regression plots for the same predictor and explain their different questions.

Contents · Previous chapter · Mathematics Learning Hub

Extended practice laboratory

Practice case 1: Calculate one component

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 1. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 2: Add one residual

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 2. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 3: Change the coefficient

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 3. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 4: Reverse the residual sign

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 4. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 5: Move x within range

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 5. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 6: Compare raw scatter

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 6. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 7: Add a LOWESS curve

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 7. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 8: Change smoothing span

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 8. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 9: Inspect an edge point

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 9. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 10: Label a leverage case

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 10. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 11: Compare Cook distance

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 11. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 12: Compare DFBETAS

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 12. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 13: Increase collinearity

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 13. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 14: Centre the predictor

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 14. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 15: Apply log x

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 15. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 16: Add x squared

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 16. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 17: Add an interaction

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 17. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 18: Inspect a fan shape

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 18. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 19: Audit one row

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 19. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 20: Check missing values

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 20. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 21: Compare partial regression

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 21. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 22: Restrict to observed range

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 22. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 23: Write a transformation case

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 23. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 24: Reject automatic deletion

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 24. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 25: Write a shape conclusion

Setup: Use the article’s partial-residual coordinate worked example as the starting record for case 25. Task: Change the input named in this case, recalculate every dependent quantity and state the comparison in one precise sentence.

Check: Check the defining identity, preserve the declared model and explain what additional graph, diagnostic or validation evidence is needed. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.