MECHOWL QUALITY ANALYSIS AI
F-Test Calculator for Two Variances: Paste Your Excel Data (Ratio, p-Value, Confidence Interval)
Paste the measurements of two groups (two machines, two lots) to compare their spreads with the F-test for equality of variances. The variance ratio, the p-value and the confidence interval come with a chart and the working, and lead on to the choice of t-test.
Last updated
Your data is not sent. Everything is computed in your browser
Data
Paste two columns side by side from Excel (column names in the first row; the columns may have different numbers of rows). The long format (a value column and a group column) is read too. F is the variance of the first group ÷ the variance of the second.
Read 15 rows and 2 columns.
More settings (Unit, Chart title, Period, Stratum)
e.g. mm.
Empty: "F-test (comparing two variances)".
e.g. 1–31 Oct 2026. Written on the chart and the report.
Empty: all rows. A value: only the rows with that value.
Judgement rules
Decide the significance level and the alternative hypothesis before looking at the data. If you change them, write it in the report.
Two-sided (different) is the usual choice. Use one-sided only when the direction was fixed before looking at the data (e.g. does the new machine have a smaller spread?).
The default is a common guideline (see —).
Usually 0.05 (5 %). The confidence interval is given at 1 − α (95 % for 0.05). Decide it before looking at the data.
The default is a common guideline (see —).
Result
p-value 0.00099: Significant difference in variance (α = 0.05)
Result of the sample data
Significant difference in variance (α = 0.05)
A difference is called significant when the p-value (two-sided) is at most the significance level 0.05; here p = 0.00099 (ratio of variances). A test result does not show the size of the difference or its cause.
- p-value (two-sided)
- 0.00099
- Variance ratio F (Machine 1 ÷ Machine 2) F
- 0.1478
- 95 % confidence interval of the variance ratio
- 0.0496 to 0.4404
About the data
- The two-sided p-value has been checked to be the same as Excel's F.TEST(array1, array2).
How to read it
What the chart shows
- At the significance level 0.05, the variances of Machine 1 and Machine 2 differ (p = 0.00099).
- The ratio of the variances F is 0.1478 (ratio of the standard deviations 0.3845); its 95 % confidence interval is 0.0496 to 0.4404 (0.2228 to 0.6636 for the ratio of the standard deviations).
Common misreadings
- The F-test changes a lot when the data depart from a normal distribution (with outliers or skew it tends to be significant even when the spreads are the same). Look at a histogram or a normality check first.
- A small p-value does not mean a large difference. With much data, even a small difference is significant. Judge the size of the difference by the confidence interval and decide whether it matters in practice.
- Choosing the kind of t-test by the result of an F-test changes the overall significance level. Welch's t-test (the default) works whether the spreads are the same or not.
Next steps
- For the process with the larger spread, look into the 4M differences (machine, fixture, material, measurement method).
- The means of the two groups can be compared with the t-test ("Next tool" passes the same data).
Numbers
| p-value (two-sided) | 0.00099 |
|---|---|
| Variance ratio F (Machine 1 ÷ Machine 2) F | 0.1478 |
| Degrees of freedom | 14, 14 |
| 95 % confidence interval of the variance ratio | 0.0496 to 0.4404 |
| 95 % confidence interval of the standard deviation ratio σ₁/σ₂ | 0.2228 to 0.6636 |
| Standard deviation (Machine 1) | 0.00357 mm |
| Standard deviation (Machine 2) | 0.00927 mm |
| Sample size (Machine 1) | 15 |
| Sample size (Machine 2) | 15 |
| Critical values of F (95 %) | 0.3357, 2.9786 |
Calculation steps
- Variances
s² = Σ(x − x̄)² / (n − 1)Machine 1: n = 15, s² = 0.0000127; Machine 2: n = 15, s² = 0.0000860 - Variance ratio
F = s₁² / s₂², degrees of freedom (n₁ − 1, n₂ − 1)F = 0.147841, (14, 14) - p-value
p = 2 × min( P(F ≤ f), P(F ≥ f) )p = 0.00099 - 95 % confidence interval
F / F(α/2; ν₁, ν₂)upper to F / F(α/2; ν₁, ν₂)lowercritical values 0.3357, 2.9786 → 0.0496 to 0.4404 (the square roots for the ratio of the standard deviations)
Values by group
| Group | n | Mean | Standard deviation | Variance |
|---|---|---|---|---|
| Machine 1 | 15 | 10.0110 | 0.00357 | 0.0000127 |
| Machine 2 | 15 | 10.0090 | 0.00927 | 0.0000860 |
The results are reference values based on the data you entered and the formulas and criteria shown. They are not a quality guarantee or a pass/fail decision. The final decision rests with you.
References
- D. C. Montgomery, Introduction to Statistical Quality Control, 8th ed., 2019 · Wiley
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.9 F-Test for Equality of Two Variances · NIST · Open
- JIS Z 8101-2:2015 Statistics — Vocabulary and symbols — Part 2: Applied statistics (in Japanese) · Japanese Standards Association (JSA)
Standards are shown by number and title only.
F-test explained
The F-test for equality of variances is a hypothesis test that checks, with the F distribution, whether the ratio of two sample variances F = s₁²/s₂² is larger than chance explains. It is used to compare the spread of two machines or two lots, and when considering whether a t-test may assume equal variances. The F-test is very sensitive to departures from the normal distribution.
F-test by hand: the calculation step by step
- Before looking at the data, decide the question (different, or smaller in one direction) and the significance level α (usually 0.05).
- For each group, compute the sample size n and the sample variance s².
- Compute F = s₁² / s₂² and get the p-value from the F distribution with (n₁ − 1, n₂ − 1) degrees of freedom (for a two-sided test, twice the smaller tail).
- Compute the confidence interval of the variance ratio (F divided by the upper and lower points of the F distribution), and see whether it contains 1 (the same spread) and how large the ratio is.
Worked examples
Example 1: Two machines, four and three parts
Machine 1 Machine 2 10 10 12 11 14 12 16
Machine 1: variance = (9 + 1 + 1 + 9)/3 = 6.666667. Machine 2: variance = (1 + 0 + 1)/2 = 1. F = 6.666667, degrees of freedom (3, 2). P(F ≥ 6.666667) = 0.133216, two-sided p = 2 × 0.133216 = 0.266432 (not significant).
Example 2: Two values each (degrees of freedom 1 and 1)
A B 1 1 3 2
Variances 2 and 0.5, F = 4, degrees of freedom (1, 1). P(F ≥ 4) = 1 − (2/π) arctan(√4) = 1 − 0.704833 = 0.295167, two-sided p = 2 × 0.295167 = 0.590334 (the F distribution with (1, 1) degrees of freedom).
Example 3: One-sided: does the new machine have a smaller spread?
New Old 10.01 10.03 10.02 9.97 10.00 10.05 10.01 9.95 10.02 10.00
Settings: Alternative hypothesis = One-sided (the first is smaller)
New: mean 10.012, variance 0.00028/4 = 0.00007. Old: mean 10.000, variance 0.0068/4 = 0.0017. F = 0.00007 / 0.0017 = 0.041176, degrees of freedom (4, 4). One-sided p (new is smaller) = P(F ≤ 0.041176) = 0.004568 (significant).
Example 4: All values the same in one group (variance 0)
A B 5 1 5 2 5 3
The variance of A is 0, so the ratio is 0 (and could not be divided if B were 0). The page says the F-test cannot be used.
Example 5: One value in a group
A B 5 1 6 7
A group of one value has no variance (0 degrees of freedom). The page says at least two values are needed.
Example 6: Significance level out of range (input error)
A B 1 2 2 4 3 5
Settings: Significance level α = 0
A significance level of 0 is not possible. The page asks for a value greater than 0 and less than 0.5.
Common mistakes
- Using it on data that are not normal (outliers, skew): the F-test then often comes out significant even when the spreads are the same. Look at a histogram or a normality check first.
- Concluding "the spreads are equal" because the F-test was not significant (with little data a difference cannot be found; look at the width of the confidence interval).
- Switching the kind of t-test by the F-test result every time (the two-stage procedure changes the significance level; when in doubt, use Welch's t-test).
FAQ
- Which group should be in the numerator?
- In a two-sided test the p-value is the same either way (the ratio and the confidence interval become their reciprocals). This page divides the first column by the second. For a one-sided test, choose the direction (the first is greater or smaller) in the settings.
- Does it give the same result as Excel's F.TEST?
- Yes. The two-sided p-value has been checked against Excel's F.TEST(array1, array2) (values computed in Microsoft Excel 16 agree to 15 digits). F.TEST returns the two-sided probability only; in Excel a one-sided p-value is found separately, for example with FDIST.
- Can I use this result to decide whether the t-test assumes equal variances?
- It is a guide, but choosing the t-test by the result of an F-test changes the overall significance level. The t-test page uses Welch's t-test (equal variances not assumed) by default, which works whether the spreads are the same or not.
- Is my data sent anywhere?
- No. The calculations and the chart are made in your browser only.
Scope
The F-test of the ratio of two variances from raw data (two-sided or one-sided), with the confidence intervals of the variance ratio and of the standard deviation ratio. The data are assumed to be normally distributed.
Not covered by this tool:
- Comparing the spreads of three or more groups (Bartlett's and Levene's tests).
- Comparisons robust to non-normal data (such as Levene's test).
- Calculation from means, standard deviations and sample sizes alone.
Excel template: F-test
A template with the column names and sample values only (no formulas). Enter your values, then copy the range and paste it into the box above.