Main Content

F Distribution

R2026b

Definition

The pdf for the F distribution is

y=f(x|ν1,ν2)=Γ[(ν1+ν2)2]Γ(ν12)Γ(ν22)(ν1ν2)ν12xν1−22[1+(ν1ν2)x]ν1+ν22

for x ≥ 0, where Γ( · ) is the Gamma function.

Background

The F distribution has the following relationship with the chi-square distribution. If χ1 and χ2 are both independent and chi-square distributed with ν1 and ν2 degrees of freedom respectively, then the statistic F below is F-distributed.

F(ν1,ν2)=χ1ν1χ2ν2

The two parameters, ν1 and ν2, are the numerator and denominator degrees of freedom. That is, ν1 and ν2 are the number of independent pieces of information used to calculate χ1 and χ2, respectively.

Parameters

The noncentral F distribution uses the following parameters.

ParameterDescriptionSupport
ν1Numerator degrees of freedomν = 1, 2, 3,...
ν2Denominator degrees of freedomν = 1, 2, 3,...

Examples

Compute and Plot F Probability Density Function

Compute the probability density function (pdf) of the F distribution with 3 numerator degrees of freedom and 5 denominator degrees of freedom, over the range [0,5].

x = 0:0.01:5;
p = fpdf(x,3,5);

Plot the pdf.

figure;
plot(x,p)
grid on
xlabel("x")
ylabel("p")

Figure contains an axes object. The axes object with xlabel x, ylabel p contains an object of type line.

See Also

| | | | |

Topics