QQ Plot
Study guide: Exam MAS-I
A QQ Plot (quantile-quantile plot) is a plot of the ordered values of a sample against the corresponding quantiles of an assumed distribution, used to check whether the sample follows that distribution. For a sample of n residuals ordered from smallest to largest, e_{(1)} \le \cdots \le e_{(n)}, the ith point of a normal QQ plot is
\left(\Phi^{-1}(p_i),\ e_{(i)}\right)
\Phi^{-1}is the inverse of the standard normal cdf, so\Phi^{-1}(p_i)is the theoretical quantile on the horizontal axis.e_{(i)}is theith smallest residual, the sample quantile on the vertical axis.
The plotting position p_i of the ith smallest of n ordered values is
p_i = \frac{i}{n + 1}
Another convention, p_i = (i - 0.5)/n, gives slightly different coordinates. A straight reference line is drawn through the points. If the sample follows the assumed distribution, the points fall near the line. A QQ plot does not show how often each value occurs.
A regression has four residuals:
-1.2,0.4,-0.3and1.1. What are the points of their normal QQ plot?
- In order, the residuals are
-1.2,-0.3,0.4and1.1.- With
n = 4, the plotting positions arei/5: 0.2, 0.4, 0.6 and 0.8.- The standard normal quantiles of these are
-0.842,-0.253,0.253and0.842.- The points are
(-0.842, -1.2),(-0.253, -0.3),(0.253, 0.4)and(0.842, 1.1).
Reading a QQ plot
With the sample quantiles on the vertical axis, a departure from the line at each end shows how the sample's tails compare with the assumed distribution's:
| Pattern | Meaning |
|---|---|
| Points close to the line | The sample follows the assumed distribution |
| Low end below the line and high end above it (an S shape) | Both tails are heavier than assumed |
| Low end above the line and high end below it | Both tails are lighter than assumed |
| Only the high end above the line | The right tail is heavier than assumed, so the sample is more right-skewed |
| Only the low end below the line | The left tail is heavier than assumed, so the sample is more left-skewed |
A QQ plot of the residuals of a regression or a GLM checks the model's distributional assumption, alongside the residual plot that checks its mean and variance.
The normal QQ plot of a severity regression's residuals follows the reference line in the middle, but its highest points rise well above the line. What does this show?
- Only the high end departs from the line, and it lies above it.
- The largest residuals are larger than a normal distribution would produce, so the right tail is heavier than assumed.
- The normality assumption fails, and a right-skewed response distribution such as the Gamma should be considered.
Reading the tails from the wrong axis The patterns above hold with the sample quantiles on the vertical axis. When software puts the sample on the horizontal axis, every pattern reverses, so check the axes before reading the tails.