F-Distribution Calculator

Calculate p-value from F-statistic.

Please enter a valid F-statistic (must be >= 0)

Examples:

Enter F value and degrees of freedom

What Is the F-Distribution?

The F-distribution arises when comparing two variances—it's the ratio of two chi-square distributions, each divided by their degrees of freedom.

Parameters:

  • df₁ = numerator degrees of freedom
  • df₂ = denominator degrees of freedom

Key uses:

  • ANOVA (comparing means across groups)
  • Testing equality of variances
  • Regression model significance

From F-Statistic to P-Value

This calculator converts an F-statistic to a p-value:

Example: F = 4.25, df₁ = 3, df₂ = 20 P-value = P(F > 4.25) = 0.018

Since p < 0.05, the result is statistically significant.

Applications

ANOVA (Analysis of Variance)

"Do three or more groups have different means?"

F = (Between-group variance) / (Within-group variance) df₁ = groups - 1 df₂ = total observations - groups

Large F suggests group means differ.

Regression Model Testing

"Is the regression model significant overall?"

F = (Model mean square) / (Error mean square) df₁ = number of predictors df₂ = n - predictors - 1

Comparing Two Variances

"Do two populations have equal variance?"

F=s12s22F = \frac{s_1^2}{s_2^2} (larger variance in numerator)

df1=n1−1,df2=n2−1df_1 = n_1 - 1, \quad df_2 = n_2 - 1

Nested Model Comparison

"Does adding variables significantly improve the model?"

F = [(RSS_reduced - RSS_full) / q] / [RSS_full / (n - k - 1)]

Where q = number of added predictors.

Distribution Properties

The F-distribution:

  • Always non-negative (ratio of positive quantities)
  • Right-skewed
  • Mean ≈ df₂/(df₂ - 2) for df₂ > 2
  • Becomes less skewed as df increase

Shape by Degrees of Freedom

df₁, df₂Shape
Small, SmallHighly right-skewed
Large, SmallStill right-skewed
Small, LargeModerate skew
Large, LargeMore symmetric

Critical Values

For α = 0.05:

df₁df₂ = 10df₂ = 20df₂ = 30
14.964.354.17
33.713.102.92
53.332.712.53
102.982.352.16

The Inverse F Calculator provides critical values for any df combination.

Historical Development

Ronald Fisher (1890-1962) developed the F-distribution in the 1920s as part of his work on ANOVA.

The distribution was named "F" in Fisher's honor by George Snedecor, who popularized ANOVA methods in his influential textbook (1937).

Fisher's insight was recognizing that variance ratios follow a specific distribution under the null hypothesis, enabling formal testing of group differences.

Mathematical Definition

If U∼χ2(df1)U \sim \chi^2(df_1) and V∼χ2(df2)V \sim \chi^2(df_2) are independent:

F=U/df1V/df2F = \frac{U/df_1}{V/df_2}

This ratio follows F(df1,df2)F(df_1, df_2).

Relationship to Other Distributions

Chi-square: F is a ratio of chi-squares

T-distribution: T² ~ F(1, df)

If t follows t(df), then t² follows F(1, df)

Beta distribution: F relates to the beta distribution through transformation

ANOVA in Detail

One-Way ANOVA

Comparing means of k groups:

F=MSBMSWF = \frac{MSB}{MSW}

Where:

  • MSBMSB = Between-group mean square = SSB/(k−1)SSB / (k-1)
  • MSWMSW = Within-group mean square = SSW/(n−k)SSW / (n-k)
  • df1=k−1df_1 = k - 1
  • df2=n−kdf_2 = n - k

Two-Way ANOVA

Testing two factors and their interaction:

  • F for Factor A: MSA / MSError
  • F for Factor B: MSB / MSError
  • F for Interaction: MSAB / MSError

Each has its own df₁, with common df₂ = error df.

Assumptions

For ANOVA:

  1. Independence: Observations are independent
  2. Normality: Populations are normally distributed
  3. Homogeneity of variance: Equal variances across groups

ANOVA is robust to moderate violations of normality but sensitive to variance heterogeneity, especially with unequal group sizes.

For Variance Ratio Test:

  1. Independence: Samples are independent
  2. Normality: Both populations are normal

The F-test for variances is sensitive to non-normality.

One-Tailed vs. Two-Tailed

ANOVA (one-tailed):

Only large F values indicate group differences. P-value = P(F > observed F)

Variance Comparison (often two-tailed):

Test whether variances differ in either direction. P-value = 2 × min(P(F > f), P(F < f))

Or use: P(F > max(s₁²/s₂², s₂²/s₁²))

Interpreting F-Statistics

Large F indicates:

  • Group means differ substantially (ANOVA)
  • Variances are unequal (variance test)
  • Model explains significant variation (regression)

F near 1 suggests:

  • Group means are similar
  • Variances are similar
  • Model doesn't explain much variation

Effect Size with F

F alone doesn't measure effect size. Report:

Eta-squared (η²): SSB / SST (proportion of variance explained)

Omega-squared (ω²): Adjusted version, less biased

Partial eta-squared: For factorial designs

Related Calculations

Summary

The F-distribution—a ratio of two chi-square distributions—is the foundation of analysis of variance and tests comparing variances. With two degrees of freedom parameters (numerator and denominator), F-statistics test whether group means differ, whether a regression model is significant, or whether two populations have equal variance. Understanding the F-distribution enables proper interpretation of ANOVA results and variance comparisons across experimental and observational studies.