F (Variance Ratio) Distribution

 

Menu location: Analysis_Distributions_F (Variance Ratio).

 

Fisher-Snedecor F is the distribution of the ratio of two independent estimates of variance. The variance estimates should be made from two samples from a normal distribution. The size of these two samples is reflected in two degrees of freedom.

 

F has two degrees of freedom, n (numerator) and d (denominator), because it represents the distribution of the ratio of two independent chi-square variables each divided by its degrees of freedom:

 

F can be used to compare two estimates of variance but it is mainly used to compare groups of means and to examine the combined effect of several factors (ways of grouping data) in analysis of variance. For a simple one way analysis of variance (one factor between subjects) there is one grouping of observations into k groups, here n = k-1 and d = N-k where N is the total number of subjects observed. The denominator degrees of freedom, d, is sometimes referred to as the error degrees of freedom. When degrees of freedom are small, larger F values are required to reach significance:

F-distribution density curves for 4 and 12, and 10 and 100 degrees of freedom, showing the upper 5% tails above F = 3.26 and F = 1.93, respectively.

 

When there is one numerator degree of freedom and d denominator degrees of freedom then F is equal to the square of Student's t with d degrees of freedom. Both F and t are related mathematically by the beta function.

 

Technical Validation

StatsDirect calculates tail areas and percentage points for given numerator and denominator degrees of freedom. The incomplete beta function is integrated by the methods of DiDonato and Morris (1992): a power series, a recurrence on the shape parameter, an expansion in the incomplete gamma function, a weighted continued fraction and a central asymptotic expansion, each used where those authors prescribe, so that every figure is kept at any number of degrees of freedom, and the smaller tail is calculated directly, the larger as its complement, so a small tail area is never lost as one minus a number near 1. Percentage points are found by Newton's method on the logarithm of the tail area, in log odds within a bracket.

 

Function Definition

An F variable with ν1 and ν2 degrees of freedom can be transformed to a beta variable with parameters p=ν1/2 and q=ν2/2 as beta=ν1F/(ν2+ν1F). The beta distribution with parameters p and q is:

 

Γ(*) is the gamma function:

 

Example

Consider the F (variance ratio) test example, which gives F = 6.944952 with 6 numerator and 8 denominator degrees of freedom.

 

To evaluate this in StatsDirect select F (Variance Ratio) from the Distributions section of the Analysis menu. Enter 6.944952 as the variance ratio F, 6 as the numerator degrees of freedom and 8 as the denominator degrees of freedom, then click Calculate. To find the F for a given upper tail P instead, enter the P and the two degrees of freedom and click Invert. The P is shown to 15 decimal places and F to 15 significant figures, and each result is written to the report as a probability distribution calculation.

 

For this example:

 

P(F 6.944952, dfn 6, dfd 8) = 0.007667699178732 upper

 

This upper tail P, 0.0077 to four decimal places, is the upper side P of the F test. Inverting for an upper tail P of 0.05 with the same degrees of freedom gives the 5% critical value of F:

 

F(upper P 0.05, dfn 6, dfd 8) = 3.58058031976146

 

With one numerator degree of freedom, F is the square of Student's t. Inverting for an upper tail P of 0.05 with 1 and 20 degrees of freedom gives:

 

F(upper P 0.05, dfn 1, dfd 20) = 4.35124350332929

 

which is the square of 2.08596344726586, the two sided 5% point of Student's t with 20 degrees of freedom.