Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Chi( double chsq, double df ) |
Visual Basic (Declaration) |
---|
Public Shared Function Chi ( _ chsq As Double, _ df As Double _ ) As Double |
Visual C++ |
---|
public: static double Chi( double chsq, double df ) |
Parameters
- chsq
- Type: System..::.Double
A double specifying the argument at which the function is to be evaluated.
- df
- Type: System..::.Double
A double specifying the number of degrees of freedom. This must be at least 0.5.
Return Value
A double specifying the probability that a chi-squared random variable takes a values less than or equal to chsq.
Remarks
Method Cdf.Chi evaluates the distribution function, F, of
a chi-squared random variable with df degrees of
freedom, that is, with , and
,


For , Cdf.Chi uses the
Wilson-Hilferty approximation (Abramowitz and Stegun 1964, equation
26.4.17) to the normal distribution, and method Cdf.Normal is
used to evaluate the normal distribution function.
For , Cdf.Chi uses series expansions
to evaluate the distribution function. If
, Cdf.Chi uses the series 6.5.29 in Abramowitz and
Stegun (1964), otherwise, it uses the asymptotic expansion 6.5.32
in Abramowitz and Stegun.
For greater right tail accuracy, see Cdf.ComplementaryChi.