When to use it
You want to check homogeneity of variance, either as an assumption for a pooled t-test / classic ANOVA, or as a question in its own right (do these groups differ in spread / consistency / precision?).
When not to: Group sizes are very small (all three variance tests are low-powered in that regime, and a non-significant result is weak evidence for equal variances), or Bartlett's test is chosen despite a per-group normality check flagging non-normality (switch to Brown-Forsythe instead, which the card's own warning directs you toward).
Step by step
Open it from the menu
Click Analyze in the menu bar; under Assumptions choose Equal Variances Test.
Fill in the form
Choose the columns: What you measured, Groups. The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Test, Alpha. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you measured Response required | One numeric column. The continuous variable whose spread you are comparing. |
|---|---|
| Groups Group Var required | One categorical or ordered categorical column. The grouping factor (2 or more levels). |
| Test | Brown-Forsythe (the default) = median-centered, robust; Levene = mean-centered (classic); Bartlett = likelihood ratio (most powerful under normality). Default: Brown-Forsythe. |
| Alpha | Significance threshold for the decision. Default: 0.05. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Independence of observations
If it does not hold: This test assumes observations within and across groups are independent; violating this invalidates the variance comparison regardless of which method (Levene, Brown-Forsythe, Bartlett) is selected.
How to check: Not checked by KernelStats: assumed from the study design; stated directly as a standing reminder.
- Normality (of residuals, not of the raw data)
If it does not hold: Bartlett's test is highly sensitive to non-normality: a significant Bartlett result can reflect non-normal data rather than genuinely unequal variances; Levene's and Brown-Forsythe's tests are robust to this and are the recommended default for that reason.
How to check: Checked directly: Shapiro-Wilk is run on each group and the worst (smallest) p-value is reported; the card notes when the selected method (Levene/Brown-Forsythe) is robust to the departure it found, versus when Bartlett's result might be confounded by non-normality.
A worked example
Comparing the variance of body mass across three penguin species with the card's default test, Brown-Forsythe (median-centered).
Result: Brown-Forsythe W(2, 339) = 5.12, p = .006 (Levene W = 5.34, p = .005; Bartlett chi-square(2) = 5.99, p = .050); SDs are 459 g (Adelie), 384 g (Chinstrap) and 504 g (Gentoo), and at least one species fails Shapiro-Wilk (smallest p = .032).
The three species differ in the spread of body mass, not just in average (the largest SD is about 1.3 times the smallest). Because one species departs from normality, Bartlett's borderline result is the one to distrust here, and Brown-Forsythe's, which does not need normality, is the one to report. A variance ratio of 1.7 is modest, but to compare the three means, read the Alexander-Govern test that the One-Way ANOVA card lists under Alternative Tests: it allows for unequal spreads (for two groups, Welch's t-test does the same).
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Is body mass equally variable across the three penguin species, or is one species much more spread out than the others?
- Explain the equal variances test in plain words.
- What does homogeneity of variance (homoscedasticity) mean?
Last reviewed November 16, 2026.
