CDF Chi-Square Distribution Function
Returns a value from the chi-square cumulative probability distribution.
| Category: | Probability |
|---|---|
| Returned data type: | DOUBLE |
| Note: | The QUANTILE function returns the quantile from a distribution that you specify. The QUANTILE function is the inverse of the CDF function. For more information, see QUANTILE Function. |
Table of Contents
Syntax
Required Arguments
x
is a numeric constant, variable, or expression that specifies a random variable.
| Data type | DOUBLE |
|---|
df
is a numeric constant, variable, or expression that specifies a degrees of freedom parameter.
| Range | df > 0 |
|---|---|
| Data type | DOUBLE |
Optional Argument
nc
is a numeric constant, variable, or expression that specifies an optional noncentrality parameter.
| Range | nc ≥ 0 |
|---|---|
| Data type | DOUBLE |
Details
The CDF function for
the chi-square distribution returns the probability that an observation
from a chi-square distribution, with df degrees
of freedom and the noncentrality parameter nc,
is less than or equal to x.
This function accepts non-integer degrees of freedom. If nc is
omitted or equal to zero, the value returned is from the central chi-square
distribution. In the following equation, let and let
. The following equation describes the CDF function
of the chi-square distribution:
In the equation, Pc(.,.) denotes the probability from the central chi-square distribution:
In the equation, Pg(y,b) is the probability from the gamma distribution given by the equation:
Example
The following program illustrates the CDF Chi-Square distribution function:
proc ds2;
data test (overwrite=yes);
dcl double y;
method run();
y=cdf('CHISQ', 11.264, 11);
put y=;
end;
enddata;
run;
quit;
SAS writes the following output to the log.
y=0.5785813293173