Post · 4 min read· pp. 231–233

1.3.5.9. F-Test for Equality of Two Variances

1. Exploratory Data Analysis 1.3. EDA Techniques 1.3.5. Quantitative Techniques
Purpose: Test if variances from two populations are equalAn F-test (Snedecor and Cochran, 1983) is used to test if the variances of two populations are equal. This test can be a two-tailed test or a one-tailed test. The two-tailed version tests against the alternative that the variances are not equal. The one-tailed version only tests in one direction, that is the variance from the first population is either greater than or less than (but not both) the second population variance. The choice is determined by the problem. For example, if we are testing a new process, we may only be interested in knowing if the new process is less variable than the old process.
DefinitionThe F hypothesis test is defined as:
F Test ExampleThe following F-test was generated for the JAHANMI2.DAT data set. The data set contains 480 ceramic strength measurements for two batches of material. The summary statistics for each batch are shown below. ```text
BATCH 1:
NUMBER OF OBSERVATIONS = 240
MEAN = 688.9987
STANDARD DEVIATION = 65.54909

BATCH 2: NUMBER OF OBSERVATIONS = 240 MEAN = 611.1559 STANDARD DEVIATION = 61.85425 We are testing the null hypothesis that the variances for the two batches are equal. text H0: σ12 = σ22 Ha: σ12 ≠ σ22

Test statistic: F = 1.123037 Numerator degrees of freedom: N1 - 1 = 239 Denominator degrees of freedom: N2 - 1 = 239 Significance level: α = 0.05 Critical values: F(1-α/2,N1-1,N2-1) = 0.7756 F(α/2,N1-1,N2-1) = 1.2894 Rejection region: Reject H0 if F < 0.7756 or F > 1.2894

The
| *Questions* | The *F*-test can be used to answer the following questions:  1. Do two samples come from populations with equal    variancess? 2. Does a new process, treatment, or test    reduce the variability of the current process? |
| *Related Techniques* | [Quantile-Quantile Plot](https://www.itl.nist.gov/div898/handbook/eda/section3/qqplot.htm)  [Bihistogram](https://www.itl.nist.gov/div898/handbook/eda/section3/bihistog.htm)  [Chi-Square Test](/u/68b94f1c808e9d23)  [Bartlett's Test](/u/6357b2ead4af48f7)  [Levene Test](/u/19056b0fc6da9528) |
| *Case Study* | [Ceramic strength](/u/97bf426f4364afe3) data. |
| *Software* | The *F*-test for equality of two variances is available in many general purpose statistical software programs. Both [Dataplot code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda359.dp) and [R code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda359.r) can be used to generate the analyses in this section. These scripts use the [AUTO83B.DAT](https://www.itl.nist.gov/div898/handbook/datasets/AUTO83B.DAT) data file. |