Chi2cdf
Chi2cdf-func
Description
Computes the lower/upper tail probability for the distribution with real degrees of freedom df.
Syntax
double prob = chi2cdf(double x, double df[, int tail])
Parameters
x
- Input, the value of the Chi variate, must be nonnegative ().
df
- Input, the degrees of freedom, , of the distribution, must be positive().
tail
-
Input, Optional. The tail probability type using for the distribution
- 1 = the for upper tail probability
- 2 = the lower tail probability (Default if not set)
prob
- Output, the returned probability.
Example
chi2cdf(150,3,1)=; // ANS: 2.6349139284881E-32