Skip to main content

NTCHISQDIST

Returns the chi square distribution for the specified parameters.

Syntax

NTCHISQDIST(
x,
N,
Cumulative
)

Parameters

  • x is the value for which you want the distribution (x0x\geq 0).
  • N is a parameter of the distribution NN (Positive integer).
  • Cumulative is a logical value that determines the form of the function. If cumulative is TRUE, NTCHISQDIST returns the cumulative distribution function; if FALSE, it returns the probability density function.

Remarks

f(x)=12N2Γ(N2)exp(x2)xN21 f(x)=\frac{1}{2^{\frac{N}{2}}\Gamma\left(\frac{N}{2}\right)}\exp\left(-\frac{x}{2}\right)x^{\frac{N}{2}-1}

, where Γ()\Gamma(\cdot) is gamma function.

F(x)=Γx2(N2)Γ(N2) F(x)=\frac{\Gamma_{\frac{x}{2}}\left(\frac{N}{2}\right)}{\Gamma\left(\frac{N}{2}\right)}

, where Γx()\Gamma_{x}(\cdot) is incomplete gamma function.

Example

  • The example may be easier to understand if you copy it to a blank worksheet\
How to copy an example
  1. Create a blank workbook or worksheet.

  2. Select the example in the Help topic.

    Note  Do not select the row or column headers.

    Selecting an example from Help

    Selecting an example from Help

  3. Press CTRL+C.

  4. In the worksheet, select cell A1, and press CTRL+V.

  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Tools menu, point to Formula Auditing, and then click Formula Auditing Mode.

AB
1DataDescription
22Value for which you want the distribution
39Value of parameter N
4FormulaDescription (Result)
5=NTCHISQDIST(A2,A3,TRUE)Cumulative distribution function for the terms above
6=NTCHISQDIST(A2,A3,FALSE)Probability density function for the terms above

See also