Tutorials › Bioavailability and Bioequivalence › Assessing Normality of Crossover Model Residuals

Log-Scale Analysis and ANOVA · Tutorial 198 of 399

Assessing Normality of Crossover Model Residuals

Learn to evaluate crossover-model residual normality with quantile plots, targeted diagnostics, and appropriately cautious interpretation of formal tests.

Intermediate 12 min read

What You'll Learn

  • Define the error-normality assumption for a log-scale crossover model.
  • Construct and interpret a normal quantile plot of ordered residuals.
  • Use targeted checks for asymmetry, tail behavior, and patterns by design factor.
  • Distinguish skewed raw exposures from departures in model residuals.
  • Recognize the limits of histograms and formal normality tests.
  • Identify when residual patterns call for model review rather than automatic data deletion.

Why Residual Normality Is the Relevant Question

A crossover study can have strongly right-skewed exposure measurements on the original scale and still be adequately described by a model whose errors are approximately normal on the log scale. Conversely, log transformation does not guarantee normal model errors. The diagnostic question is therefore not whether the observed AUC or Cmax values look bell-shaped; it is whether the residuals are consistent with the error assumptions of the fitted crossover model.

In a log-scale crossover analysis, the model represents each log exposure using specified effects, such as treatment, period, sequence, and subject. Residuals are the differences between observed log exposures and the values fitted by that model. Normality is an assumption about the model errors after accounting for those effects, not a requirement that every set of observations or every covariate be normally distributed.

Definition: A residual is an observed response minus its fitted value under a specified model. In a log-scale crossover model, the response is a log-transformed exposure measurement, so residuals are expressed in log units. The normality assumption concerns the conditional error distribution given the modeled effects; in a Gaussian linear model, this is commonly stated as errors that are normally distributed with mean zero and the variance structure specified by the model.

The interpretation depends on the model. In a fixed-effects crossover ANOVA, normal errors are commonly assumed to be independent with a common variance after conditioning on the design effects. In a mixed model, the assumptions also concern the random effects and the residual covariance structure; a marginal residual plot must be interpreted in light of that structure. A residual diagnostic cannot validate independence, variance assumptions, or the chosen covariance structure by itself.

Quantile Plots and Their Justification

A normal quantile-quantile plot compares ordered observed residuals with the ordered quantiles expected from a normal distribution. If the assumed model is reasonable, the points should lie approximately along a straight line. The line need not pass through zero in a finite sample, although residuals from models with an intercept often sum to zero.

One way to construct the plot is to order the \(n\) residuals, \(e_{(1)} \le \cdots \le e_{(n)}\), and pair each with a theoretical normal score. A common plotting position is \(p_i=(i-0.375)/(n+0.25)\), with score \(z_i=\Phi^{-1}(p_i)\), where \(\Phi^{-1}\) is the standard normal quantile function. Plot \(e_{(i)}\) against \(z_i\). Other standard plotting-position rules give slightly different scores, especially in small samples, but should not change the main diagnostic pattern.

Why the points are not independent: In an ordinary least-squares model with design matrix \(X\), the fitted residual vector is \(e=(I-H)y\), where \(H=X(X'X)^{-1}X'\). If the conditional errors satisfy \(\epsilon \sim N(0,\sigma^2 I)\), then \(e=(I-H)\epsilon\) and therefore \(e \sim N(0,\sigma^2(I-H))\). Thus, even under normal model errors, fitted residuals are generally correlated and have variances \(\sigma^2(1-h_{ii})\), which can differ across observations. A quantile plot is a diagnostic comparison, not a claim that the residuals are an independent sample from a normal distribution.

This distinction explains why a small amount of scatter around a line is expected, and why a formal goodness-of-fit calculation that treats fitted residuals as independent normal observations may not have its nominal reference distribution. In mixed-model software, conditional and marginal residuals can also differ; use residuals appropriate to the fitted model and understand which type the software reports.

Worked Example: Reading a Residual Quantile Plot

Suppose a hypothetical balanced crossover analysis produces these eight residuals, in log units: \(-0.22,-0.15,-0.11,-0.04,0.00,0.03,0.09,0.40\). They are already ordered. Use the plotting-position rule above to identify the main pattern.

For \(n=8\), the denominator in the plotting positions is \(8+0.25=8.25\). The first position is \(p_1=(1-0.375)/8.25=0.07576\), with theoretical score approximately \(-1.434\). The final position is \(p_8=(8-0.375)/8.25=0.9242\), with score approximately \(1.434\). The interior scores are approximately \(-0.852,-0.472,-0.153,0.153,0.472,0.852\).

Pairing these scores in order with the residuals gives points from \((-1.434,-0.22)\) through \((0.153,0.00)\) to \((1.434,0.40)\). Most residuals occupy a fairly limited range, while the largest residual is much farther above the central pattern than a straight-line continuation would suggest. The plot would therefore invite a closer look at the upper tail. Eight observations are too few to establish a precise tail shape, so this is a warning to investigate, not proof that the model errors are nonnormal.

Targeted Checks Beyond the Plot

A quantile plot is most informative when interpreted alongside checks aimed at specific departures. Examine whether residuals show asymmetry, unusually heavy or light tails, or a pattern tied to design features. For crossover data, useful displays can distinguish periods, treatments, or sequences when the model and design permit those comparisons. Such grouping can reveal a systematic pattern that a pooled plot conceals. This is a targeted assessment of the normality assumption; it is not a substitute for assessing variance or covariance assumptions.

Descriptive summaries can help describe a pattern but should not become rigid pass/fail rules. For example, the moment-based skewness \(g_1=m_3/(m_2)^{3/2}\), where \(m_2\) and \(m_3\) use divisor \(n\) for the second and third centered moments, summarizes asymmetry. Its value is sensitive to extreme observations and sample size. It should be read with the plot and the study context, not used alone to certify normality.

Worked Example: A Targeted Check for Asymmetry

Consider a second hypothetical set of ten model residuals, in log units: \(-0.12,-0.09,-0.07,-0.05,-0.03,0.02,0.04,0.06,0.08,0.16\). Their sum is zero. Calculate moment-based skewness and a scale check for the largest residual.

The sum of squared residuals is \(0.0144+0.0081+0.0049+0.0025+0.0009+0.0004+0.0016+0.0036+0.0064+0.0256=0.0684\). The sum of cubed residuals is \(-0.001728-0.000729-0.000343-0.000125-0.000027+0.000008+0.000064+0.000216+0.000512+0.004096=0.001944\). Because the mean is zero, these are also the centered sums.

Using divisor \(n=10\), \(m_2=0.0684/10=0.00684\) and \(m_3=0.001944/10=0.0001944\). Therefore \(g_1=0.0001944/(0.00684)^{3/2}\approx0.344\). This indicates modest positive sample skewness in this descriptive summary; it does not by itself show that the normality assumption is unacceptable.

For a rough scale comparison, the sample standard deviation is \(s=\sqrt{0.0684/9}\approx0.08718\) log units. The largest residual is \(0.16/0.08718\approx1.835\) sample standard deviations above zero. Neither this calculation nor a conventional cutoff alone determines whether that residual is problematic. Its position in the quantile plot, the design context, and the overall residual pattern matter.

Do Not Confuse Raw-Scale Skewness with Residual Nonnormality

Exposure measurements are positive and often vary multiplicatively. Their raw-scale distribution can be right-skewed even when log-scale errors are reasonably symmetric. The treatment of log exposures in crossover analysis separates a subject’s overall exposure level and modeled design effects from the remaining deviations. Residual normality concerns those deviations, not the raw distribution across subjects.

Worked Example: Raw Exposures and Log-Model Residuals

In a hypothetical illustration, five raw exposure values for one formulation are \(40,60,90,135,\) and \(270\) exposure units. Their arithmetic mean is \((40+60+90+135+270)/5=119\) units, and their median is \(90\) units. The high value of \(270\) creates a right-skewed appearance on the raw scale.

Now consider the separately calculated residuals from the fitted log-scale crossover model for a hypothetical diagnostic display: \(-0.08,-0.04,0.00,0.03,0.09\) log units. These residuals are centered and have no pronounced one-sided tail in this small set. The raw exposures and residuals answer different questions: the first list describes observed measurements on the original scale, while the second describes deviations from fitted log-scale values. The raw-scale skewness alone is not evidence against residual normality.

In practice, confirm that residuals were calculated from the intended log-scale model and inspect the residual plot. A residual pattern can still indicate a problem even when the raw exposures look plausible, and a skewed raw distribution does not automatically invalidate an analysis conducted on the log scale.

Alternative Checks, Failure Modes, and Limits

A histogram can reveal a broad asymmetry or multiple modes, but with a small crossover sample its shape depends heavily on bin choices. A normal quantile plot usually preserves more information about tail departures and is therefore a useful primary display. Formal tests, such as the Shapiro–Wilk test, provide a test statistic and p-value for a specified normality null under the test’s assumptions. A large p-value does not establish normality; it can reflect low power, particularly in small studies. A small p-value indicates incompatibility with the null under that test, but does not identify the cause or quantify its effect on the treatment estimate.

Look for patterns rather than a single numerical verdict. Curvature across most of the plot can suggest asymmetry or a distribution with a different shape. A departure concentrated at one end suggests a tail issue. Separate clusters or systematic shifts by period or treatment may point to an unmodeled design feature rather than a single common error distribution. A fan-shaped pattern primarily raises a variance question, and should be evaluated using variance diagnostics rather than labeled a normality failure.

Residual plots also have limits. Fitting the model constrains residuals and changes their variances; a small sample may not reveal important departures. A diagnostic pattern can be caused by model misspecification, a data-processing issue, or an unusual subject. It is not a license to remove observations. Check data and model construction, assess whether the pattern is systematic, and report material concerns. Normality diagnostics alone do not determine which subject is influential or justify automatic deletion.

1
Confirm the residual definition.
Use residuals from the specified log-scale crossover model and establish whether they are conditional or marginal residuals when using a mixed model.
2
Inspect the quantile plot.
Look for broad curvature, tail departures, or isolated deviations, allowing for sampling variability and the dependence introduced by fitting.
3
Check targeted patterns.
Use descriptive summaries and design-aware displays to see whether departures are associated with treatment, period, or sequence.
4
Interpret in context.
Distinguish a possible normality departure from a variance, covariance, or model-specification concern; do not treat a plot or test as an automatic deletion rule.
Key takeaway: Assess normality on the residual scale of the fitted crossover model. Use the quantile plot as the main visual check, targeted summaries and displays to understand departures, and formal tests only as supporting evidence. Raw exposure skewness is not a substitute for residual diagnostics.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. A raw-scale Cmax histogram is strongly right-skewed. Does that alone demonstrate nonnormal residuals in a log-scale crossover model?
  2. In a normal quantile plot, most points follow a line but the largest two residuals lie well above it. What pattern is suggested, and what can you conclude?
  3. Why are fitted residuals generally not independent even when the model errors are independent normal variables?
  4. A Shapiro–Wilk test gives a large p-value in a small study. Does this establish that the residuals are normal?
  5. A residual plot shows a fan-shaped spread as fitted values increase. Is normality the only or the most direct concern raised by that pattern?

Solutions. (1) No. Raw-scale skewness and log-model residual normality concern different distributions; inspect residuals from the fitted log-scale model. (2) The upper tail may be heavier or more extreme than expected under the normal reference. The plot warrants investigation but, especially with few observations, does not prove a model failure. (3) Fitting projects the data onto model effects, so the residuals are transformed by \(I-H\) and have covariance \(\sigma^2(I-H)\), which is generally not diagonal. (4) No. A large p-value means the test did not detect a departure at the chosen level; limited power can explain that result. (5) The pattern most directly raises a concern about unequal residual variance, which should be assessed separately from the shape of the residual distribution.