Skip to content Skip to navigation

Connexions

You are here: Home » Content » F Distribution and ANOVA: The F Distribution And The F Ratio

Navigation

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

F Distribution and ANOVA: The F Distribution And The F Ratio

Module by: Susan Dean, Barbara Illowsky, Ph.D.. E-mail the authors

Summary: This module describes how to calculate the F Ratio and F Distribution based on the hypothesis test for the ANOVA.

Note: You are viewing an old version of this document. The latest version is available here.

The distribution used for the hypothesis test is a new one. It is called the F distribution, named after Sir Ronald Fisher, an English statistician. The F statistic is a ratio (a fraction). There are two sets of degrees of freedom; one for the numerator and one for the denominator.

For example, if F F follows an F F distribution and the degrees of freedom for the numerator are 4 and the degrees of freedom for the denominator are 10, then FF ~ F 4 , 10 F 4 , 10 .

To calculate the F F ratio, two estimates of the variance are made.

  1. Variance between samples: An estimate of σ 2 σ 2 that is the variance of the sample means. If the samples are different sizes, the variance between samples is weighted to account for the different sample sizes. The variance is also called variation due to treatment or explained variation.
  2. Variance within samples: An estimate of σ 2 σ 2 that is the average of the sample variances (also known as a pooled variance). When the sample sizes are different, the variance within samples is weighted. The variance is also called the variation due to error or unexplained variation.
  • SS between = SS between = the sum of squares that represents the variation among the different samples.
  • SS within = SS within = the sum of squares that represents the variation within samples that is due to chance.

To find a "sum of squares" means to add together squared quantities which, in some cases, may be weighted. We used sum of squares to calculate the sample variance and the sample standard deviation in Descriptive Statistics.

MSMS means "mean square." MS between MS between is the variance between groups and MS within MS within is the variance within groups.

Calculation of Sum of Squares and Mean Square

  • kk size 12{k} {} = the number of different groups
  • njnj size 12{n rSub { size 8{j} } } {} = the size of the jthjth size 12{ ital "jth"} {} group
  • sjsj size 12{s rSub { size 8{j} } } {}= the sum of the values in the jthjth size 12{ ital "jth"} {} group
  • NN size 12{N} {} = total number of all the values combined. (total sample size: njnj size 12{ Sum {n rSub { size 8{j} } } } {})
  • xx = one value: x=sjx=sj size 12{ Sum {x} = Sum {s rSub { size 8{j} } } } {}
  • Sum of squares of all values from every group combined: x2x2 size 12{ Sum {x rSup { size 8{2} } } ={}} {}
  • Between group variability: SS total = x 2 x 2 N SS total = x 2 x 2 N size 12{ ital "SS" rSub { size 8{ ital "total"} } = Sum {x rSup { size 8{2} } } - { { left ( Sum {x} right ) rSup { size 8{2} } } over {N} } } {}
  • Total sum of squares: x 2 ( x ) 2 N x 2 ( x ) 2 N size 12{ Sum {x rSup { size 8{2} } } - { { \( Sum {x} \) rSup { size 8{2} } } over {N} } } {}
  • Explained variation- sum of squares representing variation among the different samples SS between = [ ( sj ) 2 n j ] ( s j ) 2 N SS between = [ ( sj ) 2 n j ] ( s j ) 2 N size 12{ ital "SS" rSub { size 8{ ital "between"} } = Sum { \[ { { \( ital "sj" \) rSup { size 8{2} } } over {n rSub { size 8{j} } } } \] } - { { \( Sum {s rSub { size 8{j} } \) rSup { size 8{2} } } } over {N} } } {}
  • Unexplained variation- sum of squares representing variation within samples due to chance: SS within = SS total SS between SS within = SS total SS between size 12{ ital "SS" rSub { size 8{ ital "within"} } = ital "SS" rSub { size 8{ ital "total"} } - ital "SS" rSub { size 8{ ital "between"} } } {}
  • df's for different groups (df's for the numerator): df between = k 1 df between = k 1 size 12{ ital "df" rSub { size 8{ ital "between"} } =k - 1} {}
  • Equation for errors within samples (df's for the denominator): df within = N k df within = N k size 12{ ital "df" rSub { size 8{ ital "within"} } =N - k} {}
  • Mean square (variance estimate) explained by the different groups: MS between = SS between df between MS between = SS between df between size 12{ ital "MS" rSub { size 8{ ital "between"} } = { { ital "SS" rSub { size 8{ ital "between"} } } over { ital "df" rSub { size 8{ ital "between"} } } } } {}
  • Mean square (variance estimate) that is due to chance (unexplained): MS within = SS within df within MS within = SS within df within size 12{ ital "MS" rSub { size 8{ ital "within"} } = { { ital "SS" rSub { size 8{ ital "within"} } } over { ital "df" rSub { size 8{ ital "within"} } } } } {}

MS between MS between and MS within MS within can be written as follows:

  • MS between = SS between df between = SS between k 1 MS between = SS between df between = SS between k 1
  • MS within = SS within df within = SS within N k MS within = SS within df within = SS within N k

The ANOVA test depends on the fact that MS between MS between can be influenced by population differences among means of the several groups. Since MS within MS within compares values of each group to its own group mean, the fact that group means might be different does not affect MS within MS within .

The null hypothesis says that all groups are samples from populations having the same normal distribution. The alternate hypothesis says that at least two of the sample groups come from populations with different normal distributions. If the null hypothesis is true, MS between MS between and MS within MS within should both estimate the same value.

Note:

The null hypothesis says that all the group population means are equal. The hypothesis of equal means implies that the populations have the same normal distribution because it is assumed that the populations are normal and that they have equal variances.

F-Ratio or F Statistic

F = MS between MS within F= MS between MS within (1)

If MS between MS between and MS within MS within estimate the same value (following the belief that H o H o is true), then the F-ratio should be approximately equal to 1. Only sampling errors would contribute to variations away from 1. As it turns out, MS between MS between consists of the population variance plus a variance produced from the differences between the samples. MS within MS within is an estimate of the population variance. Since variances are always positive, if the null hypothesis is false, MS between MS between will be larger than MS within MS within . The F-ratio will be larger than 1.

The above calculations were done with groups of different sizes. If the groups are the same size, the calculations simplify somewhat and the F ratio can be written as:

F-Ratio Formula when the groups are the same size

F = n ( s x ) 2 ( s pooled ) 2 F = n ( s x ) 2 ( s pooled ) 2 size 12{F= { {n cdot \( s rSub { size 8{ - x} } \) rSup { size 8{2} } } over { \( s rSub { size 8{ ital "pooled"} } \) rSup { size 8{2} } } } } {} (2)

where ...

  • (sx)2=(sx)2= size 12{ \( s rSub { size 8{ - x} } \) rSup { size 8{2} } ={}} {}the variance of the sample means
  • n=n= size 12{n={}} {}the sample size of each group
  • (spooled)2=(spooled)2= size 12{ \( s rSub { size 8{ ital "pooled"} } \) rSup { size 8{2} } ={}} {}the mean of the sample variances (pooled variance)
  • df numerator = k 1 df numerator = k 1 size 12{ ital "df" rSub { size 8{ ital "numerator"} } =k - 1} {}
  • df denominator = k ( n 1 ) = N k df denominator = k ( n 1 ) = N k size 12{ ital "df" rSub { size 8{ ital "denominator"={}} } k \( n - 1 \) =N - k} {}

The ANOVA hypothesis test is always right-tailed because larger F-values are way out in the right tail of the F-distribution curve and tend to make us reject H o H o .

Notation

The notation for the F distribution is FF ~ F df(num) , df(denom) F df(num) , df(denom)

where df(num) = df between df(num)= df between and df(denom) = df within df(denom) = df within

The mean for the F distribution is μ = df(num) df(denom) 1 μ= df(num) df(denom) 1

Content actions

Download module as:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks