An F-test is a statistical test that compares variances. It is used to determine if the variances of two samples, or if the ratios of variances among multiple samples, are significantly different. The test calculates a statistic, represented by the random variable F, and checks if it follows an F-distribution. This check is valid if the null hypothesis is true and standard assumptions about the errors (ε) in the data hold. F-tests are frequently used to compare different statistical models and find the one that best describes the population the data came from. When models are created using the least squares method, the resulting F-tests are often called "exact" F-tests. The F-statistic was developed by Ronald Fisher in the 1920s as the variance ratio and was later named in his honor by George W. Snedecor.
Common examples Common examples of the use of F-tests include the study of the following cases
The hypothesis that the means of a given set of normally distributed populations, all having the same standard deviation, are equal. This is perhaps the best-known F-test, and plays an important role in the analysis of variance (ANOVA). F-test of analysis of variance (ANOVA) follows three assumptions Normality (statistics) Homogeneity of variance Independence of errors and random sampling The hypothesis that a proposed regression model fits the data well. See Lack-of-fit sum of squares. The hypothesis that a data set in a regression analysis follows the simpler of two proposed linear models that are nested within each other. Multiple-comparison testing is conducted using needed data in already completed F-test, if the F-test leads to rejection of the null hypothesis and the factor under study has an impact on the dependent variable. "a priori comparisons"/ "planned comparisons"- a particular set of comparisons "pairwise comparisons"-all possible comparisons i.e. Fisher's least significant difference (LSD) test, Tukey's honestly significant difference (HSD) test, Newman Keuls test, Ducan's test "a posteriori comparisons"/ "post hoc comparisons"/ "exploratory comparisons"- choose comparisons after examining the data i.e. Scheffé's method
F-test of the equality of two variances
The F-test is sensitive to non-normality. In the analysis of variance (ANOVA), alternative tests include Levene's test, Bartlett's test, and the Brown–Forsythe test. However, when any of these tests are conducted to test the underlying assumption of homoscedasticity (i.e. homogeneity of variance), as a preliminary step to testing for mean effects, there is an increase in the experiment-wise Type I error rate.
Formula and calculation Most F-tests arise by considering a decomposition of the variability in a collection of data in terms of sums of squares. The test statistic in an F-test is the ratio of two scaled sums of squares reflecting different sources of variability. These sums of squares are constructed so that the statistic tends to be greater when the null hypothesis is not true. In order for the statistic to follow the F-distribution under the null hypothesis, the sums of squares should be statistically independent, and each should follow a scaled χ²-distribution. The latter condition is guaranteed if the data values are independent and normally distributed with a common variance.
One-way analysis of variance The formula for the one-way ANOVA F-test statistic is
F=explained varianceunexplained variance, or
F=between-group variabilitywithin-group variability. The "explained variance", or "between-group variability" is
∑i=1Kni(Y¯i⋅−Y¯)2/(K−1) where Y¯i⋅ denotes the sample mean in the i-th group, ni is the number of observations in the i-th group, Y¯ denotes the overall mean of the data, and K denotes the number of groups. The "unexplained variance", or "within-group variability" is
∑i=1K∑j=1ni(Yij−Y¯i⋅)2/(N−K), where Yij is the jth observation in the ith out of K groups and N is the overall sample size. This F-statistic follows the F-distribution with degrees of freedom d1=K−1 and d2=N−K under the null hypothesis. The statistic will be large if the between-group variability is large relative to the within-group variability, which is unlikely to happen if the population means of the groups all have the same value.
The result of the F-test can be determined by comparing calculated F value and critical F value with specific significance level (e.g., 5%). The F table serves as a reference guide containing critical F values for the distribution of the F-statistic under the assumption of a true null hypothesis. It is designed to help determine the threshold beyond which the F statistic is expected to exceed a controlled percentage of the time (e.g., 5%) when the null hypothesis is accurate. To locate the critical F value in the F table, one needs to utilize the respective degrees of freedom. This involves identifying the appropriate row and column in the F table that corresponds to the significance level being tested (e.g., 5%). How to use critical F values: If the F statistic < the critical F value
Fail to reject null hypothesis Reject alternative hypothesis There is no significant differences among sample averages The observed differences among sample averages could be reasonably caused by random chance itself The result is not statistically significant If the F statistic > the critical F value
Accept alternative hypothesis Reject null hypothesis There is significant differences among sample averages The observed differences among sample averages could not be reasonably caused by random chance itself The result is statistically significant Note that when there are only two groups for the one-way ANOVA F-test, F=t2 where t is the Student's t statistic.
Advantages Multi-group comparison efficiency: facilitating simultaneous comparison of multiple groups, enhancing efficiency particularly in situations involving more than two groups. Clarity in variance comparison: offering a straightforward interpretation of variance differences among groups, contributing to a clear understanding of the observed data patterns. Versatility across disciplines: demonstrating broad applicability across diverse fields, including social sciences, natural sciences, and engineering.
… excerpt ends here. Continue reading the full article.



