Tutorials › High-Dimensional Genomic Data Analysis › Q-Q Diagnostics for Empirical Null Models

Empirical Bayes and Local FDR · Tutorial 190 of 795

Q-Q Diagnostics for Empirical Null Models

You will learn to construct and interpret null Q-Q plots for empirical null models, separating shifts in center and scale from departures concentrated in the tails.

Advanced 12 min read

What You'll Learn

  • Construct a null Q-Q plot using ordered genomic test statistics and normal reference quantiles.
  • Interpret the intercept and slope of a Q-Q reference line as location and scale features.
  • Distinguish broad scale inflation from departures concentrated in one or both tails.
  • Recognize how genuine alternatives, dependence, and fitted null parameters affect the plot.
  • Compare Q-Q diagnostics with histograms and local FDR calibration plots.

What a Null Q-Q Plot Compares

Thousands of genomic tests can produce a distribution of test statistics that looks different from the nominal null distribution. A null quantile-quantile plot, or null Q-Q plot, makes the discrepancy visible by comparing ordered observed statistics with quantiles expected under a specified null model. Its shape can indicate whether the main discrepancy concerns the null center, the null scale, or departures concentrated in the tails.

For example, suppose the statistics are approximately standard normal under the theoretical null, but many central observations are slightly positive. A plot against the theoretical null can show a location shift. If both positive and negative statistics spread farther from zero, it can show scale inflation. If the center follows the reference but only the most extreme observations depart, the pattern is concentrated in the tails. These are diagnostic patterns, not proof of their cause: genuine non-null tests can also create tail departures.

Definition: Let \(z_1,\ldots,z_m\) be \(m\) observed genomic test statistics, ordered as \(z_{(1)}\leq\cdots\leq z_{(m)}\). Choose plotting positions \(p_i=(i-0.5)/m\), and let \(q_i=\Phi^{-1}(p_i)\), where \(\Phi\) is the standard normal cumulative distribution function. A normal null Q-Q plot places \(q_i\) on the horizontal axis and \(z_{(i)}\) on the vertical axis. For an empirical null \(N(\hat{\mu}_0,\hat{\sigma}_0^2)\), the corresponding reference quantile is \(\hat{\mu}_0+\hat{\sigma}_0q_i\). Here \(\hat{\mu}_0\) and \(\hat{\sigma}_0\) are the estimated null center and standard deviation.

The plotting positions are a convenient approximation to the quantiles of ordered observations from a continuous distribution. Other plotting-position conventions are also used; they can change the exact plotted coordinates slightly, especially in small samples, but do not change the main interpretation. The plot is descriptive: a line is a visual reference, not automatically a fitted statistical model or a formal test.

Reading Center, Scale, and Tail Patterns

For a normal null with center \(\mu_0\) and standard deviation \(\sigma_0\), its population quantile at probability \(p\) is \(\mu_0+\sigma_0\Phi^{-1}(p)\). Therefore, if the observed statistics follow that null, their Q-Q points should approximately track the line \(z=\mu_0+\sigma_0q\), subject to sampling variation. Against a standard normal reference, the target line is \(z=q\); against an empirical null, it is \(z=\hat{\mu}_0+\hat{\sigma}_0q\).

$$ Q_Z(p)=\mu_0+\sigma_0\Phi^{-1}(p) $$

This quantile relationship gives the basic diagnostic interpretation. A positive intercept indicates that the plotted statistics tend to lie above the reference near the center, consistent with a positive location shift; a negative intercept indicates the reverse. A slope greater than one indicates more spread than the reference, while a slope below one indicates less spread. These readings describe the overall pattern only when the points are reasonably linear. Curvature or localized departures mean a single intercept and slope may conceal important differences.

Tail patterns are read relative to the central trend or the chosen reference line. With \(q_i\) on the horizontal axis and \(z_{(i)}\) on the vertical axis, heavy tails typically place the lower-tail points below the line and the upper-tail points above it: observed values are more extreme than expected at both ends. Light tails typically reverse that pattern. A departure at only one end may indicate asymmetry or a one-sided excess. Tail deviations in genomic data may also arise because some tests correspond to genuine effects; a Q-Q plot alone cannot label those observations as null or non-null.

Diagnostic guide: A roughly parallel displacement of the central points suggests a location discrepancy. A roughly straight pattern with a different slope suggests a scale discrepancy. A central fit that tracks the reference while one or both ends bend away suggests a tail departure. Always describe which points depart and in what direction; do not infer a cause from shape alone.

Worked Examples

Worked Example: A Location Shift in the Central Quantiles

Suppose a hypothetical genomic analysis produces many test statistics. At three illustrative reference quantiles \(q=-1,0,1\), the ordered observed quantiles are \(-0.85, 0.15, 1.15\). These values are chosen to illustrate the diagnostic calculation, not to represent a real study. Compare them with a standard normal reference.

The line through the first and third points has slope \((1.15-(-0.85))/(1-(-1))=2.00/2=1\). Its intercept is the observed value at \(q=0\), which is \(0.15\). Thus, these points lie on \(z=0.15+q\), rather than the standard normal line \(z=q\). For example, at \(q=-1\), the reference is \(-1\), while the observed quantile is \(-0.85\), a difference of \(0.15\); at \(q=1\), the reference is \(1\), while the observed quantile is \(1.15\), again a difference of \(0.15\).

The pattern is consistent with a positive location shift of \(0.15\) test-statistic units, with no scale change in these illustrative points. It does not establish that the null distribution itself is shifted: an imbalance in the set of alternatives or other features of the analysis could also move the observed distribution.

Worked Example: Scale Inflation Across the Distribution

In a second hypothetical analysis, suppose the observed quantiles at \(q=-2,0,2\) are \(-2.8,0,2.8\). The points are symmetric around zero, so they show no location shift in this summary. The slope from the two outer points is \((2.8-(-2.8))/(2-(-2))=5.6/4=1.4\). The plotted points follow \(z=1.4q\).

Relative to the standard normal reference \(z=q\), the observed spread is 1.4 times as large. If a normal empirical null were an appropriate description of these statistics, its standard deviation would be about \(1.4\) rather than \(1\), and its variance would be \(1.4^2=1.96\) rather than \(1\). The units of the standard deviation are test-statistic units; the variance is in squared test-statistic units.

This pattern supports a scale discrepancy, but the plot alone does not identify its source. For example, dependence among tests can affect the distribution and variability of the plotted order statistics, and non-null effects can contribute to the observed spread. A fitted empirical-null scale should therefore be interpreted alongside the assumptions and estimation method used.

Worked Example: Tail Departure With a Well-Matched Center

Consider hypothetical ordered genomic test-statistic quantiles at \(q=-2,-1,0,1,2\) of \(-3.0,-1.05,0,0.95,3.0\). The points near the center are close to the standard normal reference: at \(q=-1\), the residual is \(-1.05-(-1)=-0.05\), and at \(q=1\), it is \(0.95-1=-0.05\). At the extremes, the residuals are \(-3.0-(-2)=-1.0\) and \(3.0-2=1.0\).

Thus, the center is close to the reference, but the lower extreme is more negative and the upper extreme more positive than expected. This is a two-sided tail departure, rather than a uniform location shift. It could reflect a heavier-tailed null, genuine alternatives in both directions, or a combination. The Q-Q pattern diagnoses where the discrepancy lies; it does not distinguish those explanations by itself.

Why the Interpretation Works—and What It Assumes

The line interpretation follows directly from the quantile function of a normal distribution. If \(Z\sim N(\mu_0,\sigma_0^2)\), then \((Z-\mu_0)/\sigma_0\sim N(0,1)\), for \(\sigma_0>0\). For a probability \(p\), the standardized variable has quantile \(\Phi^{-1}(p)\). Multiplying by \(\sigma_0\) and adding \(\mu_0\) gives the original-scale quantile:

$$ \frac{Q_Z(p)-\mu_0}{\sigma_0}=\Phi^{-1}(p) \quad\Longrightarrow\quad Q_Z(p)=\mu_0+\sigma_0\Phi^{-1}(p) $$

Using \(p_i\) as the plotting positions gives the reference values \(\mu_0+\sigma_0q_i\). If the sample is generated from that normal distribution, its ordered observations should fluctuate around those quantiles, rather than match them exactly. This justification assumes the normal model is a suitable null for the statistics being compared. In genomic applications, test statistics may only be approximately normal under the theoretical null, for example because a large-sample approximation is used.

A diagnostic plot also depends on what is plotted. Compare like with like: the statistics should have a common interpretation and scale, and the proposed null should apply to the set or subset under examination. If an empirical null is used, its estimated center and scale must be obtained by a defensible method. Earlier material on estimating the null center and scale covers those estimation approaches; here, the plot is used to inspect the resulting distributional fit. Estimating parameters and assessing fit on the same observations can make the apparent agreement look better than it would on independent data.

The points are not generally independent simply because there are many tests. Genomic statistics may be dependent, and ordered values are themselves constrained by their ranks. Therefore, visual scatter around a line should not be interpreted using an independent-normal sampling argument without justification. In particular, a Q-Q plot is not a formal test with a universal cutoff for declaring the null model wrong. Simulation-based envelopes can help quantify expected variation when the full design and dependence structure can be represented adequately, but an envelope also depends on the simulation assumptions.

Diagnostics, Comparisons, and Common Pitfalls

Inspect the central pattern and the tails separately. First check whether the bulk of the points is approximately linear and whether its center is displaced. Then assess whether the slope differs from the intended reference and whether deviations are concentrated at either end. Finally, compare the plot with how the null parameters were estimated and with the scientific setting: real signal is often most visible in the tails, so a tail departure need not imply that the central null model is unsuitable.

  • Check the axes and reference. Confirm whether the horizontal axis uses standard normal quantiles or empirical-null quantiles. A line with slope one is the target only when the reference has already incorporated the intended location and scale.
  • Do not let a few extremes define the center. The largest statistics can strongly affect a line fitted to all points. Describe the central trend and tail departures separately.
  • Account for finite-sample variability. The most extreme order statistics are naturally variable. A visible end departure in a small set of tests is not, by itself, strong evidence against a null model.
  • Remember dependence. Correlated tests can alter the variability and appearance of the ordered statistics. The apparent number of plotted points is not necessarily the number of independent pieces of information.

A histogram summarizes the distribution in bins and can reveal broad asymmetry or multiple features, but its appearance depends on bin width and it does not directly map observed quantiles to reference quantiles. A null Q-Q plot instead shows which quantiles depart, and in what direction. A local FDR calibration plot addresses a different question: how estimated posterior null risks compare with observed outcomes across groups. It does not replace a distributional comparison of test statistics with a null reference. These displays can complement one another, but they answer different diagnostic questions.

A common mistake is to say, “The upper tail lies above the line, so the empirical null has too large a variance.” That conclusion does not follow: an upper-tail-only departure is not the symmetric spread pattern expected from a simple scale increase. Correction: check the lower tail and central trend too. A scale discrepancy should affect the distribution broadly, whereas a one-ended departure may reflect asymmetry or an excess of positive non-null effects.

The main limitation is that the plot is descriptive and not uniquely diagnostic of cause. Location, scale, skewness, heavy tails, mixtures, dependence, and genuine effects can overlap in their visual consequences. A Q-Q plot can guide model assessment, but it cannot prove that an empirical null is correct, establish which tests are truly null, or replace the assumptions required to estimate that null.

Key takeaway: In a null Q-Q plot with observed statistics on the vertical axis, a central displacement suggests a location difference, a broad slope change suggests a scale difference, and departures concentrated at the ends suggest tail differences. Treat each as a pattern to investigate, not as a unique explanation.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. With standard normal quantiles on the horizontal axis, observed central points follow approximately \(z=0.2+q\). What location and scale pattern does this suggest?
  2. Observed points follow approximately \(z=0.8q\) across the center and both tails. How does their spread compare with a standard normal reference?
  3. The central points track the reference, the lower tail falls below it, and the upper tail stays close. Why is “symmetric scale inflation” not an adequate description?
  4. Name one reason tail departures in a genomic Q-Q plot do not by themselves show that the null model is wrong.

Solutions. (1) The intercept of \(0.2\) suggests a positive location shift of \(0.2\) test-statistic units; the slope of \(1\) suggests no scale change in that pattern. (2) The slope of \(0.8\) indicates a spread about 0.8 times the standard normal spread, or a variance about \(0.8^2=0.64\) times as large if a normal model is appropriate. (3) Symmetric scale inflation should generally move both tails away from the line in opposite vertical directions; a lower-tail-only departure is asymmetric and may have another explanation. (4) Some tests may correspond to genuine effects, which can create tail excesses even when the null model adequately describes the null statistics.

Clinical Biostats