Statistics & probability

Repeated measures ANOVA calculator with sphericity corrections

Compare three to eight condition means measured on the same complete subjects.

Your numbers

One complete subject per line; 3–8 condition columns in a fixed order.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Compare three to eight condition means measured on the same complete subjects. Return the univariate repeated-measures F statistic and a Greenhouse-Geisser correction based on condition-contrast covariance.

THE FORMULAF=[nΣ(conditionMean−grand)²/(k−1)]/[Σ(y−subjectMean−conditionMean+grand)²/((n−1)(k−1))]; εGG=tr(PSP)²/[(k−1)tr((PSP)²)], P=I−11ᵀ/k.

A worked example

Twelve subjects and four conditions give F=4.687564826 on (3,33) df. Epsilon=0.699524279 rescales df to (2.098572836,23.084301201), giving corrected p=0.018326218.

Good to know

5–200 independent complete subject rows, 3–8 conditions with subjects greater than condition count; finite entries within ±10⁶, positive error variance and full-rank condition-contrast covariance. One within-subject factor; univariate F and Greenhouse-Geisser epsilon/degree correction only. No missing-data fit, between-subject factor, Mauchly test, Huynh-Feldt adjustment, post-hoc contrasts or mixed model.

Retain each subject's complete profile

Repeated measurements on one subject are related, so treating condition columns as independent samples discards the pairing. This calculator performs a one-factor within-subject ANOVA on a complete subjects-by-conditions matrix. Each row represents one independent subject and each column represents the same named condition across subjects.

The conditions might be times, doses or settings on a common response scale. Different response variables measured in incompatible units usually suggest a multivariate question instead. Pairing is part of the data structure, and sorting each condition column independently would destroy the profiles required by this analysis.

Condition profiles after removing subject baselinesSubject-centered responseCondition1234-303
Scroll across to see the full diagram.
Gray lines join each subject’s centered measurements; the blue line joins centered condition means. Pairing is retained when computing the repeated-measures error.

Compare this with the Friedman test calculator for repeated measures. Fit a within-subject mean-effects model and report epsilon-adjusted inference;Friedman ranks and ordinary independent-group ANOVA answer different questions.

Prepare a complete numeric matrix

Enter three through eight condition columns and at least five subject rows, with more subjects than conditions. Every subject must have an observed value in every condition. A blank measurement is not zero, and dropping different subjects from different columns would no longer produce a valid common paired sample.

The condition order only changes the order of displayed means for this omnibus test. Subject order is arbitrary. Keep an external record of subject identifiers and condition labels even though only numeric values enter the form, so the mapping can be verified and the analysis reproduced later.

Remove subject-level offsets

The decomposition separates condition variation from each subject's overall response level. Condition sums of squares compare column means with the grand mean, multiplied by subject count. Error values subtract the subject mean and condition mean from each observation and then restore the grand mean.

The F statistic compares condition mean square with this within-subject error mean square. Adding any constant to all measurements for one subject leaves those residual differences unchanged. This explains why large differences in baseline level between subjects do not automatically inflate the error term used for the condition comparison.

Examine sphericity through contrast covariance

The classical univariate F distribution assumes sphericity: equivalent variances across an appropriate orthonormal set of condition contrasts. The Greenhouse-Geisser estimate uses the covariance after projection away from the all-ones direction. Its trace and squared-matrix trace summarize how uneven the contrast variation is across directions.

Estimated epsilon lies between one divided by conditions minus one and one. When contrast eigenvalues are equal, epsilon reaches one. Unequal eigenvalues reduce it. The calculator requires a full-rank condition-contrast covariance, rejecting degenerate datasets that do not support the stated multivariate variation calculation.

Follow the four-condition example

Twelve default subjects are measured under four conditions. The uncorrected F is approximately 4.687565 with numerator degrees of freedom three and denominator degrees of freedom thirty-three. The uncorrected upper-tail p-value is approximately 0.007791, based on the ordinary univariate reference distribution.

The fitted Greenhouse-Geisser epsilon is approximately 0.699524. Multiplying both degrees of freedom by that value gives approximately 2.098573 and 23.084301. The same observed F is then evaluated against those adjusted degrees of freedom, producing corrected p approximately 0.018326 rather than changing the F statistic itself.

Read both probabilities carefully

The correction responds to covariance departure through a more conservative reference distribution. It does not alter condition means, remove observations or make the data spherical. Reporting the corrected degrees of freedom together with epsilon and F makes the inferential convention clear to readers comparing software output.

This interface supplies the uncorrected and Greenhouse-Geisser probabilities without automatically selecting between them using another test. It does not compute Mauchly's test or a Huynh-Feldt adjustment. A significant omnibus result indicates some condition mean difference, not which pairs differ or whether a specific temporal trend holds.

Match the method to the study

Subjects must be independent of other subjects, and the complete-data one-factor model must match the question. Carryover, nonrandom condition order, informative missingness and strong nonnormal contrast distributions can complicate interpretation. A correction for sphericity cannot repair those design or measurement problems or establish a causal treatment effect.

The bounded tool accepts at most two hundred subjects and provides no between-subject factor, mixed model, covariance regression or post-hoc contrasts. For missing observations or multiple experimental factors, choose an analysis that explicitly models that structure. Preserve pairing and report response units, condition definitions, subject count and correction convention with the result.

A few questions, answered

Does Greenhouse-Geisser change F?

No. It multiplies both reference degrees of freedom by estimated epsilon, then recomputes the upper-tail probability for the same observed F.

Can I enter incomplete subject rows?

No. The implementation assumes the same subjects have every condition observed. Missing-data methods require a different model and assumptions.

Why can subject offsets be ignored?

Adding a constant to every condition for one subject changes that subject mean by the same amount. The within-subject contrasts and error residuals are unchanged.

Is Mauchly or Huynh-Feldt included?

No. The output contains the uncorrected univariate test and the named Greenhouse-Geisser correction, with epsilon and both adjusted degrees of freedom.

Find your calculator

Start typing to explore the library.