Tutorials › ANOVA › Checking Normal Errors With Residual Q-Q Plots

Estimation and Model Assumptions · Tutorial 55 of 595

Checking Normal Errors With Residual Q-Q Plots

Use the shape of a residual Q-Q plot to assess whether the normal-errors assumption is plausible and how cautiously to interpret small-sample ANOVA inference.

Beginner 11 min read

What You'll Learn

  • Define one-way ANOVA residuals and explain why they are used to assess normal errors
  • Read a residual Q-Q plot by comparing ordered residuals with theoretical normal quantiles
  • Recognize patterns that can indicate skewness, heavy tails, or an isolated unusual residual
  • Distinguish a visible departure from proof that the normal-errors assumption is false
  • Explain why non-normal patterns matter more for small-sample inference
  • Identify limitations of a pooled residual Q-Q plot

Why Check the Shape of ANOVA Errors?

One-way ANOVA uses the variation within treatment groups to estimate uncertainty. Its usual small-sample inference relies on a model in which errors are normally distributed. A residual Q-Q plot gives a visual way to assess whether the observed deviations from the fitted group means look reasonably consistent with that assumption. It does not prove normality, and it does not replace checking how the data were collected.

The goal is to read the plot for broad patterns, not to demand that every point fall exactly on a line. With a small sample, random variation can make a normal sample look uneven. Conversely, an apparently straight plot based on very few observations may not reveal a real departure. The plot is therefore evidence to consider alongside the sample size and the context of the analysis.

The Model, Errors, and Residuals

For a one-way ANOVA with \(k\) treatment groups, write the observation in group \(i\) as \(Y_{ij}\), where \(j\) indexes the observations in that group. The usual normal-errors model is

$$ Y_{ij}=\mu_i+\varepsilon_{ij}, \qquad \varepsilon_{ij}\ \text{independent with}\ \varepsilon_{ij}\sim N(0,\sigma^2). $$

Here \(\mu_i\) is the mean response in group \(i\), and the errors have mean zero and a common variance \(\sigma^2\). The normal-errors assumption concerns the errors around their group means, not the combined distribution of all the raw observations. Raw observations can have different centers because the treatment means may differ.

The error \(\varepsilon_{ij}\) is not observed, because the population mean \(\mu_i\) is unknown. Instead, we estimate it using the residual, the observed value minus its group sample mean:

$$ e_{ij}=Y_{ij}-\bar{x}_i. $$

A residual is therefore an estimate of an error, not the error itself. A residual Q-Q plot sorts the residuals from smallest to largest and compares them with the corresponding theoretical quantiles of a normal distribution. If the residuals have a roughly normal shape, the plotted points should follow an approximately straight line. The slope and vertical position of the line can vary; the main diagnostic is whether the points show systematic curvature or extreme departures from the overall line.

Definition: A normal Q-Q plot places ordered sample values, here ANOVA residuals, against corresponding quantiles of a theoretical normal distribution. Approximate linearity is consistent with a normal shape; systematic departures from a line suggest a departure worth investigating.

Why a Normal Shape Appears as a Line

A short quantile argument explains the reference to a straight line. If a variable \(E\) has a normal distribution with mean zero and standard deviation \(\sigma\), its population quantile at probability \(p\) is \(\sigma\Phi^{-1}(p)\), where \(\Phi^{-1}(p)\) is the \(p\)th quantile of the standard normal distribution. Thus the quantile of \(E\) is a constant multiple of the corresponding standard-normal quantile:

$$ Q_E(p)=\sigma\Phi^{-1}(p). $$

For a sample, the ordered values approximate population quantiles, so normal data tend to produce points near a line through the plot. In practice, software uses a specified set of plotting positions to obtain the theoretical quantiles; different common choices change the precise coordinates slightly, not the main shape to look for.

There is an important qualification in ANOVA: residuals are estimated from the same observations being plotted. Within each group their sum is zero, so they are not independent, unrestricted draws from a normal distribution. The plot is a useful diagnostic of shape, not a formal proof that the unobserved errors are normal. This is one reason not to interpret small bends or ties as decisive evidence.

Reading Common Patterns

Start by checking the overall form of the points. A roughly straight band without a few extreme departures offers no obvious visual warning about normality. Then look for systematic patterns rather than judging isolated points in isolation.

Pattern in the Q-Q plotPossible interpretationWhat to keep in mind
Points follow an approximate straight lineThe residual shape is reasonably consistent with normality.This does not establish that the errors are normal, especially with a small sample.
One end bends away more than the otherPossible skewness: one tail may be longer or more extreme.Check whether the pattern reflects one unusual observation or a broader tail pattern.
Both ends depart outward from the linePossible heavier tails than a normal distribution.A few extreme observations can create this appearance; the sample size affects how clearly the pattern can be judged.
Both ends depart inward from the linePossible lighter tails than a normal distribution.Small-sample fluctuations can also create apparent curvature.

These descriptions are clues, not labels that can be assigned with certainty from every plot. In particular, a single point far from the others may indicate an unusual observation without demonstrating that the entire error distribution has heavy tails. A plot also does not tell us why a departure occurred. The original measurements and study context may be needed to assess whether a value is a recording error, a valid but unusual outcome, or evidence of a broader pattern.

Worked Example: Residuals That Look Approximately Normal

Suppose two hypothetical groups each contain four observations. Group A has values 17, 19, 21, and 23 response units; Group B has values 27, 29, 31, and 33 response units. Calculate the residuals and describe what a Q-Q plot of them would suggest.

The group means are \(\bar{x}_A=(17+19+21+23)/4=20\) response units and \(\bar{x}_B=(27+29+31+33)/4=30\) response units. Subtracting each group mean gives residuals \(-3,-1,1,3\) response units in each group. The pooled ordered residuals are therefore \(-3,-3,-1,-1,1,1,3,3\) response units.

For illustration, using plotting probabilities \(p_r=(r-0.5)/8\) for ranks \(r=1,\ldots,8\), the corresponding standard-normal quantiles are approximately \(-1.534,-0.887,-0.489,-0.157,0.157,0.489,0.887,1.534\). The residuals increase steadily as the theoretical quantiles increase, and the two sets have a broadly similar, symmetric pattern. The repeated residual values create ties, so the points would not fall exactly on a line.

There is no pronounced skew or tail departure in this small hypothetical example. That is a limited visual check, not proof of normal errors: eight residuals provide little information about the tails, and a different sample drawn from normal errors could look less orderly.

Worked Example: A Pattern Suggesting Right Skew

Consider two hypothetical groups with five observations each. Group A has values 9, 9.5, 9.5, 9.5, and 12.5 response units. Group B has values 19, 19.5, 19.5, 19.5, and 22.5 response units. Find the residuals and interpret the shape they would suggest.

For Group A, the mean is \((9+9.5+9.5+9.5+12.5)/5=50/5=10\) response units. Its residuals are \(-1,-0.5,-0.5,-0.5,2.5\) response units. For Group B, the mean is \(100/5=20\) response units, giving the same residuals. Each group’s residuals sum to zero: \(-1-0.5-0.5-0.5+2.5=0\), as they must when residuals are calculated from the group mean.

The pooled ordered residuals are \(-1,-1\), followed by six values of \(-0.5\), followed by \(2.5,2.5\) response units. The largest residuals are much farther above zero than the smallest residuals are below it. On a Q-Q plot this imbalance would suggest a more extended upper tail, consistent with right skew, rather than a symmetric normal shape.

This pattern would make us more cautious about small-sample normal-theory inference, but it does not establish that the errors are non-normal. There are only ten residuals, and the two groups repeat the same pattern. The plot should prompt examination of the measurements and a careful statement of the uncertainty, not an automatic declaration that ANOVA is invalid.

Worked Example: Departures in Both Tails

Two hypothetical groups each contain six observations. Group A has values 34, 39.5, 39.8, 40.2, 40.5, and 46 response units; Group B has values 54, 59.5, 59.8, 60.2, 60.5, and 66 response units. Examine the residual pattern.

The Group A mean is \(240/6=40\) response units, and the Group B mean is \(360/6=60\) response units. Each group therefore has residuals \(-6,-0.5,-0.2,0.2,0.5,6\) response units. For example, Group A’s residuals sum to \(-6-0.5-0.2+0.2+0.5+6=0\). The pooled ordered residuals are \(-6,-6,-0.5,-0.5,-0.2,-0.2,0.2,0.2,0.5,0.5,6,6\).

With twelve residuals, the plotting probabilities \((r-0.5)/12\) give theoretical standard-normal quantiles from about \(-1.732\) to \(1.732\). The two most extreme residuals in each direction are 6 response units from zero, while most residuals are within 0.5 response units. A Q-Q plot would show both ends pulling away from the central points, a pattern that can suggest heavier tails than a normal distribution.

A heavy-tail pattern matters because unusually large errors may make the usual normal-theory uncertainty assessment less dependable, particularly with small groups. Here the evidence is still visual and based on only twelve residuals. The plot cannot by itself distinguish a genuinely heavy-tailed error distribution from a small sample containing a few unusual but valid outcomes.

What a Departure Means for Small-Sample Inference

When the normal-errors model is appropriate, it supports the usual exact small-sample distributions used for one-way ANOVA inference. A strong departure in the residual Q-Q plot raises a question about how well those normal-theory calculations describe uncertainty for the data at hand. The concern is generally greater when the groups are small, because there is less information from which to judge the error shape and less averaging of individual errors.

A visible departure is not a verdict. Its practical importance depends on the strength and type of pattern, the number of observations, and whether the pattern is driven by one point or appears across the ordered residuals. A nearly linear plot does not guarantee that an analysis is sound, either: a Q-Q plot is about normal shape, not whether observations are independent or whether the model’s other assumptions hold. It should be read as one diagnostic, not as a complete validation of ANOVA.

A pooled residual plot can also conceal differences in shape between groups. If the pooled plot looks unusual, it may be useful to inspect the observations and residuals by group to see whether a pattern is concentrated in one group. Keep the question focused: this plot assesses normal shape; it is not a test of whether group variances are equal.

Common Mistake: Treating the Plot as a Pass-or-Fail Test

  • Wrong reasoning: “Some points do not lie exactly on the line, so the errors are not normal and the ANOVA cannot be used.”
  • Correction: Samples from a normal distribution do not produce perfectly linear Q-Q plots. Look for a systematic pattern, and weigh it against the sample size and context.
  • Wrong reasoning: “The points look fairly straight, so normality is proved.”
  • Correction: A small sample may not reveal departures, especially in the tails. Describe the plot as offering no strong visual warning, not as proving the assumption.
  • Wrong reasoning: “The raw observations from all groups should form one normal distribution.”
  • Correction: The model assumption concerns errors around each group mean. Use residuals, because raw observations can have different group centers.
  • Wrong reasoning: “A Q-Q plot checks every assumption needed for ANOVA.”
  • Correction: It helps assess normal shape only. It does not establish independence or assess equal variances.
Key takeaway: Read a residual Q-Q plot for broad shape: approximate linearity is consistent with normal errors, asymmetric curvature can suggest skewness, and outward departures at both ends can suggest heavy tails. Treat these as diagnostic clues, with particular caution when samples are small.

Check Your Understanding

Try these questions without looking back.

  1. In one-way ANOVA, what quantity is plotted in a residual Q-Q plot, and how is it calculated?
  2. Why does a normal distribution tend to produce an approximately straight Q-Q plot?
  3. A plot’s upper tail bends farther from the line than its lower tail. What pattern might this suggest, and why should the conclusion remain tentative?
  4. What kind of Q-Q plot pattern can suggest heavier-than-normal tails?
  5. Why does a strong apparent departure from normality generally warrant particular caution with small samples?
  6. Name one important ANOVA assumption that a residual Q-Q plot does not check.
Clinical Biostats