Assumption · Statistics Library

Sphericity

Sphericity is the assumption in repeated-measures ANOVA that the variance of the differences between every pair of conditions is the same, which is what lets one pooled error term be used for all comparisons.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

When the same people are measured under three or more conditions, a repeated-measures ANOVA compares the conditions using one shared estimate of noise. That is only fair if the pairwise differences (condition 1 minus condition 2, condition 1 minus condition 3, condition 2 minus condition 3, and so on) are all about equally variable.

If measuring the same five people at times 1, 2 and 3, and the gap between times 1 and 2 is highly variable across people while the gap between times 2 and 3 is nearly identical for everyone, sphericity is violated: the pooled error term overstates the noise for the quiet pair and understates it for the noisy one, so the F-test's reference distribution no longer matches the data.

The usual response is not to abandon the analysis but to correct the degrees of freedom (Greenhouse-Geisser or Huynh-Feldt), which shrinks them to reflect the actual amount of independent information, giving an honestly wider (more conservative) test.

The sphericity assumption only matters when a within-subject factor has three or more levels; with two levels there is only one difference, so it holds automatically. Mauchly's test checks sphericity, but it has little power in small samples and flags trivial departures in large ones. When sphericity fails, the Greenhouse-Geisser correction or the Huynh-Feldt correction shrinks the degrees of freedom so the p-value is not too small; Greenhouse-Geisser is the more cautious of the two. Compound symmetry, where every condition has the same variance and every pair of conditions has the same correlation, is a stricter pattern that guarantees sphericity.

Practitioner explanation

Sphericity requires that Var(X_i - X_j) is constant for every pair of the k repeated conditions: the multivariate generalization of the two-sample equal-variance assumption to more than two related measurements. With only two conditions sphericity holds trivially (there is only one pairwise difference), which is why the assumption is specific to designs with three or more repeated levels.

Mauchly's W tests departure from sphericity but is underpowered at small n (where correction is most needed) and overpowered at large n (flagging trivial departures), the same pattern documented for Shapiro-Wilk. The practical response is therefore to apply a correction by default rather than gate on the test: Greenhouse-Geisser (epsilon, more conservative, preferred when epsilon is small, i.e. sphericity is badly violated) or Huynh-Feldt (less conservative, preferred when epsilon is closer to 1).

KernelStats runs Mauchly's test automatically on every repeated-measures ANOVA, reports both the uncorrected and the Greenhouse-Geisser-corrected p-value on the card, and uses the corrected value as the reported default when sphericity is flagged as violated, so the analyst is not required to manually apply the correction to get an honest test.

When to use it

Consider it when

Check it whenever a repeated-measures ANOVA has three or more within-subject levels.

Use caution when

Do not apply a sphericity correction to a design with only two repeated levels (there is nothing to violate) and do not use Mauchly's test as a hard gate at very small or very large n without also inspecting epsilon's size.

Formulas and symbols

Mauchly's W

W=∏iλi(1k−1∑iλi)k−1W = \frac{\prod_i \lambda_i}{\left(\frac{1}{k-1}\sum_i \lambda_i\right)^{k-1}}

lambda_i are the eigenvalues of the covariance matrix of the orthonormalized pairwise differences, over k repeated conditions. W near 1 indicates sphericity.

Greenhouse-Geisser correction factor

ε^GG=(∑iλi)2(k−1)∑iλi2\hat{\varepsilon}_{GG} = \frac{\left(\sum_i \lambda_i\right)^2}{(k-1)\sum_i \lambda_i^2}

Multiplies both numerator and denominator degrees of freedom; epsilon = 1 is full sphericity, lower values shrink the degrees of freedom toward a more conservative test.

Alternatives

  • Linear Mixed-Effects Model. The design is unbalanced or has missing observations across conditions. Note that KernelStats's mixed model is random-intercept only, which implies compound symmetry (a special case of sphericity): it handles the missing data but does NOT relax sphericity. A mixed model with an unstructured or autoregressive covariance would, but this tool does not fit one; for bad sphericity violations stay with the Greenhouse-Geisser/Huynh-Feldt corrected test or a multivariate (MANOVA-style) repeated-measures analysis.
  • Friedman Test. The repeated measurements are ordinal, clearly non-normal, or have influential outliers at small n.

Common misconceptions

Misconception

Sphericity is the same thing as the equal-variance assumption of a two-sample t-test.

Correction

It generalizes that idea to the DIFFERENCES between three or more paired conditions, not to the conditions' raw variances directly. A design can have equal variances in every condition and still violate sphericity if the correlations between conditions differ.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §7.4.3 Comparing multiple population means: ANOVA extensions, NIST/SEMATECH (2012), §7.4.3.