F-Statistic Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the standard deviation and size of two samples to test whether their variances differ.
Result
F statistic (s₁² ÷ s₂²)
Numerator degrees of freedom (n₁ − 1)
- Denominator degrees of freedom (n₂ − 1)
- Right-tailed p-value P(F ≥ f)
- Two-tailed p-value
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Sample 1 standard deviation (s₁): enter 0 or more.
- Sample 1 size (n₁): enter 2 or more.
- Sample 2 standard deviation (s₂): enter 0 or more.
- Sample 2 size (n₂): enter 2 or more.
- Read the result: F statistic (s₁² ÷ s₂²); the panel also shows Numerator degrees of freedom (n₁ − 1), Denominator degrees of freedom (n₂ − 1), Right-tailed p-value P(F ≥ f) and Two-tailed p-value.
How this calculator works
F = s₁² ÷ s₂², the ratio of the two sample variances, with n₁ − 1 and n₂ − 1 degrees of freedom. Under the null hypothesis of equal variances, F follows Snedecor's F distribution.
P(F ≥ f) = I(d₂ ÷ (d₂ + d₁ f); d₂/2, d₁/2), the regularized incomplete beta function. The two-tailed p-value doubles the smaller tail.
The F-test for variances assumes both samples come from normal distributions; it is sensitive to non-normal data.
The formula
| Symbol | Meaning |
|---|---|
| Sample 1 standard deviation (s₁) | |
| Sample 2 standard deviation (s₂) | |
| F statistic (s₁² ÷ s₂²) |
Worked example
| Sample 1 standard deviation (s₁) | 6.2 |
|---|---|
| Sample 1 size (n₁) | 21 |
| Sample 2 standard deviation (s₂) | 4.5 |
| Sample 2 size (n₂) | 25 |
| Numerator degrees of freedom (n₁ − 1) | 20 |
|---|---|
| Denominator degrees of freedom (n₂ − 1) | 24 |
| Right-tailed p-value P(F ≥ f) | 0.0675 |
| Two-tailed p-value | 0.135 |
F statistic (s₁² ÷ s₂²) 1.8983
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What does an F statistic of 1 mean?
The two sample variances are equal, the value expected when the null hypothesis holds.
Is the F statistic used in ANOVA the same?
It follows the same F distribution, but in ANOVA it is the ratio of the between-group to the within-group mean square.