HTBasic Help
×
Menu
Index
F_chi2
Probability density for chi-squared distribution.
 
Loading        LOADSUB ALL FROM "IGAMMA.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                INTEGER N
REAL X,Y
Y=FNF_chi2(N,X)
 
Description                
FNF_chi2 returns the value of the probability density function of the univariate chi-squared (χ²) distribution with parameter n at x. This density, f(x;n), is defined by the expression
 
X is often written as X²; among other uses, this notation emphasizes the fact that this distribution is only nonzero for values of x 0. Although f is sometimes defined for n < 0, most implementations, including this one, restrict f to being defined for n 0.
 
                         f(x;n)
                 
Errors
FNF_chi2 causes an HTBasic error if its arguments are not of the types listed in the usage section, above, or if n is negative.
 
See Also
P_chi2, Q_chi2