Analyze · Assumptions

Two Variances F-Test

Compares the variances of a continuous variable in two independent groups with the F-test (the ratio of the two sample variances), with a confidence interval for the ratio of the population variances.

In the menus Analyze › Assumptions › Two Variances F-Test

Also searched as f test var test two variances 2 variances two sample variance test f test for two variances variance ratio test ratio of variances

When to use it

You want to compare the spread of one measurement in two groups (precision of two machines, consistency of two methods) and the data in each group are close to normal. For data that may not be normal, use the Equal Variances Test (Brown-Forsythe or Levene), which is robust.

When not to: Skewed or heavy-tailed data, or unsure about normality (use the Brown-Forsythe or Levene option of the Equal Variances Test); three or more groups (use the Equal Variances Test); as a gate for choosing the pooled t-test (use Welch's t-test directly).

Step by step

  1. Open it from the menu

    Click Analyze in the menu bar; under Assumptions choose Two Variances F-Test.

  2. Fill in the form

    Choose the columns: What you measured, The two groups. The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Alternative, Hypothesized variance ratio, Confidence level. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Two Variances F-Test form
What you measured Response requiredOne numeric column. The continuous variable whose spread you are comparing
The two groups Group Var requiredOne categorical or ordered categorical column. The grouping column with exactly two levels (group 1 is the first level in sorted order)
AlternativeDirection: the variance ratio (group 1 over group 2) differs from, is less than, or is greater than the hypothesized ratio Default: two-sided.
Hypothesized variance ratioThe ratio σ₁² / σ₂² under H₀ (1 = equal variances) Default: 1.
Confidence levelConfidence level of the interval for the variance ratio; the test's significance level is α = 1 − the confidence level Default: 0.95.

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.

A worked example

Penguin body mass by sex (female 165, male 168), ratio 1, two-sided, 95%.

Result: F(164, 167) = 0.7154, p = 0.0320, 95% CI for σ²(female)/σ²(male) [0.5270, 0.9714]. Both groups fail Shapiro-Wilk; Brown-Forsythe W = 6.06, p = 0.014.

Male body mass is more spread out in this sample (its variance is 1.40 times the female variance); because body mass is not normal within each sex, the Brown-Forsythe result is the one to report, and it also finds a difference in spread (p = 0.014).

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 the body mass of male penguins more variable than that of female penguins?
  • Explain the f-test for two variances in plain words.

Last reviewed November 16, 2026.

Report an unclear step