Chi-Square Distribution

Definition

The χ2 pdf is

where Γ( · ) is the Gamma function, and ν is the degrees of freedom.

Background

The χ2 distribution is a special case of the gamma distribution where b = 2 in the equation for gamma distribution below.

The χ2 distribution gets special attention because of its importance in normal sampling theory. If a set of n observations is normally distributed with variance σ2, and s2 is the sample standard deviation, then

This relationship is used to calculate confidence intervals for the estimate of the normal parameter σ2 in the function normfit.

Example

The χ2 distribution is skewed to the right especially for few degrees of freedom (ν). The plot shows the χ2 distribution with four degrees of freedom.

x = 0:0.2:15;
y = chi2pdf(x,4);
plot(x,y)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS