TapCub is live — analytics, insights and live chat, free on one platform
Glossary

ANOVA: a one-way analysis of variance worked by hand

ANOVA tests whether several group means differ. Work a one-way ANOVA by hand on three page variants, read F and p correctly, and see why many t tests are not a substitute.

Lin Zhou Reviewed by Su He Also called analysis of variance Last updated Dec 3, 2026 Glossary

Quick answer

ANOVA (analysis of variance) tests whether the means of several groups differ more than the variation within the groups would explain. It reports an F statistic, the ratio of between-group to within-group variance, and a p-value, but not which groups differ.

Formula: F = (SS between ÷ (k − 1)) ÷ (SS within ÷ (N − k))

What is ANOVA?

ANOVA, short for analysis of variance, is a statistical method that tests whether the means of several groups differ by more than the scatter inside the groups would explain. Despite its name, the question is about means. It gets there by comparing two kinds of variance: how far the group means sit from the overall mean, and how far individual values sit from their own group mean.

One-way ANOVA is the simplest form. There is one factor, such as the version of a page, with three or more levels, and one numeric outcome measured on each unit, such as the seconds a visitor needs to complete a form. The null hypothesis is that all group means are equal. The alternative is only that at least one of them is different.

The method was developed by the statistician Ronald Fisher, and the F distribution used to judge the result carries his initial. The NIST handbook presents the calculation as a table with a treatment row, an error row and an F statistic, which is the layout used below.

Worked example: one-way ANOVA on three page variants

A team shows one of three versions of a signup page to different visitors and records how many seconds each takes to finish signing up. Six visitors per version (sample data):

VariantSecondsSumMeanSum of squared deviations
A52, 48, 55, 50, 47, 543065152
B45, 43, 49, 41, 46, 462704538
C50, 53, 46, 52, 47, 523005042

The last column adds up (value − group mean)² inside each group. For A: 1 + 9 + 16 + 1 + 16 + 9 = 52. The grand mean is (306 + 270 + 300) ÷ 18 = 876 ÷ 18 = 48.67 seconds.

Step 1: between-group sum of squares. Each group mean is compared with the grand mean and weighted by group size:

SS between = 6 × (51 − 48.67)² + 6 × (45 − 48.67)² + 6 × (50 − 48.67)² = 124

Step 2: within-group sum of squares. Add the last column: 52 + 38 + 42 = 132. The two parts sum to the total sum of squares, 256.

Step 3: degrees of freedom. With k = 3 groups and N = 18 values, between groups k − 1 = 2, within groups N − k = 15.

Step 4: mean squares and F.

SourceSum of squaresDegrees of freedomMean squareF
Between variants1242124 ÷ 2 = 6262 ÷ 8.8 = 7.05
Within variants13215132 ÷ 15 = 8.8
Total25617

Step 5: judge F. The 5% critical value of the F distribution with 2 and 15 degrees of freedom is 3.68, and 7.05 is well above it. The p-value is about 0.007. When the numerator has exactly 2 degrees of freedom there is a shortcut you can check on a calculator: p = (15 ÷ (15 + 2 × 7.045))^7.5 ≈ 0.0070.

What F and p say, and what they do not

F is a ratio of signal to noise. If the three versions had the same true mean, both mean squares would estimate the same variance and F would tend to be near 1. A value of 7 says the group means are spread much wider than the scatter within groups would normally produce.

The scatter matters as much as the gap. Keep the three means at 51, 45 and 50, but make every visitor's distance from their group mean three times larger. SS between stays 124, SS within becomes 1,188, the within mean square 79.2, F drops to 0.78 and p rises to about 0.47. The same differences in means are now indistinguishable from noise.

The output tells youIt does not tell you
The data would be unusual if all means were equalWhich variants differ from which
How between-group spread compares with within-group spreadHow large or useful the difference is
The evidence at this sample sizeThe probability that the null hypothesis is true
Nothing about directionWhether variant B caused it, unless assignment was random

For size, report the means with their differences, and a measure such as eta squared = SS between ÷ SS total = 124 ÷ 256 = 0.48. That share is optimistic in small samples; the adjusted omega squared, (124 − 2 × 8.8) ÷ (256 + 8.8) = 0.40, is lower. See effect size and p-value.

Why not run many t tests?

With three variants there are three pairs, and each test at the 0.05 level gets its own chance of a false alarm. If the three tests were independent, the chance of at least one false alarm when nothing differs would be 1 − 0.95³ = 14%. Pairwise tests share data, so the exact figure differs, but it is well above 5%. With six variants there are 15 pairs, and the independent-tests figure is 54%.

ANOVA asks one question first, with one error rate. If it rejects, you then compare pairs with a method that accounts for multiplicity. Tukey's method, described by NIST, is built for all pairwise comparisons. A simpler choice is the Bonferroni correction: divide 0.05 by the number of comparisons, here 0.0167. Using the pooled within mean square of 8.8, the standard error of a difference is √(8.8 × (1/6 + 1/6)) = 1.713 seconds:

PairDifference in meanst (15 df)Two-sided pPasses 0.0167?
A vs B6 s3.500.003Yes
C vs B5 s2.920.011Yes
A vs C1 s0.580.57No

The conclusion in words: B is faster than both A and C; this data cannot separate A from C. "Cannot separate" is not the same as "equal".

ANOVA vs t test vs chi-square

MethodOutcomeGroupsQuestion
t testNumeric1 or 2Do two means differ?
One-way ANOVANumeric3 or more (also works with 2)Do any of the means differ?
Two-way ANOVANumericTwo factorsDoes each factor matter, and do they interact?
Chi-square testCategories or yes/no2 or moreDo the proportions differ?

With exactly two groups, one-way ANOVA with pooled variance and the pooled two-sample t test agree: F equals t². If your outcome is converted or not converted, ANOVA is the wrong tool. The full decision table is in which statistical test.

Assumptions and alternatives

  • Independent observations. One value per randomized unit. Ten visits by one person are not ten independent people. No later correction repairs this.
  • Roughly normal residuals. This matters most in small groups. With large groups, the means are close to normal even when values are skewed.
  • Similar variances. In the example the group standard deviations are 3.22, 2.76 and 2.90, close enough. When they differ a lot, especially with unequal group sizes, use Welch's ANOVA. On this data it gives F = 6.96 with about 2 and 10.0 degrees of freedom, p = 0.013, the same direction with a little less certainty.
  • Ordinal or strongly skewed outcomes. The Kruskal–Wallis test works on ranks. It answers a question about the ordering of values, not about means.

Before computing anything, plot the groups. A single visitor who took 600 seconds would dominate SS within, and the right response is to find out what happened to that visitor.

ANOVA inputs from TapCub

TapCub does not run A/B tests, assign variants or calculate ANOVA. It can record what you need to do the calculation elsewhere.

  1. Tag the variant. Let your testing tool assign the version and send it as an event property, for example variant with values A, B and C, on the page view and the signup event. Write it into All-platform analytics › Data › Tracking plan so the name stays consistent.
  2. Check the timing. All-platform analytics › Behavior › Interval shows the distribution of time between two events, such as opening the signup page and completing signup, with median, quartiles and average. Use segments or filters to look at one variant at a time, and compare shapes before testing.
  3. Pull per-person values. In All-platform analytics › Behavior › SQL query, return one row per person with the variant and the seconds between the two events, or the three summaries per variant that ANOVA needs: count, sum and sum of squares. Within-group squares follow from Σx² − n × mean². For large lists, use All-platform analytics › Data › Data export on a plan that includes it.
  4. Compute outside. Paste the numbers into a spreadsheet or statistics package, run the ANOVA, then the pairwise comparisons. Note how many visitors never finished: ANOVA on completion time silently leaves them out, so compare completion rates separately.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What does ANOVA tell you?

Whether the data are compatible with all group means being equal. A small p-value says at least one mean differs by more than within-group scatter would explain. It does not say which group differs, how large the difference is in practical terms, or what caused it.

What is a good F value in ANOVA?

There is no universal good value. F near 1 means group means vary about as much as chance would produce. Whether a larger F is significant depends on both degrees of freedom: with 2 and 15, the 5% critical value is 3.68, so F = 7.05 passes.

What is the difference between ANOVA and a t test?

A t test compares one or two means. ANOVA compares three or more at once with a single error rate. With exactly two groups and pooled variance they give the same p-value, because F equals t squared.

What do you do after a significant ANOVA?

Compare the pairs with a method that controls for multiple comparisons, such as Tukey's method or a Bonferroni-adjusted threshold. Report each difference in the original units with an interval, and an effect size such as eta squared or omega squared.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics