- Learn
- Mathematics
- Statistics
- Intermediate Statistics – Regression and ANOVA
- Regression Assumptions and Diagnostics
Regression Assumptions and Diagnostics
IntermediateLesson 2 of 10 in Intermediate Statistics – Regression and ANOVA Course
What you will learn
- Explain which conditions the linear regression model relies on, what goes wrong when each one fails, and how residuals let you check them.
- Name the regression assumptions and what each one protectsState linearity, independence, constant variance and normality of the errors, plus the conditions on the predictors, and link each to the results it keeps trustworthy.
- Compute and read raw, standardized and studentized residualsCalculate residuals and their scaled versions, explain why scaling is needed, and judge how large a residual has to be before it stands out.
- Name the regression assumptions and what each one protects
- Read residual plots, Q-Q plots and the main diagnostic tests to judge each assumption, and recognize what a pattern means before choosing a remedy.
- Check linearity with residual and component plotsUse residuals-versus-fitted plots, plots against each predictor and component-plus-residual plots to detect curvature, and know what these plots can and cannot show.
- Detect unequal error varianceRecognize heteroscedasticity in residual and scale-location plots, run and interpret the Breusch–Pagan test, and explain what unequal variance does and does not damage.
- Judge whether the errors are normalRead histograms, Q-Q plots and P-P plots of residuals, know the limits of normality tests, and decide when non-normal residuals matter.
- Check that the errors are independentIdentify study designs that create dependent errors, check for clustering and serial correlation, and explain why dependence makes results look more precise than they are.
- Check linearity with residual and component plots
- Measure how strongly the predictors overlap, explain what that overlap does to the coefficients, and choose a sensible response for the purpose of the model.
- Measure multicollinearity with correlations, tolerance and VIFRecognize perfect and near multicollinearity, compute and read tolerance and the variance inflation factor, and use condition indices.
- Decide when multicollinearity matters and respond to itJudge whether collinearity threatens the question the model answers, and choose among centering, combining, dropping, collecting more data and joint tests.
- Measure multicollinearity with correlations, tolerance and VIF
- Tell outliers, high-leverage cases and influential cases apart, measure their impact with leverage, studentized residuals, Cook's distance and related statistics, and decide what to do with them.
- Tell outliers, leverage and influence apartDefine the three kinds of unusual case, compute leverage, apply common cutoffs, and see how each kind changes a fitted line.
- Measure influence with Cook's distance, DFBETAS and DFFITSCompute and read Cook's distance and the case-deletion statistics for single coefficients and fitted values, and use influence plots.
- Decide what to do with unusual casesFollow a defensible sequence for unusual cases: check for errors, check population membership, run sensitivity analyses, and report the decisions transparently.
- Tell outliers, leverage and influence apart
- Fix curvature, skew and unequal spread with transformations or added terms, protect inference with robust standard errors, and carry out and report a complete diagnostic check.
- Transform variables to fix curvature, skew and unequal spreadChoose log, square-root, reciprocal and polynomial terms for the pattern in the residuals, interpret the transformed coefficients, and recheck the model.
- Use robust standard errors when the variance is not constantExplain how heteroscedasticity-consistent standard errors work, choose among HC0 to HC4, interpret robust results, and know what they leave unfixed.
- Run a complete diagnostic check and report itCarry out diagnostics in a sensible order, revise and recheck the model, and report the checks and decisions clearly in APA style.
- Transform variables to fix curvature, skew and unequal spread
Regression Assumptions and Diagnostics study guide
1Understand what a regression model assumes
Before interpreting a regression table, identify what its estimates and uncertainty depend on. The model separates a predictable mean from unexplained errors. You will connect each assumption to the result it protects, then calculate residuals on scales that make different cases comparable. This distinction matters when a case pulls its own fitted value toward itself and looks less unusual than it really is.
1.1 What the assumptions protect
A regression output gives estimates and measures of uncertainty. The assumptions tell you which parts of that output deserve trust. They describe the mean relationship and the errors around it, not the shape of each raw variable.
Read the model
The population model is . There are cases and predictors; the intercept is an additional coefficient. The error is the gap between an observation and its true population mean. Because that mean is unknown, diagnostics use residuals from the fitted model.
Use LINE
Linearity means that the chosen terms describe the conditional mean, leaving errors that average zero at each predictor combination. Independence means that one case’s error gives no information about another’s. Normality concerns the distribution of the errors. Equal variance, or homoscedasticity, means that their spread stays constant across predictor combinations.
“Linear” means linear in the coefficients. Both and are linear regression models. A curved pattern can therefore be modeled within linear regression.
Match a failure to its consequence
A missing curve damages the mean predictions and the meaning of a straight-line slope. Independent errors and constant variance support the usual standard errors, tests, and confidence intervals. Normal errors make the usual coefficient tests exact in small samples and support normal-theory prediction intervals for individual new cases.
Under the Gauss–Markov conditions, least squares has the smallest variance among linear unbiased estimators. Normality is unnecessary for this result. With enough independent information, coefficient tests can tolerate moderate non-normality; a prediction interval for one new case still depends on the error distribution.
Check the predictors too
No predictor can be an exact linear combination of the others if all coefficients are to be estimated uniquely. For example, total practice time cannot enter alongside both individual and group practice time when total is their exact sum. Measurement error also matters: random error in a single predictor typically pulls its simple-regression slope toward zero.
A skewed predictor does not violate the normality assumption. A skewed outcome can also be consistent with normal errors around different conditional means. Inspect residuals after fitting the relationship. Start with the model’s form and the study design, then check spread and normality; a small departure in a tail should not distract from a missing curve or repeated observations treated as independent.
For example, a task-time model can predict the average time correctly at every practice level while errors widen for difficult tasks. The slope can still describe the average relationship, but a standard error based on one common variance needs revision. If the same people supply several times, there is a second problem: shared person effects require a dependence-aware analysis even if the plotted band looks even.
Key Takeaways
- LINE describes the mean relationship and errors.
- A polynomial model can be linear in its coefficients.
- Unequal variance threatens the usual uncertainty estimates.
- Normality concerns errors, not raw predictors.
- Perfect collinearity prevents unique coefficient estimates.
1.2 Residuals on comparable scales
A residual measures a prediction error in the observed sample. Its sign has a direct meaning, but its size needs context: a gap of 5 seconds is large in a precise model and small in a noisy one.
Calculate the signed gap
The raw residual is . An observed time of 37 seconds and a fitted time of 41 seconds give seconds. The model overpredicts this case. A positive residual means underprediction. An error refers to the unknown population relationship; a residual uses the estimated relationship.
With an intercept, ordinary least-squares residuals sum to zero and are uncorrelated with the fitted values and each included predictor. This algebraic property does not certify a good model: a U-shaped residual pattern can still have zero overall linear correlation.
Allow for leverage
Even with constant error variance, raw residual variance is . Leverage measures how unusual the predictor values are. A high-leverage case pulls its own fitted value toward its observed outcome, reducing its raw residual.
The internally studentized, or standardized, residual is , where is the fitted model’s residual standard error. In the study-hours example, learner 10 has a residual of −7.21, , and leverage 0.772. The denominator is , giving . Learner 9 has a larger raw residual, 8.13, but a smaller standardized residual, 1.61.
Leave the case out of the noise estimate
An externally studentized residual replaces with , estimated after deleting the case. A discrepant case can inflate the full model’s noise estimate and partly hide itself. Removing learner 10 reduces that estimate from 5.40 to 0.92, producing an externally studentized residual near −16.3. Under normal model errors, the deleted statistic follows a distribution with degrees of freedom.
Read cutoffs and software labels
With many residual degrees of freedom, standardized residuals behave approximately like normal scores: about 95% fall within ±1.96 and 99% within ±2.58. Among 200 cases, about 10 beyond ±1.96 are expected even with a suitable model. Screening many cases requires attention to multiple comparisons; formal small-sample outlier tests use deleted residuals and an adjustment such as Bonferroni.
In R, resid(model), rstandard(model), and rstudent(model) give raw, internally studentized, and externally studentized residuals. SPSS uses RESID, SRESID, and SDRESID for these versions. Its ZRESID divides by the overall residual standard error without the leverage correction. Read the definition behind a column before applying a cutoff.
Key Takeaways
- Residual = observed − fitted.
- A negative residual means overprediction.
- Internal scaling accounts for leverage.
- Deleted residuals estimate noise without the case.
- A few large residuals are expected when many cases are screened.
- Software residual labels require checking.
2Check linearity, constant variance, normality and independence
Different residual patterns answer different questions. A curve concerns the mean; a funnel concerns spread; a bent Q-Q plot concerns distribution shape. Independence begins with the study design and may remain hidden in a pooled plot. You will read these signals separately, use tests alongside visual evidence, and choose which problem needs attention first.
2.1 Read curves in residual plots
An apparently strong regression can miss the shape of the relationship. Residual plots show where predictions are systematically too high or too low, including patterns that one overall slope hides.
Look around zero
Plot residuals vertically against fitted values horizontally. A roughly horizontal band centered on zero supports the mean form. Follow the center of the band across the horizontal axis. A smooth loess line can make a bend easier to see.
Positive residuals at both ends and negative residuals in the middle form a U. The model underpredicts at the ends and overpredicts in the middle. An inverted U reverses those errors. Least squares forces no overall straight-line residual trend when there is an intercept; it does not remove curved patterns.
Locate the predictor involved
Task time may fall rapidly during early practice and then level off. A straight line averages these different rates of improvement. In the worked practice-session example, residuals start near +8.9 and +1.7 seconds, fall to about −5.1 in the middle, and end near +2.7 and +5.9. The repeated change of sign identifies a mean-form problem.
In multiple regression, draw residuals against each predictor too. Fitted values mix all predictors into one axis, so a curve against one variable may be blurred. A raw plot of outcome against that variable does not adjust for the other predictors and can give a different impression.
Choose the right partial plot
A component-plus-residual plot adds the predictor’s fitted component back to each residual: is plotted against . Its straight reference slope is . A smooth curve departing from that line suggests that the contribution of this predictor needs a nonlinear term. R’s car::crPlots(model) produces these plots.
An added-variable plot first removes the other predictors from both the outcome and the predictor of interest, then plots the two sets of residuals. Its slope is also . It is especially useful for seeing which observations drive that coefficient. It is less direct for diagnosing the shape of a nonlinear effect.
Revise the mean form
A high R squared or a significant slope cannot replace these checks. Anscombe’s quartet has the same fitted line, correlation, and outcome mean across four very different pictures, including a curve and fits driven by one case.
If a curve is tied to one predictor, consider a suitable transformation or a polynomial term. Center a predictor before squaring it, keep its linear term, and test the added squared term. A nonzero quadratic coefficient supports curvature, but its absence does not exclude every possible nonlinear shape. Refit, then inspect the new residual plots before moving to spread or normality.
Key Takeaways
- Follow the center of the residual band to check mean form.
- Inspect residuals against individual predictors in multiple regression.
- Partial residual plots help reveal curved predictor effects.
- Added-variable plots reveal cases driving a partial slope.
2.2 Recognize changing error spread
Predictions can track the mean well while becoming less reliable at one end of the scale. Unequal error variance is a problem about spread around the mean, so read the width of the residual band separately from its center.
Identify a fan
A funnel in residuals versus fitted values is narrow at one end and wide at the other. Durations and amounts often vary more when their predicted values are large. The mean residual can stay near zero throughout this pattern. Homoscedasticity means constant error variance; heteroscedasticity means that variance changes.
Do not judge width from the single highest and lowest point. A dense region contains more opportunities for extreme observations. Compare typical vertical spread across regions. In SPSS, the usual diagnostic plot is ZRESID against ZPRED.
Read the scale-location plot
The scale-location plot graphs against fitted values. Taking absolute values removes residual signs; taking square roots makes the display less dominated by extreme values. A flat smooth line supports constant spread. A rising line indicates that residual size grows with predictions. R includes it in plot(model) for an lm fit.
Understand the consequence
When the conditional mean is correct, unequal variance leaves least-squares coefficients unbiased. It breaks the usual pooled-variance standard errors. Confidence intervals can be too narrow or too wide, and tests can be too liberal or too conservative. Least squares also loses its minimum-variance advantage among linear unbiased estimators.
A single-width prediction interval cannot describe both the narrow and wide parts of a funnel well. An apparently precise prediction in the high-variance region can be misleading even if the fitted mean is correct.
Use a test with the plots
The studentized Breusch–Pagan test regresses squared residuals on variance predictors. Its statistic is , compared with a chi-square distribution. If the auxiliary regression has nonconstant predictors, the reference degrees of freedom are . With 150 cases, three predictors, and auxiliary R squared 0.08, the statistic is 12.0 and . This supports unequal variance. R’s lmtest::bptest(model) uses the studentized Koenker version by default.
The White test adds squared predictors and cross-products, allowing a wider range of variance patterns but spending more degrees of freedom. Small samples can miss a real funnel; large samples can flag a small departure. Curvature can also create apparent changing spread, so repair mean form first.
Choose a response
For a suitable mean model with independent cases, heteroscedasticity-consistent standard errors protect coefficient inference. A transformation of the outcome may stabilize spread and improve shape. Weighted least squares uses inverse error variances when the variance pattern is known. Choose by the pattern and the research question, then inspect the revised model.
Key Takeaways
- A funnel concerns spread, not the mean trend.
- Scale-location plots summarize residual size.
- Unequal variance damages usual standard errors.
- Breusch–Pagan uses an auxiliary regression.
- Choose robust inference, a transformation, or suitable weights.
2.3 Judge a normal Q-Q plot
Normality is about the errors at fixed predictor values. After fitting the mean, residuals provide the practical evidence. A plot reveals whether a departure is a small tail wiggle, broad skew, or a few extreme cases.
Read the axes first
A normal Q-Q plot compares ordered residuals with the quantiles expected from a normal distribution. Points close to a straight reference line support approximately normal errors. The line need not be horizontal or have a slope of one: residual scale sets its slope. The outermost points vary especially strongly in small samples.
A histogram helps identify skew or isolated values, but changing bin width can change its appearance. Q-Q plots use the ordering of all observations and are often more informative about tails.
Distinguish skew from tail weight
With theoretical normal quantiles horizontally and residuals vertically, right skew produces a broad upward bend: points can be above the line at both ends and below in the middle. Left skew reverses that bend. Heavy tails put the left tail below and the right tail above the line, forming an S with steep ends. Light tails give the opposite tail pattern.
Read axis labels before using these descriptions. Swapping the axes mirrors the display. SPSS’s regression “normal probability plot” is a P-P plot of cumulative probabilities, which emphasizes the center more than the tails. A P-P plot and a Q-Q plot are different displays.
Judge what the departure threatens
Non-normality by itself does not bias least-squares coefficients when the mean model is correct. It affects exact small-sample tests and normal-theory intervals. Large samples often make coefficient inference reasonably stable under moderate departures, but the shape still matters for prediction intervals for one new case. Heavy tails can also make least squares imprecise because extreme cases receive substantial weight.
A significant Shapiro–Wilk or Kolmogorov–Smirnov result is not a measure of practical damage. With many cases, tests detect tiny departures. With few cases, a nonsignificant test can miss a consequential departure.
Investigate the source
Start by checking mean form, spread, and unusual cases. Curvature can make the pooled residual distribution non-normal. A positive right-skewed duration with a funnel may benefit from logging the outcome. Recheck its Q-Q and residual plots after fitting on the new scale.
If independent cases still give clearly non-normal residuals in a small sample, case-resampling bootstrap confidence intervals provide an alternative that does not assume normal errors. Each bootstrap sample is fitted again to build an empirical coefficient distribution. The resampling unit must match the design; repeated rows from one person cannot be treated as independent cases.
Key Takeaways
- Normality is checked using residuals.
- Read Q-Q axis labels before interpreting bends.
- Heavy tails and skew produce different patterns.
- Normality tests are sensitive to sample size.
- Prediction intervals remain sensitive to error shape.
2.4 Find dependence in the design
Rows in a data table are not always independent pieces of information. People may share a class or clinic, and several rows may come from one person. The collection design is the starting point for checking independence.
Identify shared errors
Independence means that learning one error tells you nothing about another. Students in one class may share an unmeasured teaching condition. Repeated measurements share person-specific influences. Measurements made consecutively may share equipment drift or environmental conditions.
Positive dependence commonly makes ordinary standard errors too small, producing narrow intervals and too many false positives. The effect is especially strong for means and predictors that vary between groups. A predictor that mainly varies within groups may be affected much less.
Count independent information
For equally sized clusters of cases with intraclass correlation , the design effect for a mean is . In the class example, 300 students in classes of 20 with correlation 0.10 give . Their information about a mean is roughly that of independent observations.
This is an approximation for a mean, not a universal correction for every regression slope. A teacher-level predictor varies between classes, so its precision can suffer in a similar way. A student-level predictor with substantial within-class variation has a different pattern.
Inspect groups and order
Plot residuals by class, clinic, or person. Group centers persistently above or below zero suggest shared omitted influences. A featureless pooled residual cloud can hide this structure because it removes the group labels.
For meaningfully ordered rows, plot residuals against order. Runs of positive residuals followed by runs of negative ones suggest neighboring errors move together. Alternating signs suggest negative serial correlation.
Use Durbin–Watson for its actual question
The statistic is . Similar neighboring residuals give small differences and a low statistic. It ranges from 0 to 4 and is roughly , where is lag-one residual correlation. Near 2 suggests little lag-one correlation; below 2 suggests positive and above 2 negative correlation. Values below 1 or above 3 are common inspection guides.
A value near 2 in arbitrarily shuffled rows tells you little about independence. The statistic does not check every shared clinic or person effect.
Match the analysis to the design
Grouped data call for methods such as cluster-robust standard errors or multilevel models. Repeated measurements require a method that recognizes the person. Ordered dependence requires a serial-correlation model. Ordinary heteroscedasticity-consistent standard errors allow unequal variance across independent cases; they do not account for correlated errors. Averaging within each independent cluster removes within-cluster dependence from the analysis but discards information about differences inside that cluster.
Key Takeaways
- Start with how observations were collected.
- Rows can share errors through groups, people, or order.
- Durbin–Watson concerns neighboring rows in a meaningful order.
- Choose a method that represents the source of dependence.
3Detect and deal with multicollinearity
Predictors can explain an outcome well together while providing little information about their separate effects. You will quantify overlap with tolerance and VIF, interpret condition diagnostics, and decide whether the uncertainty threatens your research question. Responses range from re-expressing polynomial terms to collecting more informative data; the choice depends on what the predictors mean.
3.1 Measure predictor overlap
Multiple regression estimates a coefficient from the part of its predictor that remains after accounting for the others. When little independent variation remains, individual effects become hard to separate.
Separate perfect from near overlap
If total study hours exactly equal individual hours plus group hours, including all three creates perfect multicollinearity. There are multiple coefficient combinations giving the same fitted values, so software must drop a term or refuse a unique solution.
Near multicollinearity still permits estimation. It does not itself bias coefficients, but their standard errors grow. Signs and sizes can change sharply with a few cases or a small model revision. The model can have a significant overall test while no single coefficient is significant.
Calculate tolerance and VIF
Regress predictor on all the other predictors. Its auxiliary measures how much of it they explain. Tolerance is , the remaining proportion of variation. The variance inflation factor is .
If , tolerance is 0.25 and VIF is 4. The variance of the coefficient estimate is inflated fourfold relative to the corresponding no-overlap comparison; its standard error is multiplied by . With auxiliary R squared 0.90, VIF is 10 and the standard-error multiplier is about 3.16. Do not confuse a variance multiplier with a standard-error multiplier.
Use several views of the predictors
A predictor correlation matrix reveals strong pairwise relationships. Absolute correlations above about 0.8 deserve attention, including negative ones. But a variable can be nearly explained by several others together without any one pair having an extreme correlation. VIF checks this joint overlap.
Common inspection guides are VIF above 10 or tolerance below 0.1; some analysts investigate above 5. These are conventions, not significance tests. Sample size and residual noise affect actual precision too. A wide interval on the coefficient of interest matters more than a threshold crossed by an unrelated control.
Read condition diagnostics and polynomial terms
SPSS condition indices identify nearly redundant dimensions of the predictor matrix. An index above 30 is especially concerning when at least two coefficients have variance proportions above about 0.5 on that same dimension. Indices from 10 to 30 suggest moderate overlap. Read the index and variance proportions together.
Squares create structural overlap: for one person at each age 20 through 60, age and age squared correlate 0.991, giving VIF near 58. Centering age before squaring often reduces this. R’s car::vif(model), SPSS collinearity diagnostics, and jamovi’s collinearity statistics provide the main checks. High VIF does not by itself imply poor prediction for cases that follow the sample’s predictor pattern.
Read an auxiliary R squared as a predictor diagnostic, not the main outcome model’s R squared. A model might explain only 30% of outcome variation while one predictor has auxiliary R squared 0.90 and VIF 10. Conversely, a very strong outcome fit need not have overlapping predictors. The two R squared values come from different response variables and answer different questions.
Key Takeaways
- Perfect overlap prevents a unique solution.
- Near overlap mainly reduces coefficient precision.
- Tolerance = 1 − auxiliary R squared.
- VIF is a variance multiplier; its square root scales the standard error.
- Pairwise correlations can miss joint overlap.
- Read condition indices together with variance proportions.
3.2 Choose a response to collinearity
The right response depends on the question. A model that predicts well may still be unable to tell two overlapping effects apart. Decide which coefficients need interpretation before changing the predictors.
Start with the purpose
For prediction within a familiar predictor pattern, overlap may be acceptable. For explaining a particular coefficient, a high VIF and wide confidence interval make its separate contribution uncertain. Inspect the VIF of the predictor you interpret; overlap among controls does not give your focal predictor a high VIF if it is unrelated to them.
Dropping a variable can reduce a VIF while changing the scientific question. If that variable affects the outcome and is related to retained predictors, omitting it can bias their coefficients. A smaller VIF alone is insufficient reason to exclude it.
Center structural terms
For a quadratic model, form and include both and . This changes the intercept and the linear coefficient’s interpretation. The linear coefficient is now the slope at the mean of the original predictor. The quadratic coefficient, fitted values, and R squared stay the same when the same complete quadratic model is re-expressed.
For a predictor symmetric around its mean, the centered predictor and its square have zero correlation. For skewed data, overlap may remain. Centering often reduces structural collinearity but does not guarantee a lower VIF in every sample. It cannot separate two distinct questionnaires that measure almost the same thing.
Keep the useful information
If two questionnaires measure the same construct, use the measure that best answers the question or combine them into a justified score, such as the mean of standardized scores. If they represent different constructs, seek more observations where the predictors vary separately. More cases improve precision; a broader informative predictor pattern can help separate effects.
A joint test asks whether a group of overlapping terms adds information together. It does not require each term to be individually significant.
Work a joint test
For 100 cases and four predictors, suppose full-model R squared is 0.30 and dropping two terms gives 0.18. The residual degrees of freedom are . The nested statistic is , with 2 and 95 degrees of freedom and . Together the pair contributes, even if its separate slopes are imprecise. This usual test assumes the usual variance model; robust joint inference uses a robust Wald test.
For a prediction-focused model with severe overlap, ridge regression trades some coefficient bias for lower variance. Report the VIF range, the affected question, and any change with its reason. For example: “The two anxiety measures were combined because they assessed the same construct; the combined score was used in the final model.”
Key Takeaways
- Match the response to prediction or coefficient interpretation.
- Center before squaring; keep the full polynomial terms.
- Centering preserves fitted values in an equivalent model.
- Combine predictors only when their meaning supports it.
- A joint test can detect a contribution that separate tests miss.
4Find and handle unusual and influential cases
A large residual, an unusual predictor combination, and a strong effect on the fitted model describe different features of a case. You will calculate leverage, compare case-deletion measures, and investigate why a case stands out. The goal is a defensible decision supported by original records and sensitivity analysis, including a clear account when a conclusion depends on a single observation.
4.1 Separate outliers, leverage, and influence
Unusual cases raise three different questions: Is the outcome surprising given the predictors? Are the predictor values unusual? Does this case materially change the fitted model? These are outlyingness, leverage, and influence.
Identify which feature is unusual
An outcome outlier has a large residual relative to its expected variability. An extreme outcome is not an outlier when its predictors explain it. A very long task time may be expected for a difficult task.
Leverage concerns predictor values only. It measures a case’s position relative to the predictor cloud, including combinations of predictors. A high-leverage case can fit the relationship closely. Influence describes the change in coefficients or fitted values when the case is removed.
Calculate a hat value
In simple regression with an intercept, . In the 10-learner example, and the sum of squared deviations is 236.4. The case at 20 hours has .
With an intercept, hat values sum to and average . Common guides flag values above twice that average, with three times the average a stronger signal. For 120 cases and four predictors, the average is about 0.042, so the two guides are 0.083 and 0.125. These values invite inspection, not exclusion.
Compare the three roles
The first nine study-hours cases closely follow a slope of 3.52. Adding the learner at 20 hours with score 82 pulls the slope down to 1.83: the predictor is far out and the outcome disagrees with the original trend.
A learner at 16 hours with score 99 is also high-leverage but follows the trend. The slope stays near 3.49 and becomes more precise. By contrast, changing a score at the predictor mean from 65 to 80 leaves the slope unchanged but inflates residual noise and its standard error. A low-leverage outlier can therefore harm precision without strongly changing a slope.
Check what the software saved
Mahalanobis distance measures unusual predictor combinations while allowing for predictor correlations. With an intercept, . SPSS saves centered leverage, , so add before comparing it with a cutoff defined for hat values.
Externally studentized residuals support a normal-model outlier test with degrees of freedom. Screening all cases needs a multiple-testing adjustment, such as multiplying each p value by the number screened, capped at 1. Several unusual cases can mask each other: deleting one still leaves another pulling the fit. Inspect the actual data and joint patterns as well as one-case statistics.
Key Takeaways
- Outlyingness concerns the conditional outcome.
- Leverage concerns the predictors.
- Influence concerns how the fit changes on deletion.
- Hat values average (k + 1)/n with an intercept.
- High leverage can improve precision when the case follows the pattern.
- Check centered versus uncentered leverage.
4.2 Measure what changes when a case is removed
Influence measures turn a deletion comparison into a number. Different measures answer different questions: the whole fitted model, one coefficient, or the prediction at the deleted case.
Combine residual size and leverage
Cook’s distance summarizes the change in all fitted values. Using the internally studentized residual , . Count the intercept in . Squaring the residual removes its sign; influence can arise from either direction.
With four coefficients, residual 2.5, and leverage 0.30, the first factor is and the leverage factor is . Their product is about 0.67. Keeping the residual but lowering leverage to 0.05 gives about 0.08. Keeping high leverage but shrinking the residual can also make Cook’s distance small.
Inspect the distribution of influence
In the learner example, learner 10 has standardized residual −2.79 and leverage 0.772, giving Cook’s distance about 13.2. Learner 9 has the largest raw residual but Cook’s distance about 0.19. The raw gap misses how strongly learner 10 can move the line.
A common guide treats Cook’s distance above 1 as substantial. The more sensitive guide 4/n flags more cases, especially in large samples; some sources use 4 divided by residual degrees of freedom. Plot Cook’s distance by case index and look for observations standing apart from the rest. Crossing a guide does not establish that the data are wrong.
Focus on a coefficient
DFBETA is the full-model coefficient minus the coefficient after deletion. DFBETAS scales that difference with the coefficient’s standard error using the deleted-fit noise estimate: . This is useful when one slope carries the research question.
A negative value means that the full-model coefficient is smaller than the deletion coefficient under this convention. Common guides are an absolute value above in large samples or above 1 in small samples. Using the original standard error alone misses the deleted-noise adjustment.
Focus on a fitted value
DFFITS measures the change in the case’s own fitted value in standard-error units. A common guide is . Cook’s distance summarizes all fitted values, DFBETAS isolates a coefficient, and DFFITS isolates a case’s fitted value.
An influence plot places studentized residuals vertically against leverage horizontally; point size or contours show Cook’s distance. Far-right points with large positive or negative residuals deserve attention. R provides cooks.distance(model), dfbetas(model), dffits(model), and hatvalues(model). SPSS Save options provide corresponding case variables; jamovi offers Cook’s distance under Assumption Checks.
For a coefficient-specific example, learner 10 changes the study-hours slope from about 1.83 in the full fit to 3.52 after deletion. Using the unrounded coefficient difference, full-fit standard error, and deleted-noise adjustment gives DFBETAS near −28. The negative sign records a smaller coefficient in the full fit; its large magnitude also reflects how much the residual noise falls when that case is removed.
Key Takeaways
- Cook’s distance combines scaled residual size and leverage.
- Use k + 1 to include the intercept.
- DFBETAS addresses one coefficient.
- DFFITS addresses the deleted case’s fitted value.
- Compare cases and investigate flags before deciding.
4.3 Make a defensible decision about unusual cases
A diagnostic flag starts an investigation. A sound decision explains why a case is unusual and whether the research conclusion depends on it. The same sequence applies whether the case strengthens or weakens an effect.
Verify the observation
Return to the original record. A value such as age 250 may be a transcription error for 25; a code such as 999 may mean missing. Correct a confirmed error from its record. If a measurement is invalid and cannot be recovered, mark it missing under the data-handling rule. Do not replace a value with one that merely fits better.
Next check population membership. If a study explicitly concerns adults aged 18–65, a 92-year-old falls outside that target. Exclusion follows the eligibility rule, not the influence statistic. Decide these rules before looking at the effect where possible.
Test the sensitivity
For a valid observation in the target population, keep it by default and fit the model both with and without it. Compare coefficient size, direction, uncertainty, and the substantive conclusion. A small movement across a p-value threshold can occur with little practical change, while a large slope change can matter even if both versions remain significant.
If the results agree, report that stability. If they differ, report both and identify the conclusion that depends on the case. Removing a high-leverage case also narrows the predictor range, which can change the population of situations to which the model usefully applies.
Ask whether the model explains the case
A surprising observation may expose a missing curve, a scale problem, or an omitted predictor. Revisit model form before calling the case an error. A point far from a straight line may fit a justified curved relationship.
Robust regression, such as Huber M-estimation, lowers the weights of large residuals and can reduce the pull of genuine outcome outliers. It changes the fitting procedure. Huber weights can still miss high-leverage observations that pull the line close enough to make their residuals small. Continue checking leverage and sensitivity.
Write the decision transparently
For example: “One age value was corrected from 250 to 25 after checking the record. A second flagged case was valid. Excluding it changed the slope from 0.42 to 0.39 without changing the conclusion, so it was retained.” This gives the reason, action, and effect of the action.
Deleting observations because they lower R squared or weaken a desired effect selects the answer after seeing the data. That distorts inference. A preregistered rule helps separate a data-quality decision from a result-driven choice, but diagnostic judgment and a report of sensitivity are still needed.
Key Takeaways
- Verify errors against original records.
- Apply population rules consistently.
- Retain valid cases by default and compare fits.
- Report conclusions that depend on a case.
5Choose and apply remedies
A useful remedy addresses the pattern that prompted it and keeps the research question interpretable. You will choose transformations, read coefficients on a changed scale, and use robust uncertainty estimates for unequal variance. A complete worked workflow then brings design, plots, collinearity, influence, refitting, and reporting together so the final conclusions have visible support.
5.1 Transform and reinterpret the model
A transformation changes the scale on which a model describes the relationship. Choose it for the pattern in the data and a useful interpretation. Then read the new coefficients on that scale.
Choose the scale
A log outcome suits positive, right-skewed amounts or durations with spread increasing alongside their mean. It compresses large values and describes multiplicative differences. All logged values must be positive. A square root often helps counts whose variance grows with the mean. A reciprocal can have a direct meaning: one divided by time per task is tasks per unit time.
The power ladder moves from no change through square root and log to reciprocal. Box–Cox estimates a power for a positive outcome to improve residual shape and spread. An interpretable nearby power, such as log or square root, is often easier to explain. Adding a constant to permit logs of zero changes the analysis with an arbitrary choice and needs explicit justification.
Interpret a logged outcome
In a model for , increasing a predictor by one unit multiplies the fitted outcome on the back-transformed scale by . The exact percentage change is . A coefficient of 0.08 gives about 8.3% higher values per unit. A coefficient of −0.15 gives about 13.9% lower values. The shortcut percent works only for small coefficients.
Exponentiating a fitted log value estimates the conditional median when log errors are symmetric. It does not directly give the conditional mean of a right-skewed outcome. The upper tail lifts that mean, so a mean prediction requires a suitable retransformation adjustment.
Interpret a logged predictor
In , a proportional change in produces an additive change in the outcome. Increasing by 10% changes the prediction by ; doubling it changes the prediction by . For a coefficient of 12, these are about 1.14 and 8.32 outcome units. If both variables are logged, the slope is an elasticity: approximately the percentage outcome change for a 1% predictor change.
Use a polynomial when it fits the question
An added square models a changing slope without changing the outcome scale. Center the predictor first. For , the turning point is . Add the original predictor mean to return from centered units. A turning point outside the observed range is extrapolation and should not be presented as an observed optimum.
After a transformation or added term, check mean form, spread, Q-Q pattern, VIFs, and influence again. A remedy can improve one feature and worsen another. R squared values for an outcome and its log describe variation on different scales, so their sizes cannot select the better model directly.
For a centered quadratic example, suppose the predictor mean is 30, the linear coefficient is 6, and the quadratic coefficient is −0.3. The centered turning point is −6/[2(−0.3)] = 10. On the original scale it is 40. The negative squared coefficient gives a maximum. If observed predictor values run only from 15 to 35, the model supplies no observed-range maximum: the predicted turn is beyond the data.
Key Takeaways
- Logs require positive values.
- A log-outcome slope gives 100(exp(b) − 1)% per unit.
- A logged predictor models proportional input changes.
- Exponentiating a fitted log value does not directly give a mean.
- Check turning points on the original scale and within the data range.
- Repeat all diagnostics after changing the model.
5.2 Use robust uncertainty estimates
When the mean model is suitable but residual spread changes, you can revise coefficient uncertainty without changing the least-squares fit. Heteroscedasticity-consistent standard errors do exactly this for independent cases.
Know what changes
Robust, sandwich, White, and Huber–White standard errors refer to heteroscedasticity-consistent covariance estimation in this setting. Contributions from individual squared residuals replace a single pooled error variance. Coefficients and fitted values stay identical. Standard errors, t statistics, p values, and confidence intervals can change.
Robust standard errors can be larger or smaller. The location of large residuals relative to the predictor values matters, not just how variable the residuals are overall. A large discrepancy from usual standard errors is a reason to revisit mean form and influence.
Choose an HC adjustment
HC0 uses squared residuals directly. HC1 multiplies them by . HC2 divides each by . HC3 divides each by , providing a stronger leverage adjustment. HC4 adapts more strongly for very high leverage. These adjustments affect the covariance calculation, not the fitted coefficients.
HC0 tends to underestimate uncertainty in small samples. Long and Ervin’s simulations recommended HC3, including for samples up to about 250; it performed well in examples as small as about 25. HC3 is the default of R’s sandwich::vcovHC().
Recalculate the table
For a slope 0.42 with usual standard error 0.10, . With HC3 standard error 0.16, . Using a critical value 1.98, the robust 95% interval is , or approximately [0.10, 0.74]. The original interval was about [0.22, 0.62]. The effect estimate is identical, but its precision is lower.
In R, use lmtest::coeftest(model, vcov = sandwich::vcovHC(model, type = "HC3")). SPSS UNIANOVA offers HC0–HC4 through its ROBUST option. Test several coefficients together using a robust Wald test with the robust covariance matrix.
Match the remaining problem
HC standard errors do not straighten a curved mean, remove influential observations, or account for correlated cases. Cluster-robust covariance estimation or a multilevel model addresses grouping. Robust regression is a different procedure: it changes the fit by weighting observations according to their residuals.
If the error variances are known or modeled well, weighted least squares weights observations by inverse variance and can estimate coefficients more precisely. With variances 4 and 16, the first case receives four times the weight of the second. Report the chosen variance method and the diagnostic reason, for example: “Residual spread increased with fitted values, so coefficient inference uses HC3 standard errors.”
Key Takeaways
- HC estimation changes uncertainty, not coefficients.
- HC3 makes a leverage adjustment to squared residuals.
- Robust standard errors may rise or fall.
- Use robust covariance for joint tests too.
- HC errors do not repair a curve or dependent observations.
5.3 Check, revise, and report
Diagnostics work as a connected investigation. A problem in the mean form can create apparent problems elsewhere, so the sequence matters. Keep a record of the evidence and each decision as you revise the model.
Follow a useful order
Start with the design: identify independent units, groups, and repeated observations. Fit the proposed mean model. Inspect residuals against fitted values and each predictor, using component-plus-residual plots where useful. Look at spread, then the Q-Q plot. Check VIFs and unusual cases with residuals, leverage, and influence.
Correct the mean form first. A missing curve can create an apparent funnel, skewed residuals, and apparent outliers. After choosing a remedy, refit and repeat the checks. The final diagnostic evidence must describe the final model, not only the first attempt.
Work through a complete case
Task time in seconds is predicted from age, vocabulary score, and years of education for 180 adults. Residual spread increases with fitted time, and the Q-Q plot suggests right skew. Time is positive, so a log outcome is a reasonable candidate. After refitting, the residual band is even and the Q-Q points follow the line.
VIFs range from 1.2 to 2.8. The largest Cook’s distance is 0.31: below 1 but above the more sensitive 4/n guide, about 0.022. This case still merits inspection. Its data are valid and deleting it changes no coefficient by more than 5%, so it is retained. Neither cutoff alone supplies that decision.
Find the checks in software
For an R lm fit, plot(model) shows residuals versus fitted, normal Q-Q, scale-location, and residuals versus leverage with Cook’s contours. Add predictor-specific plots and VIFs as needed. SPSS Linear Regression offers ZRESID against ZPRED and a normal probability plot through Plots, and case diagnostics through Save. Jamovi groups Q-Q, residual plots, collinearity statistics, and Cook’s distance under Assumption Checks.
Read the residual and leverage definitions in the output: similarly named columns may use different scaling. No software panel determines whether the sampling design made cases independent.
Write evidence and decisions
A useful report names the check, its finding, the remedy, and sensitivity. For example: “Residual plots showed increasing spread, so time was log-transformed. Final residual plots showed no clear curve or changing spread, and the Q-Q plot was approximately linear. VIFs ranged from 1.2 to 2.8. One valid case with Cook’s distance 0.31 was retained because its removal did not change the conclusions.”
Use italic statistical symbols such as p, t, and F. Report exact p values to two or three decimals, using p < .001 for smaller values. Omit a leading zero for p values and correlations, which cannot exceed 1; retain it for Cook’s distance and other statistics that can, such as 0.31.
Sample size changes how evidence is read. Small samples give noisy plots and fragile case-deletion results. Large samples reduce sensitivity of coefficient tests to moderate non-normality, but do not make the usual covariance formula consistent under heteroscedasticity. Choose a remedy for the diagnostic problem and report the models that informed the final choice.
When documenting software output, keep the point estimate beside the uncertainty method. A robust coefficient table may look like the usual table but reflect a different covariance estimate. State HC3 explicitly when it was used. For a transformed outcome, name the transformation before interpreting a slope or prediction, so the reader knows whether the result describes seconds, percentages, or a back-transformed median.
Key Takeaways
- Check design before interpreting fitted-model diagnostics.
- Repair mean form before treating other symptoms.
- Recheck the final model after any remedy.
- Report findings, decisions, and sensitivity.
- Large samples do not repair unequal-variance standard errors.
Regression Assumptions and Diagnostics examples
1Connect assumptions to residual evidence
10 steps
- 1IntroductionStart with the result you need
A regression has two jobs: describe the mean relationship and express how uncertain its estimates are. A model can do one job well and the other poorly. You will connect LINE to these jobs, then calculate residuals that reveal cases hidden by a raw prediction gap.
- 2ExplanationRead LINE as four questions
Does the mean follow the chosen model terms? Are different cases’ errors independent? Are errors approximately normal? Does their variance stay constant? These are linearity, independence, normality, and equal variance. They concern the errors around the conditional mean; a skewed predictor alone answers none of them.
- 3ExampleA curved graph can belong to linear regression
The model
includes a curve through its squared predictor. Each coefficient still multiplies a known term, so it is linear in its coefficients. This lets you repair a curved mean without leaving the linear-regression framework. The coefficient alone is no longer one constant slope across the predictor range.
- 4ChallengeChoose which part needs repair
A model’s residual center bends across fitted values, while the residual band has even width. An analyst proposes changing only the standard errors. Is that enough?
---reveal---
No. The systematic center pattern shows a mean-form problem. Changing standard errors leaves coefficients and predictions unchanged. Investigate a suitable curved term or transformation, then refit.
- 5ExampleGive the raw residual its sign
A model predicts a task time of 32 seconds and the person takes 36 seconds. Calculate observed minus fitted:
seconds. The positive sign says the model underpredicts. If the observed time had been 28 seconds, the residual would be −4 seconds and the model would overpredict. A residual uses the fitted mean, while the true population error is unknown.
- 6ExplanationAdjust for the case’s pull
A high-leverage case partly pulls its own prediction toward its outcome. Its raw residual therefore has less variance. Internal studentization uses . For residual 6, noise estimate 5, and leverage 0.36, the denominator is . The scaled residual is 1.5, not the 1.2 obtained by dividing only by 5.
- 7Key InsightLet a case reveal its own noise inflation
An unusual case may inflate the model’s residual standard error and make itself look less exceptional. An externally studentized residual uses the noise estimate after the case is removed. In the study-hours example, deleting one discrepant learner drops that estimate from 5.40 to 0.92, exposing a much larger standardized discrepancy.
- 8ChallengeCompare a gap with its scale
Two cases have residual 4 and full-model noise estimate 4. Case A has leverage 0.75 and case B has leverage 0.36. What are their internally studentized residuals?
---reveal---
A is 4/[4√0.25] = 2. B is 4/[4√0.64] = 1.25. The raw gaps match, but A’s gap is larger relative to its residual variability. Scaling accounts for the stronger pull of A on its fitted value.
- 9ChallengeUse the right normality evidence
A skewed outcome has residuals close to a normal Q-Q line after a curved mean is fitted. The largest raw residual is not the largest studentized residual. Which evidence addresses normality, and which residual helps compare unusual cases?
---reveal---
The residual Q-Q plot addresses normality around the fitted mean. A leverage-adjusted studentized residual puts case discrepancies on a more comparable scale than the raw gaps.
- 10RecapKeep the target of each check clear
Mean form governs the predictions; the variance and dependence assumptions govern usual uncertainty estimates. Residuals are observed minus fitted. Internal scaling accounts for leverage, and deleted scaling also removes the case from the noise estimate. Read a residual column’s definition before applying a screening guide.
2Read four kinds of diagnostic evidence
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate the questions in the plots
- 2ExampleFollow a U across the fitted range
- 3ConnectionLocate the curve in multiple regression
- 4ChallengeChoose a plot for the suspected effect
- 5ExplanationRead width after center
- 6ExampleCalculate a variance-test statistic
- 7ChallengeProtect the right result
- 8ExplanationRead the Q-Q axes
- 9TipDo not turn one test into a verdict
- 10ChallengeInterpret two outward tails
- 11ExplanationAsk who shares conditions
- 12ExampleInterpret ordered residual differences
- 13ChallengeDecide what a shuffled order can show
- 14ChallengeChoose the first revision
- 15RecapUse each check for its own evidence
3Understand and respond to predictor overlap
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate a useful prediction from separate effects
- 2ExplanationFind what remains of a predictor
- 3ExampleCalculate two different multipliers
- 4TipCheck more than pairs
- 5ChallengeRead an auxiliary fit
- 6ExampleRe-express a complete quadratic
- 7ConnectionChoose data or a combined measure
- 8ChallengeRespond to a prediction goal
- 9ExampleTest a combined contribution
- 10ChallengePreserve meaning when reducing overlap
- 11RecapMake the remedy answer the question
4Investigate a case that stands out
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk three different case questions
- 2ExplanationLocate the unusual feature
- 3ExampleCompare leverage with its average
- 4Key InsightGood leverage can strengthen a fit
- 5ChallengeTranslate centered leverage
- 6ExplanationCombine discrepancy with leverage
- 7ExampleWork Cook’s distance in stages
- 8ConnectionChoose the statistic for the target
- 9ChallengeRank cases using both ingredients
- 10ExplanationVerify before choosing
- 11TipKeep two robust methods distinct
- 12ChallengeReport an unstable conclusion
- 13ChallengeGo beyond a single deletion
- 14RecapTurn flags into an explained decision
5Choose a remedy and recheck the result
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionChoose the change for the pattern
- 2ExplanationChoose an interpretable scale
- 3ExampleRead a log-outcome coefficient
- 4ConnectionKeep the prediction target clear
- 5ChallengeReturn a turning point to its age scale
- 6ExplanationRevise uncertainty without changing the slope
- 7Key InsightUnderstand the leverage adjustment
- 8ExampleRecalculate a robust interval
- 9ChallengeDecide whether HC3 addresses the design
- 10ExampleFollow a revision through every check
- 11ExampleResolve the case and write the evidence
- 12ChallengeChoose the first step in a mixed pattern
- 13RecapReport the final model’s evidence
Regression Assumptions and Diagnostics practice questions
Set 1: Read the diagnostic evidence10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Calculate and choose a response10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Evaluate a revised analysis10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Added-variable plot
APA statistical reporting
Attenuation
Auxiliary regression
B
Back-transformation
Bootstrap confidence interval
Box–Cox transformation
Breusch–Pagan test
C
Centering
Clustering
Component-plus-residual plot
Condition index
Conditional mean
Cook’s distance
D
Design effect
DFBETAS
DFFITS
Diagnostic report
Diagnostic workflow
Durbin–Watson statistic
E
Elasticity
Error
Externally studentized residual
H
Hat value
HC3
Heavy tails
Heteroscedasticity
Homoscedasticity
I
Influence
Internally studentized residual
Intraclass correlation
J
Joint test
L
Leverage
Loess curve
Log transformation
M
Mahalanobis distance
Masking
Multicollinearity
N
Normal Q-Q plot
O
Omitted-variable bias
Outcome outlier
P
P-P plot
Perfect multicollinearity
Preregistration
R
Refitting
Residual
Residual standard error
Residuals-versus-fitted plot
Ridge regression
Robust regression
Robust standard error
Robust Wald test
S
Scale-location plot
Sensitivity analysis
Shapiro–Wilk test
Structural collinearity
T
Tolerance
Turning point
V
Variance inflation factor
W
Weighted least squares
White test
- 1Multiple Regression
- 2Regression Assumptions and Diagnostics
- 3Moderation and Mediation
- 4One-Way ANOVA
- 5Factorial ANOVA
- 6Repeated-Measures ANOVA
- 7Nonparametric Tests
- 8Effect Size, Power and Sample Size
- 9Logistic Regression
- 10Multilevel Models
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.