Data and statistics · cheat sheet

Tests for equal variances

Tests that compare spreads: two groups (F-test), several groups (Levene's test, which doesn't need normal data), or one group against a target spread (chi-square test for variance).

Common practice
4 steps
Used by Process Improvement Specialist

What it is

Tests that compare spreads instead of averages: the F-test for two normal groups, Levene's test for two or more groups of any shape, and the chi-square test for one group against a target spread.

When to use it

Before a two-sample t-test or ANOVA, and whenever consistency itself is the question (is one process more variable than another?).

Why it works

Spread is often what customers feel. These tests also decide which version of a t-test or ANOVA to use.

Do

  • Use Levene's test when data isn't normal.

Don't

  • Using the F-test on clearly non-normal data (use Levene's).
  • Forgetting that reducing variation is often the real goal.

Step by step

  1. Choose the test
  2. Calculate F, Levene or chi-square.
  3. p-value
  4. Decide
Also called: F-test, Levene's test, one-sample variance testPrint the blank template ↗

Worked example

The situation. Two filling machines, 20 bottles each: standard deviations 1.2 and 2.0 ml. Target spread for machine 1: 1.0 ml.

  1. F = 2.0² ÷ 1.2² = 2.78. One-sample: chi-square = 19 × 1.2² ÷ 1.0² = 27.4.

The result. Machine 2 was serviced; its spread fell to 1.3 ml.

Equal variances worksheet Print blank
TestStatis­ticp-valueMeaning
F-test, two machines2.780.03Machine 2 varies more
One-sample variance, machine 1 against 1.027.40.10No evidence it exceeds the target

Filled in for: Two filling machines, 20 bottles each: standard deviations 1.2 and 2.0 ml. Target spread for machine 1: 1.0 ml.

GroupnStandard devia­tionVariance

Copy this structure, or print the blank version and fill it in by hand. F = larger variance ÷ smaller · one-sample chi-square = (n − 1) × s² ÷ target variance · p = ______

Before you use it: check these

CheckIf it fails
F-test: both groups roughly normalUse Levene's test
Independent groupsUse methods for related samples

How to do it with real data

The full calculation, as it happens in the story: the data, every step, how to read the result, and the spreadsheet functions to do it yourself.

Worked example with real data

Did something change at week 12?

From Day 30: What happened in week 12? of the Process Improvement Specialist story

The run chart showed a shift at week 12. The rota shows one doctor cut from five sessions a week to three that week, and the sessions were never covered. Astrid (Data Analyst) compares the weekly median waits before and after.

Weekly median waits before and after week 1205101520Before: median 8, quartiles 8 and 9, n = 118BeforeAfter: median 12, quartiles 11 and 12, n = 912After

Step by step

  1. Describe each groupbefore (11 weeks): mean 8.27, s 0.65 · after (9 weeks): mean 11.56, s 1.13
  2. Equal spreads? (F-test)F = 1.13² ÷ 0.65²; p = 0.10, and Levene's test p = 0.15= no evidence of different spreads
  3. Two-sample t-testt = (11.56 − 8.27) ÷ (0.895 × √(1/9 + 1/11))= 8.16
  4. p-value18 degrees of freedom= below 0.0001
  5. Check without assuming normal dataMann-Whitney: every week after is higher than every week before (U = 99 of 99)= p = 0.0001
  6. Size of the change11.56 − 8.27= about 3.3 days longer
WeekPeriodMedian wait (days)
Week 1Before8
Week 2Before9
Week 3Before8
Week 4Before7
Week 5Before9
Week 6Before8
Week 7Before9
Week 8Before8
Week 9Before8
Week 10Before9
Week 11Before8
Week 12After10
Week 13After10
Week 14After11
Week 15After11
Week 16After12
Week 17After12
Week 18After13
Week 19After12
Week 20After13

How to read the result

Since week 12 the weekly median wait is about 3.3 days longer, and it's very unlikely to be chance. The timing matches the lost doctor sessions.

What it led to

Root cause confirmed: about 30 routine appointments a week were lost at week 12 and never replaced.

Do it in a spreadsheet

F-test p-value=F.TEST(C2:C12,C13:C21)
t-test p-value (equal variances)=T.TEST(C2:C12,C13:C21,2,2)
Unequal variances version=T.TEST(C2:C12,C13:C21,2,3)
Mann-Whitneyrank all 20 values with RANK.AVG and add each group's ranks; no built-in p-value
Try it yourself: If the F-test had shown clearly different spreads, which version of the t-test would you use?

The unequal-variances version (often called Welch's t-test): =T.TEST(…,2,3). Here it also gives p below 0.0001.

In the roles

How a Process Improvement Specialist uses it

Before and after week 12: F = 3.06, p = 0.10; Levene p = 0.15. No evidence the spreads differ.

Questions people ask

Why check spreads before a t-test?

The standard t-test assumes equal spreads; if they differ, use the unequal-variances version.

Related techniques

← All techniques and tools