Tutorials › Regression Analysis (Undergraduate) › Residual Histograms and Their Limitations

Residual and Assumption Diagnostics · Tutorial 503 of 991

Residual Histograms and Their Limitations

Use residual histograms to describe distributional shape carefully, and recognize why binning and limited data make them imperfect diagnostic tools.

Intermediate 9 min read

What You'll Learn

  • Define a regression residual and identify the units shown in its histogram
  • Read histogram shape as evidence about approximate symmetry and unusual features
  • Compare alternative bin widths and understand what binning conceals
  • Explain how small samples make histogram shapes unstable
  • Distinguish a useful visual diagnostic from proof of a distributional assumption

Why Look at a Residual Histogram?

A residual histogram gives a compact view of how the observed residuals are distributed. It can help you notice whether residuals are roughly balanced on either side of zero, or whether the sample contains features such as a long tail, a gap, more than one cluster, or an isolated value. These are useful clues when checking a fitted regression model.

A histogram is not a complete diagnostic. It combines residuals across observations, so it does not show whether a feature is associated with fitted values, a predictor, or observation order. The residual plots studied earlier address such patterns directly. A histogram is also sensitive to the choice of bins and the number of observations. Its shape should therefore be described as evidence in the observed residuals, not treated as a verdict about the model.

Definition: For observation \(i\), the regression residual is \(e_i=y_i-\hat{y}_i\), where \(y_i\) is the observed response and \(\hat{y}_i\) is the fitted response. A residual histogram groups the \(e_i\) values into intervals, called bins, and displays the count or proportion in each interval. Residuals have the same units as the response.

The horizontal axis is marked in residual units, with zero as a useful reference: a negative residual means the observed response is below its fitted value, and a positive residual means it is above. The vertical axis shows how many residuals, or what fraction of them, fall in each bin. In a histogram, bars for adjacent bins touch because the bins represent adjacent intervals on a numerical scale.

When describing a residual histogram, focus first on the overall balance and broad shape. Is there roughly comparable spread on both sides of zero? Does one side extend farther than the other? Are there apparent gaps or clusters? Then note how many observations the plot summarizes and what bin widths were used. Do not infer a precise distributional shape from a small, coarsely binned display.

Reading Symmetry and Unusual Shape

A distribution is symmetric when its shape on one side of its center roughly mirrors its shape on the other side. In a residual histogram, approximate symmetry means that the left and right sides have broadly similar spread and shape around a central location, usually near zero. The bars need not match exactly: samples vary, and the chosen bin edges affect the counts.

A right-skewed shape has a longer or thinner tail toward larger positive residuals; a left-skewed shape extends farther toward negative residuals. A pronounced gap may suggest separated groups of residual values, while two concentrations of bars may suggest multiple clusters. A single isolated bar or residual far from the rest can indicate an unusual observation worth checking. None of these appearances, by itself, identifies a cause. The observation, data recording, and model context need to be considered.

Symmetry is not the same as a bell-shaped distribution. A histogram can be roughly symmetric but flat, sharply peaked, or separated into clusters. Conversely, a histogram that looks broadly bell-shaped at one bin width may look less so at another. A normal quantile plot provides a different view of the ordered residuals; the histogram is particularly useful for a quick sense of overall balance and conspicuous features.

Worked Example: A Roughly Symmetric but Flat Histogram

Suppose a hypothetical regression predicts a laboratory measurement in milligrams per deciliter. The 20 residuals, in those same units, are the pairs \(\pm0.05,\pm0.15,\pm0.25,\pm0.35,\pm0.45,\pm0.55,\pm0.65,\pm0.75,\pm0.85,\pm0.95\). Construct a histogram using bins \([-1,-0.5)\), \([-0.5,0)\), \([0,0.5)\), and \([0.5,1]\), and describe its shape.

Each bin has width \(0.5\) milligrams per deciliter. The first bin contains \(-0.55,-0.65,-0.75,-0.85,-0.95\), for a count of 5. The second contains \(-0.05,-0.15,-0.25,-0.35,-0.45\), also a count of 5. The third contains \(0.05,0.15,0.25,0.35,0.45\), and the fourth contains \(0.55,0.65,0.75,0.85,0.95\). Each of those bins also has a count of 5.

The bars are balanced across zero, so this histogram is symmetric for these bins. Its four equal-height bars do not form a bell shape: the sample looks flat across the displayed range. The correct conclusion is that these residuals appear symmetric in this particular histogram, not that symmetry guarantees a bell-shaped distribution or any broader model condition.

Bin Choices Change What Is Visible

A histogram does not display every residual value separately. Instead, it records how many values fall into each bin. A narrow bin can reveal local structure, but may leave many bins empty or make random variation look striking. A wide bin smooths over local details, but may merge distinct concentrations or hide gaps. The same data can therefore produce histograms that emphasize different features.

The underlying reason is simple. If there are \(n\) residuals and \(n_j\) of them fall in bin \(j\), that bin's relative frequency is \(n_j/n\). Every residual within the same bin contributes the same count, regardless of where it falls inside the interval. Moving a value within its bin leaves the histogram unchanged; moving it across a bin boundary changes the counts. This many-to-one summary necessarily discards information about exact locations.

$$ \text{relative frequency in bin } j=\frac{n_j}{n} $$

This also clarifies why sample size matters. If one residual moves between bins, the relative frequency in each affected bin changes by \(1/n\). With \(n=10\), that is \(0.10\), or 10 percentage points; with \(n=200\), it is \(0.005\), or 0.5 percentage points. Small samples can produce visibly uneven bars from only a few observations, and they offer limited information about the broader shape. Larger samples give more detail, but a histogram still depends on its binning and still aggregates the data.

Worked Example: A Gap Hidden by Coarse Bins

A hypothetical fitted regression produces 10 residuals, in response units: \(\pm1.55,\pm1.75,\pm1.95,\pm2.15,\pm2.35\). Compare a coarse histogram with bins \([-2.5,0)\) and \([0,2.5]\) to a finer one with bins \([-2.5,-1.5)\), \([-1.5,-0.5)\), \([-0.5,0.5)\), \([0.5,1.5)\), and \([1.5,2.5]\).

For the coarse histogram, all five negative values are in \([-2.5,0)\), giving a count of 5. All five positive values are in \([0,2.5]\), also giving a count of 5. This display shows equal counts on the two sides of zero, but it does not show where within each wide bin those values lie.

For the finer histogram, the first bin contains all five negative residuals, so its count is 5. The next three bins contain no residuals, giving counts of 0, 0, and 0. The last bin contains all five positive residuals, giving a count of 5. In this display the empty center is clear: the sample consists of two separated groups rather than values spread continuously through the range.

The finer bins expose a feature the coarse bins conceal, but the conclusion remains limited by the sample of only 10 residuals. The plot describes these observed values; it cannot establish that future residuals will form two groups. This example shows why it is sensible to inspect whether a substantive impression persists under reasonable bin choices, rather than relying on one histogram alone.

Small Samples and Unusual Values

With few observations, each residual has substantial influence on the bars. One extreme value can create the appearance of a long tail, while several values falling on the same side of a bin boundary can make neighboring bars look unbalanced. A small histogram may be useful for noticing a potential feature, but it is often too coarse a basis for a confident claim about the overall distribution.

At the other extreme, a large sample can make small irregularities visible. Those irregularities should not automatically be treated as important departures: their practical relevance depends on the regression question and the size and pattern of the departure. The histogram remains descriptive. It does not, by itself, tell you whether a feature is consequential for a particular analysis.

Worked Example: A Long Positive Tail in a Small Sample

Consider 12 hypothetical residuals, in response units: \(-1.2,-1.0,-0.8,-0.6,-0.4,-0.2,0,0.2,0.4,0.6,0.8,2.2\). Use bins \([-1.5,-0.5)\), \([-0.5,0.5)\), \([0.5,1.5)\), and \([1.5,2.5)\), each of width 1 response unit.

The first bin contains \(-1.2,-1.0,-0.8,-0.6\), so its count is 4. The second contains \(-0.4,-0.2,0,0.2,0.4\), so its count is 5. The third contains \(0.6,0.8\), giving a count of 2. The final bin contains \(2.2\), giving a count of 1. The four counts sum to \(4+5+2+1=12\), as required.

The histogram has more observations near the center and a sparse extension on the positive side, including one residual at \(2.2\). That is evidence of a possible long positive tail or unusual positive residual in this sample, and it is reasonable to check that observation in context. But there are only 12 values, so one residual accounts for \(1/12\), or about \(8.33\%\), of the sample. The histogram alone cannot show whether the feature reflects a broader pattern or one unusual case.

A Practical Reading Sequence

A careful interpretation separates what the plot directly shows from what it might suggest. Use the following sequence to keep those statements distinct.

1
Check the axes and units.
Identify the residual scale and whether the vertical axis shows counts or proportions. Residuals use the response's units, and zero is the reference for over- versus under-prediction.
2
Describe the broad balance.
Say whether the observed shape looks roughly symmetric around its center or has a longer extension on one side. Use qualified language such as “appears roughly” rather than making a categorical claim.
3
Note unusual features and sample size.
Identify visible gaps, clusters, tails, or isolated values, and state how many residuals the histogram summarizes. These features are clues to investigate, not explanations by themselves.
4
Consider the binning and limits.
Ask whether a different reasonable bin width might change the impression. Remember that the histogram cannot show exact within-bin positions or whether residual shape varies with a predictor or observation order.

Common Mistake: Treating One Histogram as a Verdict

A common mistake is to see a roughly balanced histogram and conclude, “The residuals are normal,” or to see one uneven bar and conclude, “The model is invalid.” Both claims overreach. A histogram is an approximate visual summary of a finite set of residuals; bin width, bin boundaries, and sample size can all affect its appearance. A plot that looks symmetric supports only a cautious description of the observed shape at the displayed resolution. It neither proves a distributional assumption nor diagnoses every aspect of a regression model.

The correction is to state what is visible, qualify what it suggests, and avoid turning the display into a formal test. For example: “The residual histogram is broadly balanced around zero, with one possible positive-tail value; the sample is small, so the shape is uncertain.” That is more informative and defensible than declaring the residuals normal or declaring the fit unacceptable from the histogram alone.

Key takeaway: A residual histogram is a useful first look at approximate symmetry and conspicuous distributional features. Its bins hide within-interval detail, and small samples make the bars unstable. Describe the evidence cautiously and use other regression diagnostics for questions the histogram cannot answer.

Check Your Understanding

Use the definitions and limitations in this tutorial to answer the following.

  1. A residual histogram has a longer, thinner extension toward positive values. What shape does this suggest, and what should you avoid claiming from the histogram alone?
  2. For \(n=20\), how much does a bin's relative frequency change when one residual moves into or out of it?
  3. Why can two histograms of the same residuals give different impressions of clustering?
  4. A roughly symmetric histogram has a flat top rather than a central peak. Is it necessarily bell-shaped? Explain.
  5. Name one kind of residual pattern that a histogram cannot show because it does not retain predictor or observation-order information.