stats::ChiSquare
-- the ``Chi
Square'' distributionstats::ChiSquare
(x, v)
computes the
value
1/gamma(v/2)/2^(v/2) * int(t^(v/2-1)*exp(-t/2), t = 0..x)
of the Chi Square distribution with v degrees of freedom at the point x.
stats::ChiSquare(x, v)
x |
- | an arithmetical expression. |
v |
- | the ``degrees of freedom'': a positive integer. |
an arithmetical expression.
The function is sensitive to the environment variable DIGITS
, when the argument
x
is a floating point number.
We compute the Chi Square distribution with one degree of freedom at the point x=2.4:
>> stats::ChiSquare(2.4, 1)
0.8786647497
We compute the Chi Square distribution with four degrees of freedom at a symbolic point:
>> stats::ChiSquare(x, 4)
/ x \ (2 x + 4) exp| - - | \ 2 / 1 - -------------------- 4