Tests for Variance: Chi-Square, F, Levene and Bartlett
Tests for variance are hypothesis tests that check whether process variation differs from a target or between groups. The one-sample chi-square test compares one variance with a standard, the F-test compares two variances, and Levene's and Bartlett's tests compare several. Levene's test stays reliable when the data are not normal.
Quick facts
- Type
- Hypothesis tests for spread (continuous Y)
- Formulas
- χ² = (n − 1)s² / σ₀²; F = s₁² / s₂² with the larger variance on top
- Origin
- F distribution named for R. A. Fisher by Snedecor (1934); Bartlett (1937); Levene (1960); Brown and Forsythe (1974)
- Used when
- Analyze phase, when the problem is inconsistency, and before pooled t-tests or ANOVA
- Sensitivity to non-normality
- High for chi-square, F and Bartlett; low for Levene
- Reference
- IASSC™ Green Belt Body of Knowledge §3.4.2
- Exam relevance
- Green Belt (Analyze phase); calculation and test-selection items
When do you test variances in a Lean Six Sigma project?
Customers feel variation more than averages: a delivery that takes two days on average but sometimes takes nine is a bad service. Variance tests answer two kinds of question in the Analyze phase:
- Is variation itself the problem? Does one supplier, shift or machine produce more scattered results than another? Does a process meet a maximum standard deviation set in a contract?
- Are the assumptions of another test met? The pooled two-sample t-test and one-way ANOVA assume similar variances across groups. A variance test checks that before the comparison of means.
The choice depends on the number of groups and on the shape of the data:
| Situation | Test |
|---|---|
| One variance against a standard | One-sample chi-square test |
| Two variances, data roughly normal | F-test |
| Two or more variances, data roughly normal | Bartlett's test |
| Two or more variances, data not normal or unsure | Levene's test |
Variance tests deserve a place in Analyze whenever consistency, not the average, is what the customer complains about.
How does the one-sample chi-square test for variance work?
The test compares a sample variance with a hypothesized value σ₀², usually a maximum written into a standard:
χ² = (n − 1)s² / σ₀², df = n − 1H₀: σ² = σ₀²; for a maximum standard,Hₐ: σ² > σ₀²(upper tail)
Worked example. Brightwater Health requires the standard deviation of a lab's turnaround time to stay at or below 4.0 minutes. A sample of 21 results has s = 5.0 minutes. Rounding to two decimals:
| Step | Calculation | Result |
|---|---|---|
| Test statistic | (21 − 1) × 5.0² / 4.0² = 20 × 25 / 16 | 31.25 |
| Degrees of freedom | 21 − 1 | 20 |
| Critical value (α = 0.05, upper tail) | formula sheet χ² table, df 20, column 0.05 | 31.410 |
| Decision | 31.25 < 31.410 | Do not reject H₀ (p ≈ 0.052) |
The sample standard deviation is 25% above the limit, yet with 21 values the evidence falls just short. The 95% confidence interval for σ, √(20 × 25 / 34.170) to √(20 × 25 / 9.591), runs from about 3.83 to 7.22 minutes and still contains 4.0. Variances are estimated far less precisely than means, so variance tests need larger samples.
The chi-square test for variance always works on variances: square both standard deviations before dividing.
How does the F-test compare two variances?
The F-test divides one sample variance by the other. By convention the larger variance goes on top, so F is at least 1 and only the upper tail of the F table is needed:
F = s₁² / s₂² (s₁² the larger), df = n₁ − 1 and n₂ − 1
Worked example. Northgate Insurance suspects that team A's claim-assessment times are more variable than team B's. Team A: n = 16, s = 9.0 min. Team B: n = 21, s = 6.0 min. Then F = 81 / 36 = 2.25, with 15 and 20 degrees of freedom.
The formula sheet's F table gives upper-tail critical values at α = 0.05. For this one-sided question (Hₐ: team A is more variable), the critical value for df 15 and 20 is 2.20, and 2.25 > 2.20, so H₀ is rejected (p ≈ 0.046).
Two cautions apply. First, a two-sided question at α = 0.05 needs the 0.025 upper critical value, here about 2.57, so the same data would not be significant two-sided: the α = 0.05 table serves a two-sided test only at α = 0.10. Second, the ratio uses variances, not standard deviations: 9.0 / 6.0 = 1.50 is not F.
The F-test is quick and exact for normal data, but it is the most sensitive of these tests to non-normality.
When do you use Levene's or Bartlett's test?
Both tests compare the variances of two or more groups at once, with H₀ that all group variances are equal.
- Bartlett's test (Bartlett, 1937) compares a pooled variance with the individual variances through a chi-square statistic with k − 1 degrees of freedom. It is the more powerful choice when the data are normal, but non-normal data, especially heavy tails, can make it signal a difference that is really only a difference in shape.
- Levene's test (Levene, 1960) computes each value's absolute deviation from its group center and runs a one-way ANOVA on those deviations. The Brown-Forsythe variant (1974) uses the group median as the center, which makes it more robust to skewed data. Many practitioners treat it as the default for process data.
At Larchfield Logistics, a Green Belt comparing four carriers' delivery times before an ANOVA found clearly skewed distributions. Levene's test was the sound choice; Bartlett's test would have reacted to the skew as much as to the spread.
In practice, read the result with a plot of the groups' spread, such as box plots or interval plots of the standard deviations.
Levene's test is the safe default for several groups when normality is in doubt; Bartlett's test rewards normal data with more power.
What are the common mistakes with variance tests?
Variance tests are valuable because they put a number on consistency, the dimension of quality that averages hide. They are also easy to misapply:
- Using standard deviations instead of variances in the chi-square or F statistic. At Brightwater Health, 20 × 5.0 / 4.0 = 25.0 instead of 31.25.
- Using n instead of n − 1 in the chi-square statistic or the degrees of freedom.
- Putting the smaller variance on top of the F ratio and then reading the upper-tail table.
- Forgetting the tail. A two-sided F-test at α = 0.05 needs the 0.025 critical value.
- Running the F-test or Bartlett's test on clearly non-normal data. Use Levene's test.
- Expecting precision from small samples. As the Brightwater example shows, a standard deviation 25% above target can still be compatible with the standard when n is small.
- Ignoring stability. A process that shifts during the study inflates s; chart the data before testing it.
Check the shape of the data, square the standard deviations and pick the tail before reading any table: those three steps prevent most errors with tests for variance.
Levene's test vs. Bartlett's test: what is the difference?
| Levene's test | Bartlett's test | |
|---|---|---|
| How it works | ANOVA on absolute deviations from each group's mean or median | Chi-square comparison of the pooled and individual variances |
| Assumes normal data | No; robust to non-normality, especially the median variant | Yes; very sensitive to departures from normality |
| Power with normal data | Somewhat lower | Higher |
| Number of groups | Two or more | Two or more |
| Typical use | Default check for process data before ANOVA | Normal data where the extra power matters |
Bartlett's test is the sharper tool for normal data, while Levene's test gives trustworthy answers when the data are skewed or heavy-tailed. Check normality first, then choose.
Exam focus
Variance tests are IASSC™ section 3.4.2, in Green Belt scope only. Expect to compute a one-sample chi-square statistic or an F ratio, to give the degrees of freedom, and to choose between Levene's and Bartlett's tests when the data are not normal. The usual traps are using standard deviations instead of variances, n instead of n − 1, and the smaller variance on top. Practise in the Analyze phase drill.
Practise this DMAIC phase →FAQ
Which test should I use to compare the variances of several groups?
Use Levene's test when the data may not be normal, which is common with times, costs and other skewed process data. Use Bartlett's test when the data are clearly normal and you want slightly more power. Both test the hypothesis that all group variances are equal, and both work with two or more groups.
Why is the larger variance placed on top in an F-test?
Putting the larger variance in the numerator makes F at least 1, so only the upper tail of the F distribution is needed and a single printed table covers the test. The degrees of freedom follow the variances: n − 1 of the larger-variance sample for the numerator, n − 1 of the other sample for the denominator.
How do I calculate the chi-square statistic for one variance?
Multiply the sample variance by n − 1 and divide by the hypothesized variance: χ² = (n − 1)s² / σ₀². With n = 11, s = 3.0 and σ₀ = 2.5, χ² = 10 × 9 / 6.25 = 14.40, with 10 degrees of freedom. Compare it with the chi-square table at the chosen α and tail.
Do I need to test variances before a t-test or ANOVA?
Before a pooled two-sample t-test or a classic one-way ANOVA, yes, because both assume similar variances. If the variances differ, use Welch's t-test or Welch's ANOVA, which do not need that assumption. A test for equal variances also answers a useful process question on its own: is one group less consistent?
Why do variance tests need larger samples than tests for means?
A sample variance is a much less precise estimate than a sample mean, especially for small n and non-normal data. With 21 values, a 95% confidence interval for σ runs from about 23% below to 44% above the sample value, so only large differences in spread are detected.
Sources
- Bartlett, M. S. (1937). Properties of Sufficiency and Statistical Tests. Proceedings of the Royal Society of London, Series A, 160(901), 268–282.
- Levene, H. (1960). Robust Tests for Equality of Variances. In I. Olkin et al. (Eds.), Contributions to Probability and Statistics: Essays in Honor of Harold Hotelling (pp. 278–292). Stanford University Press.
- Brown, M. B. & Forsythe, A. B. (1974). Robust Tests for the Equality of Variances. Journal of the American Statistical Association, 69(346), 364–367.
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.10: Levene Test for Equality of Variances.
- IASSC™ (n.d.). Lean Six Sigma Green Belt Body of Knowledge, §3.4.2.
- Last reviewed