F Test Formula: Variance Ratio, ANOVA, Regression and Examples

The F Test Formula is F = Variance 1 / Variance 2. It is used to compare variances, test differences between group means and check overall model significance in regression.
In most two-sample variance questions, the larger sample variance is placed in the numerator so that the calculated F value is greater than or equal to 1.

The F Test Formula helps students compare variability between two or more datasets. In statistics, the F-test is used in different contexts, such as checking whether two samples have equal variances, comparing three or more group means through ANOVA, or testing whether a regression model is statistically useful.

In Class 11, Class 12, statistics, business maths and research-methods topics, the F-test appears in hypothesis testing, variance comparison, ANOVA tables and regression analysis. Students may be asked to calculate the F statistic, identify degrees of freedom, compare the result with the F critical value and decide whether to reject the null hypothesis.

Key Takeaways

  • F Test Formula: F = Variance 1 / Variance 2.
  • Two Sample F Test Formula: F = s₁² / s₂².
  • ANOVA F Test Formula: F = MSB / MSW.
  • Regression F Test Formula: F = MSM / MSE.
  • Degrees of Freedom: df₁ = n₁ − 1 and df₂ = n₂ − 1 for a two-sample F-test.
  • Decision Rule: If calculated F > F critical value, reject the null hypothesis.

F Test Formula Structure 2026

F-Test Type Formula Main Use
Basic F statistic formula F = Variance 1 / Variance 2 Compares two variances
Two sample F test formula F = s₁² / s₂² Tests equality of two sample variances
ANOVA F test formula F = MSB / MSW Compares means of three or more groups
Regression F test formula F = MSM / MSE Tests overall regression model significance
Degrees of freedom df₁ = n₁ − 1, df₂ = n₂ − 1 Used to find F critical value

What is F Test Formula?

The F Test Formula calculates an F statistic by taking the ratio of two variances or mean squares.

F Test Formula infographic explaining variance ratio, two-sample F-test, ANOVA F-test, regression F-test and decision rule.

Formula:

F = Variance 1 / Variance 2

In a two-sample F-test:

F = s₁² / s₂²

Where:

  • F = F statistic
  • s₁² = variance of the first sample
  • s₂² = variance of the second sample
  • s² = sample variance

In many school-level and introductory statistics questions, the larger variance is placed in the numerator. This gives an F value greater than or equal to 1.

F Test

An F test is a statistical test that uses the F distribution. It is mainly used to compare variances or to test whether group differences are statistically significant.

Common uses of F test:

  • Comparing variances of two samples
  • Testing equality of population variances
  • Comparing means of three or more groups using ANOVA
  • Testing overall significance of a regression model
  • Checking whether explained variation is large compared with unexplained variation

The F-test is based on variance, so it is useful when a question focuses on spread, group variation or model fit.

F Statistic Formula

The F statistic formula is the ratio of two variance-based quantities.

Basic formula:

F = Variance 1 / Variance 2

For two samples:

F = s₁² / s₂²

For ANOVA:

F = MSB / MSW

For regression:

F = MSM / MSE

The calculated F statistic is compared with an F critical value from the F distribution table. The comparison helps decide whether the result is statistically significant.

F Value Formula

The F value formula depends on the type of F-test being used.

For variance comparison:

F value = Larger sample variance / Smaller sample variance

or

F = s₁² / s₂²

For ANOVA:

F = Mean Square Between / Mean Square Within

or

F = MSB / MSW

For regression:

F = Mean Square Model / Mean Square Error

or

F = MSM / MSE

The F value is always non-negative because variances and mean squares cannot be negative.

Two Sample F Test Formula

The two sample F test formula is used to compare the variances of two independent samples. It checks whether the two populations may have equal variances.

Formula:

F = s₁² / s₂²

Where:

  • s₁² = variance of the first sample
  • s₂² = variance of the second sample
  • n₁ = size of the first sample
  • n₂ = size of the second sample

Degrees of freedom:

df₁ = n₁ − 1

df₂ = n₂ − 1

If the larger variance is placed in the numerator, then:

F = Larger variance / Smaller variance

This gives F ≥ 1 and makes comparison easier in many introductory problems.

Variance Ratio Formula

The variance ratio formula is another way to describe the F-test. Since the F statistic is a ratio of variances, it shows how much larger one variance is compared with another.

Formula:

F = Variance of sample 1 / Variance of sample 2

or

F = s₁² / s₂²

Example:

If sample variance 1 = 64 and sample variance 2 = 16, then:

F = 64 / 16

F = 4

This means the first sample variance is 4 times the second sample variance.

Degrees of Freedom F Test

Degrees of freedom are needed to use the F distribution table. For a two-sample F-test, each variance has its own degrees of freedom.

Formula:

df₁ = n₁ − 1

df₂ = n₂ − 1

Where:

  • df₁ = numerator degrees of freedom
  • df₂ = denominator degrees of freedom
  • n₁ = sample size of numerator sample
  • n₂ = sample size of denominator sample

Example:

If n₁ = 12 and n₂ = 10:

df₁ = 12 − 1

df₁ = 11

df₂ = 10 − 1

df₂ = 9

So, the degrees of freedom are 11 and 9.

ANOVA F Test Formula

The ANOVA F test formula is used to compare the means of three or more independent groups. ANOVA stands for Analysis of Variance.

Formula:

F = MSB / MSW

Where:

  • MSB = Mean Square Between groups
  • MSW = Mean Square Within groups
  • F = ANOVA test statistic

MSB measures variation between group means.

MSW measures variation within the groups.

If MSB is much larger than MSW, the group means may be significantly different.

Mean Square Between Formula

Mean Square Between, or MSB, measures variation between group means.

Formula:

MSB = SSB / df between

Where:

  • MSB = Mean Square Between
  • SSB = Sum of Squares Between groups
  • df between = k − 1
  • k = number of groups

This value is used as the numerator in the ANOVA F test formula.

ANOVA formula:

F = MSB / MSW

Mean Square Within Formula

Mean Square Within, or MSW, measures variation inside the groups.

Formula:

MSW = SSW / df within

Where:

  • MSW = Mean Square Within
  • SSW = Sum of Squares Within groups
  • df within = N − k
  • N = total number of observations
  • k = number of groups

This value is used as the denominator in the ANOVA F test formula.

Regression F Test Formula

The regression F test formula is used to check whether the overall regression model is statistically significant. It tests whether the independent variables together explain a meaningful amount of variation in the dependent variable.

Formula:

F = MSM / MSE

Expanded form:

F = Mean Square of the Model / Mean Square of the Error

Where:

  • MSM = Mean Square Model
  • MSE = Mean Square Error
  • F = regression F statistic

A larger F value suggests that the regression model explains more variation than the error term.

F Test of Overall Significance

The F test of overall significance is used in regression analysis. It checks whether a regression model gives a better fit than a model with no independent variables.

Formula:

F = MSM / MSE

Where:

  • MSM = Mean Square of the Model
  • MSE = Mean Square of the Error

The null hypothesis usually states that the regression model has no overall significance.

Common null hypothesis:

All regression coefficients are equal to zero.

Common alternative hypothesis:

At least one regression coefficient is not equal to zero.

If calculated F > F critical value, the regression model is considered statistically significant.

F Distribution Formula

The F distribution is used to judge whether the calculated F statistic is large enough to be significant. It depends on two degrees of freedom values.

The F-test uses:

df₁ = numerator degrees of freedom

df₂ = denominator degrees of freedom

The F distribution is right-skewed and contains only positive values because variance ratios are always zero or positive.

The F critical value is selected using:

  • Significance level, such as 0.05
  • Numerator degrees of freedom
  • Denominator degrees of freedom

F Critical Value

The F critical value is the table value used to decide whether the calculated F statistic is significant.

Decision rule:

If calculated F > F critical value, reject the null hypothesis.

If calculated F ≤ F critical value, fail to reject the null hypothesis.

The F critical value depends on:

  • Significance level, such as 0.05
  • Numerator degrees of freedom
  • Denominator degrees of freedom
  • Type of F-test

Example:

If F calculated = 5.2 and F critical = 3.8:

Since 5.2 > 3.8, reject the null hypothesis.

Hypothesis Testing Formula in F Test

The F-test is used in hypothesis testing. The formula depends on the test type, but the decision process is similar.

Basic steps:

  1. Write the null hypothesis.
  2. Write the alternative hypothesis.
  3. Calculate the F statistic.
  4. Find degrees of freedom.
  5. Compare F calculated with F critical.
  6. Make the decision.

Common decision rule:

If F calculated > F critical, reject H₀.

If F calculated ≤ F critical, fail to reject H₀.

For two-sample variance testing:

H₀: σ₁² = σ₂²

H₁: σ₁² ≠ σ₂²

Where:

  • H₀ = null hypothesis
  • H₁ = alternative hypothesis
  • σ₁² and σ₂² = population variances

Difference Between F Test and T Test

F test and t test are both used in statistics, but they are used for different purposes.

Basis F Test T Test
Main use Compares variances or model variation Compares means
Test statistic F statistic t statistic
Distribution F distribution t distribution
Values Always non-negative Can be positive or negative
Common use ANOVA, variance testing, regression Two-group mean comparison
Formula type Ratio of variances Difference of means relative to standard error

F-test is mainly variance-based, while t-test is mainly mean-based.

Difference Between F Test and ANOVA

ANOVA uses the F-test. The F-test is the broader statistical idea, while ANOVA is one specific application.

Basis F Test ANOVA
Meaning Statistical test using F distribution Analysis of Variance
Main formula Ratio of variances F = MSB / MSW
Use Variance, regression, ANOVA Group mean comparison
Groups Can compare two variances or models Usually compares three or more means
Output F statistic ANOVA table and F statistic

ANOVA calculates an F statistic to decide whether group means are significantly different.

How to Use F Test Formula

To use the F Test Formula, first identify the type of statistical problem.

Case 1: Comparing two variances

Use:

F = s₁² / s₂²

Degrees of freedom:

df₁ = n₁ − 1

df₂ = n₂ − 1

Case 2: Comparing three or more means with ANOVA

Use:

F = MSB / MSW

Where:

MSB = Mean Square Between groups

MSW = Mean Square Within groups

Case 3: Testing regression model significance

Use:

F = MSM / MSE

Where:

MSM = Mean Square Model

MSE = Mean Square Error

After calculating F, compare it with the F critical value from the F distribution table.

Solved Examples on F Test Formula

F Test Formula questions usually test variance ratio, degrees of freedom, ANOVA F statistic or regression model significance.

Example 1: Find F statistic from two sample variances

Given:

s₁² = 36

s₂² = 12

Formula:

F = s₁² / s₂²

Substitute:

F = 36 / 12

F = 3

Answer:

The F statistic is 3.

Example 2: Find F statistic using larger variance in numerator

Given:

Sample variance 1 = 25

Sample variance 2 = 100

Place the larger variance in the numerator:

F = 100 / 25

F = 4

Answer:

The F value is 4.

Example 3: Find degrees of freedom for two-sample F-test

Given:

n₁ = 15

n₂ = 11

Formula:

df₁ = n₁ − 1

df₂ = n₂ − 1

Substitute:

df₁ = 15 − 1

df₁ = 14

df₂ = 11 − 1

df₂ = 10

Answer:

The degrees of freedom are 14 and 10.

Example 4: Find ANOVA F statistic

Given:

MSB = 48

MSW = 12

Formula:

F = MSB / MSW

Substitute:

F = 48 / 12

F = 4

Answer:

The ANOVA F statistic is 4.

Example 5: Find regression F statistic

Given:

MSM = 90

MSE = 15

Formula:

F = MSM / MSE

Substitute:

F = 90 / 15

F = 6

Answer:

The regression F statistic is 6.

Example 6: Make a decision using F critical value

Given:

F calculated = 5.5

F critical = 4.2

Decision rule:

If F calculated > F critical, reject H₀.

Since:

5.5 > 4.2

Answer:

Reject the null hypothesis.

Common Mistakes in F Test Formula

Many F Test Formula mistakes happen when students confuse the two-sample F-test with ANOVA or forget to use degrees of freedom.

Important checks:

  • Use F = s₁² / s₂² for two-sample variance comparison.
  • Use F = MSB / MSW for ANOVA.
  • Use F = MSM / MSE for regression.
  • Place the larger variance in the numerator when the question asks for F ≥ 1.
  • Use df₁ = n₁ − 1 and df₂ = n₂ − 1 in two-sample F-test.
  • Compare calculated F with F critical value.
  • Use the correct significance level, such as 0.05.
  • Remember that F values are non-negative.

For ANOVA and regression questions, use mean squares rather than raw variances.

Applications of F Test Formula

The F Test Formula is used in statistics, research, business analytics, economics, psychology, biology and regression analysis. It helps compare variation and test statistical significance.

Main applications:

  • It compares variances of two samples.
  • It tests whether two populations have equal variances.
  • It is used in ANOVA to compare three or more group means.
  • It checks overall significance of regression models.
  • It supports hypothesis testing in research.
  • It helps analyse experimental data.
  • It is used in quality control and business statistics.
  • It helps decide whether observed variation is statistically meaningful.

FAQs (Frequently Asked Questions)

The basic F Test Formula is F = Variance 1 / Variance 2. It calculates an F statistic as a ratio of two variances.

The two sample F test formula is F = s₁² / s₂², where s₁² and s₂² are the sample variances.

The ANOVA F test formula is F = MSB / MSW, where MSB is Mean Square Between groups and MSW is Mean Square Within groups.

The regression F test formula is F = MSM / MSE, where MSM is Mean Square Model and MSE is Mean Square Error.

Reject the null hypothesis when the calculated F value is greater than the F critical value. For example, if F calculated = 5.5 and F critical = 4.2, reject H₀.