What a QQ Plot Shows After Mixed-Model Adjustment
A mixed-model association scan produces one test result for each genetic variant. A QQ plot puts those results in rank order and compares their observed p-values with the p-values expected if the tests followed their null distributions. The plot is useful because its shape shows whether departures are spread across much of the distribution or concentrated among the most extreme results.
In this setting, association p-values come from tests that account for relatedness and other modeled structure. A correctly specified mixed model can improve calibration, but the label “mixed-model adjusted” does not guarantee that every p-value is valid. The QQ plot is a diagnostic of the resulting distribution, not a proof that the model assumptions hold or a test that identifies the cause of any departure.
If all tests are null and their p-values are correctly calibrated and continuous, each p-value has a Uniform(0,1) distribution. This means that, before seeing the data, p-values are expected to be spread evenly across the interval from zero to one. For example, about one percent of valid null p-values are expected to be below 0.01. The statement concerns a repeated-sampling expectation; it does not require the observed proportion in one scan to equal exactly one percent.
The tests in a genomic scan are generally not independent: nearby variants can be correlated through linkage disequilibrium. Dependence changes how much the whole plot fluctuates from one data set to another. It does not, by itself, change the marginal uniform null distribution of each correctly calibrated p-value. Consequently, uncertainty bands based on independent tests can be too narrow for a genome-wide scan.
Why the Null Reference Has This Shape
The expected ranks under the null give a precise reference for the plot. Let \(p_{(i)}\) be the \(i\)th smallest of \(m\) independent Uniform(0,1) p-values. Its distribution is Beta with parameters \(i\) and \(m+1-i\), so its expected value is \(i/(m+1)\). This is why that quantity is often used as the expected p-value at rank \(i\).
A short justification follows from counting how many p-values fall below a proposed value \(u\). For \(p_{(i)}\) to be at most \(u\), at least \(i\) of the \(m\) p-values must be at most \(u\). Under independence, that count has a Binomial\((m,u)\) distribution. The resulting order-statistic density is proportional to \(u^{i-1}(1-u)^{m-i}\), the Beta\((i,m+1-i)\) density. Its mean is \(i/(m+1)\).
The variance describes the spread of the p-value at an individual rank under the independent null model. A plotted reference usually transforms the expected p-value, rather than calculating the exact expectation of the transformed value: in general, \(E[-\log_{10}(p_{(i)})]\) is not equal to \(-\log_{10}\{E[p_{(i)}]\}\). The distinction is usually unimportant for a basic visual diagnostic, but it matters if exact expected transformed values or formal bands are required. For genome-wide data, dependence must also be considered when constructing bands; a simple independent-test band may give a misleading impression of how unusual the overall curve is.
Worked Example: Calculating Expected and Observed Quantiles
Suppose a hypothetical scan contains \(m=100{,}000\) association tests. At rank \(i=1{,}000\), the observed p-value is \(0.0040\). Use the common plotting position to compare that result with the null reference.
The expected p-value at this rank is \(\frac{i}{m+1}=\frac{1{,}000}{100{,}001}\approx 0.01000\). Its expected plotted value is therefore \(-\log_{10}(0.01000)\approx 2.000\).
The observed plotted value is \(-\log_{10}(0.0040)\approx 2.398\). Because \(2.398>2.000\), this rank lies above the equality reference when expected values are on the horizontal axis and observed values on the vertical axis. The observed p-value is smaller than the expected p-value at this rank. One rank alone cannot show whether the departure is part of a broad shift or is concentrated in the tail; that requires examining the curve across ranks.
Reading Broad Shifts and Tail Enrichment
A broad upward departure occurs when much of the observed curve lies above the null reference. On the usual \(-\log_{10}(p)\) axes, this means observed p-values are smaller than their corresponding expected values across a wide range of ranks, not just at the very end. A broad departure is a reason to examine calibration and model fit. It is not, by itself, evidence for any one explanation: the plot does not determine whether the pattern reflects residual structure, widespread genuine association, an issue in the test implementation, or some combination.
A curve that follows the reference through most of its range and bends upward only among the smallest p-values has tail enrichment. This describes where the departure occurs; it does not establish that every extreme result is a true association. A few extreme points can also arise by chance, and technical or model problems can affect particular tests. The important visual distinction is between a shift through much of the distribution and a departure concentrated near its extreme end.
Interpretation is most reliable when the plot is read as a curve rather than reduced to one summary. The genomic inflation factor \(\lambda\), introduced in the earlier material on genomic inflation, compresses aspects of test-statistic inflation into a scalar. It does not show which ranks depart from expectation. A QQ plot retains that rank information, but does not provide a single calibrated measure of the cause or severity of a departure.
Worked Example: A Broad Departure Across Ranks
Consider a hypothetical scan of \(m=100{,}000\) tests. Suppose the observed p-values at ranks 1,000, 50,000, and 90,000 are respectively 0.0040, 0.3500, and 0.8200. Compare the observed and expected values at these ranks.
At rank 1,000, the expected p-value is \(1{,}000/100{,}001\approx0.01000\), giving an expected ordinate of \(2.000\). The observed ordinate is \(-\log_{10}(0.0040)\approx2.398\).
At rank 50,000, the expected p-value is \(50{,}000/100{,}001\approx0.5000\), with expected ordinate \(-\log_{10}(0.5000)\approx0.3010\). The observed ordinate is \(-\log_{10}(0.3500)\approx0.4559\).
At rank 90,000, the expected p-value is \(90{,}000/100{,}001\approx0.9000\), with expected ordinate \(-\log_{10}(0.9000)\approx0.04576\). The observed ordinate is \(-\log_{10}(0.8200)\approx0.08619\).
At all three ranks the observed ordinate is larger, so the curve departs above the reference across more than just the smallest p-values. This pattern is consistent with a broad departure. It is a diagnostic signal to investigate, not a conclusion about its cause. These selected ranks also do not replace viewing the full curve or assessing variability under the relevant dependence structure.
Worked Example: Departure Concentrated in the Extreme Tail
Now consider another hypothetical scan of \(m=100{,}000\) tests. Suppose the observed p-values at ranks 1, 10, 100, 1,000, and 50,000 are \(1.0\times10^{-10}\), \(2.0\times10^{-7}\), 0.00030, 0.0095, and 0.5000. Compare these with their null plotting positions.
The expected p-values at the first four ranks are approximately \(1.00\times10^{-5}\), \(1.00\times10^{-4}\), 0.001000, and 0.01000. Their expected ordinates are approximately 5.000, 4.000, 3.000, and 2.000. The observed ordinates are, respectively, 10.000, 6.699, 3.523, and 2.022.
At rank 50,000, the expected p-value is approximately 0.5000 and its expected ordinate is 0.3010. The observed ordinate is \(-\log_{10}(0.5000)=0.3010\), essentially on the reference.
The largest departures occur at the smallest p-values, while the median rank is on the reference and rank 1,000 is close to it. If the intervening ranks show the same pattern, this is tail enrichment rather than a broad shift. The plot alone does not certify the extreme results as associations; each result still requires appropriate statistical and scientific assessment.
Assumptions, Diagnostics, and Failure Modes
The null reference is meaningful only if the p-values being compared are calculated for the relevant null hypotheses and are calibrated under those hypotheses. For a mixed-model GWAS, this requires that the association test’s stated null distribution be appropriate and that the model used to account for relatedness and fixed covariates adequately represent the data for that test. For example, a one-degree-of-freedom test based on a chi-square reference requires the test statistic to follow that reference distribution under the null, at least to the accuracy needed for the analysis. Misestimated covariance structure, omitted covariates, problematic genotype data, or an incorrect test reference can all undermine calibration.
Useful checks include confirming that the p-values are finite, lie between zero and one, and correspond to the intended test; checking that the plotted number of tests matches the scan; and reviewing whether the axes and ranking convention are as expected. Inspect results by chromosome, allele frequency, imputation quality, or test type when those groupings are relevant. A discrepancy confined to one group may point to a localized data or analysis issue, whereas a curve shifted throughout the distribution warrants a broader calibration review. These checks identify where to investigate; they do not, on their own, diagnose a cause.
A QQ plot can also mislead when viewed without its scale or without attention to the number of tests. With very many tests, small differences from the reference can become visually apparent. At the other extreme, a sparse tail may contain few points, so its apparent shape can change substantially with individual results. Pointwise bands and global bands answer different questions: a pointwise band concerns a particular rank, while a global band concerns the curve as a whole. Under linkage disequilibrium, bands that assume independent tests may not correctly describe either type of uncertainty.
Identify the test statistic, its null distribution, the p-values included, and the plotting convention. Do not interpret a curve until its axes are clear.
Check whether the departure extends through much of the distribution or is concentrated among the smallest p-values.
Review mixed-model specification and data quality, then compare relevant subsets or test categories where appropriate.
Describe the location and shape of the departure. Treat its cause as unresolved unless other analyses provide evidence.
The main alternatives answer different questions. The inflation factor \(\lambda\) provides a compact scalar summary but can conceal whether departure is broad or tail-specific. A QQ plot shows the rank pattern but is mainly descriptive and depends on the validity of its reference. A histogram can show an overall excess of small p-values, but it discards rank-by-rank comparison with the expected quantiles. None of these displays replaces checking the model assumptions, examining the data, or interpreting individual associations with appropriate context.
Common Mistake
A common mistake is to say, “The QQ plot bends upward, so the mixed model failed,” or, conversely, “The model included relatedness, so the tail must be genuine association.” Both conclusions overstate what the display establishes. An upward departure means that observed p-values are smaller than their null reference at the affected ranks. A broad shift is a reason to investigate calibration and other explanations; tail enrichment describes a departure concentrated among extreme results. Neither shape alone distinguishes residual confounding from genuine signal, nor does it prove that the mixed-model assumptions are satisfied.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- In a scan of 20,000 tests, what is the common expected p-value at rank 200?
- On axes with expected \(-\log_{10}(p)\) horizontally and observed \(-\log_{10}(p)\) vertically, what does a point above the equality line indicate?
- A QQ curve follows the reference over most ranks and departs at the smallest p-values. How should this pattern be described, and what does it not prove?
- Why can linkage disequilibrium affect QQ-plot uncertainty bands without changing the marginal null distribution of each correctly calibrated p-value?
- What is one important difference between a QQ plot and the genomic inflation factor \(\lambda\)?
Solutions. (1) The expected p-value is \(200/(20{,}001)\approx0.01000\). (2) The observed p-value is smaller than its expected value at that rank. (3) It is tail enrichment; it does not prove that every extreme result is a true association or establish the cause of the departure. (4) Linkage disequilibrium correlates test results, changing the joint variation of the plotted curve, while each test’s marginal null p-value can still be Uniform(0,1). (5) A QQ plot shows how departure varies by rank, whereas \(\lambda\) is a scalar summary and does not retain that shape information.