.BG
.FN Chisquare
.FN dchisq
.FN pchisq
.FN qchisq
.FN rchisq
.TL
Chi-Square Distribution
.CS
dchisq(q, df)
pchisq(q, df)
qchisq(p, df)
rchisq(n, df)
.AG q
vector of (positive) quantiles.
Missing values (`NA's) are allowed.
.AG p
vector of probabilities.
Missing values (`NA's) are allowed.
.AG n
sample size.
If `length(n)' is larger than 1, then `length(n)' random values are returned.
.AG df
degrees of freedom (>0).
.RT
density (`dchisq'),
probability (`pchisq'),
quantile (`qchisq'), or
random sample (`rchisq')
for the chi-square distribution with `df' degrees of freedom.
.SP
.Tr
The density function is given by
.sp
.EQ
delim $$
f sub d ( q ) ~=~
1 over { 2 GAMMA ( d over 2 ) }
exp ( - q over 2 ) ( q over 2 ) sup { \(12 d - 1 } ,
~~~ q ~>~ 0 , ~~ d ~>~ 0,
.EN
.sp
where $d$ is the `df' parameter.
.En
.SE
The function `rchisq' causes creation of the dataset `.Random.seed' if it does
not already exist, otherwise its value is updated.
.KW distribution
.EQ
delim off
.EN
.WR
