Skip to main content

Chi square distribution

Chi-Square Distribution

Probability Density FunctionThe chi-square distribution results when nu independent variables with standard normal distributions are squared and summed. The formula for the probability density function of the chi-square distribution isf(x) = EXP(-x/2)*x**(nu/2 - 1)/(2**(nu/2)*GAMMA(nu/2))  x >= 0
where nu is the shape parameter and GAMMA is the gamma function. The formula for the gamma function is
GAMMA(a) = INTEGRAL[t**(a-1)*EXP(-t)dt]  where the
 integration is from 0 to infinity
In a testing context, the chi-square distribution is treated as a "standardized distribution" (i.e., no location or scale parameters). However, in a distributional modeling context (as with other probability distributions), the chi-square distribution itself can be transformed with a location parameter, mu, and a scale parameter, sigma.
The following is the plot of the chi-square probability density function for 4 different values of the shape parameter.
plot of the chi-square probability density function for 4
 different values of the shape parameter
Cumulative Distribution FunctionThe formula for the cumulative distribution function of the chi-square distribution isF(x) = gamma(nu/2,x/2)/GAMMA(nu/2)   for x >= 0
where GAMMA is the gamma function defined above and gamma is the incomplete gamma function. The formula for the incomplete gamma function is
GAMMA(a,x) = INTEGRAL[t**(a-1)*EXP(-t)dt]  where the
 integration is from 0 to x
The following is the plot of the chi-square cumulative distribution function with the same values of  as the pdf plots above.
plot of the chi-square cumulative distribution function with
 the same values of nu as the pdf plots above
Percent Point FunctionThe formula for the percent point function of the chi-square distribution does not exist in a simple closed form. It is computed numerically.The following is the plot of the chi-square percent point function with the same values of nu as the pdf plots above.
plot of the chi-square percent point function with the same
 values of nu as the pdf plots above
Other Probability FunctionsSince the chi-square distribution is typically used to develop hypothesis tests and confidence intervals and rarely for modeling applications, we omit the formulas and plots for the hazard, cumulative hazard, survival, and inverse survival probability functions.
Common Statistics
Meannu
Medianapproximately nu - 2/3 for large nu
Modenu -2   for nu > 2
Range0 to positive infinity
Standard DeviationSQRT(2*nu)
Coefficient of VariationSQRT(2/nu)
Skewness2**1.5/SQRT(nu)
Kurtosis3 + 12/nu
Parameter EstimationSince the chi-square distribution is typically used to develop hypothesis tests and confidence intervals and rarely for modeling applications, we omit any discussion of parameter estimation.
CommentsThe chi-square distribution is used in many cases for the critical regions for hypothesis tests and in determining confidence intervals. Two common examples are the chi-square test for independence in an RxC contingency table and the chi-square test to determine if the standard deviation of a population is equal to a pre-specified value.
SoftwareMost general purpose statistical software programs support at least some of the probability functions for the chi-square distribution.

Comments

Popular posts from this blog

Methods of correlation

Correlation Methods  Correlation and Covariance Matrices Fisher's  z  Transformation ( z r ) Pearson Product-Moment Correlation Coefficient (Pearson's  r ) Spearman's Rank-Order Correlation Coefficient (Spearman's ρ) Kendall's Rank Correlation Coefficient (Kendall's τ) Correlation and Covariance Matrices You can generate a correlation or covariance matrix from numeric data columns, and have the choice of storing the computation results in an-autogenerated worksheet, or display the results in a table format whose values can be color coded. This method requires multiple numeric data columns whose values should be stored in a single worksheet. An example of a correlation matrix displayed as a color-coded table is shown below. Using Fisher's  z  Transformation ( z r ) This option is provided to allow transforming a skewed sampling distribution into a normalized format. The theoretical sampling distribution of the corr...

The most femiliar statisticians

Gertrude Cox :   Gertrude Mary Cox (of Experimental Statistics at North Carolina State University. She was later appointed director of both the Institute of Statistics of 1900 - 1978) was an influential American statistician and founder of the department the Consolidated University of North Carolina and the Statistics Research Division of North Carolina State University. Her most important and influential research dealt with experimental design; she wrote an important book on the subject with W. G. Cochran. In 1949 Cox became the first female elected into the International Statistical Institute and in 1956 she was president of the American Statistical Association. From 1931 to 1933 Cox undertook graduate studies in statistics at the  University of California at Berkeley , then returned to Iowa State College as assistant in the Statistical Laboratory. Here she worked on the  design of experiments . In 1939 she was appointed assistant professor of statisti...

Cauchy distribution

Cauchy Distribution Probability Density Function The general formula for the  probability density function  of the Cauchy distribution is where  t  is the  location parameter  and  s  is the  scale parameter . The case where  t  = 0 and  s  = 1 is called the  standard Cauchy distribution . The equation for the standard Cauchy distribution reduces to Since the general form of probability functions can be  expressed in terms of the standard distribution , all subsequent formulas in this section are given for the standard form of the function. The following is the plot of the standard Cauchy probability density function. Cumulative Distribution Function The formula for the  cumulative distribution function  for the Cauchy distribution is The following is the plot of the Cauchy cumulative distribution function. Percent Point Function The formula for the  percent point function  of...