Evaluates the inverse of the noncentral chi-squared cumulative
probability distribution function.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Noncentralchi( double p, double df, double alam ) |
Visual Basic (Declaration) |
---|
Public Shared Function Noncentralchi ( _ p As Double, _ df As Double, _ alam As Double _ ) As Double |
Visual C++ |
---|
public: static double Noncentralchi( double p, double df, double alam ) |
Parameters
- p
- Type: System..::.Double
A double scalar value representing the probability for which the inverse noncentral chi-squared distribution function is to be evaluated. p must be in the open interval (0.0, 1.0).
- df
- Type: System..::.Double
A double scalar value representing the number of degrees of freedom. This must be at least 0.5. but less than or equal to 200,000.
- alam
- Type: System..::.Double
A double scalar value representing the noncentrality parameter. This must be nonnegative, and alam + df must be less than or equal to 200,000.
Return Value
A double scalar value. The probability that a noncentral chi-squared random variable takes a value less than or equal to this returned value is p.
Remarks
Method InvCdf.Noncentralchi evaluates the inverse distribution
function of a noncentral chi-squared random variable with
df degrees of freedom and noncentrality
parameter alam, that is, with P =p,
, and
, it determines
InvCdf.Noncentralchi(p, df, alam), such that
where
is the Gamma function. The
probability that the random variable takes a value less than or
equal to
is
.







Method InvCdf.Noncentralchi uses bisection and modified regula falsi to invert the distribution function, which is evaluated using Cdf.Noncentralchi. See Cdf.Noncentralchi for an alternative definition of the noncentral chi-squared random variable in terms of normal random variables.