Loading [MathJax]/jax/output/SVG/fonts/TeX/Main/Bold/Main.js
g01gd returns the probability associated with the lower tail of the noncentral  or variance-ratio distribution.

Syntax

C#
public static double g01gd(
	double f,
	double df1,
	double df2,
	double rlamda,
	double tol,
	int maxit,
	out int ifail
)
Visual Basic
Public Shared Function g01gd ( _
	f As Double, _
	df1 As Double, _
	df2 As Double, _
	rlamda As Double, _
	tol As Double, _
	maxit As Integer, _
	<OutAttribute> ByRef ifail As Integer _
) As Double
Visual C++
public:
static double g01gd(
	double f, 
	double df1, 
	double df2, 
	double rlamda, 
	double tol, 
	int maxit, 
	[OutAttribute] int% ifail
)
F#
static member g01gd : 
        f : float * 
        df1 : float * 
        df2 : float * 
        rlamda : float * 
        tol : float * 
        maxit : int * 
        ifail : int byref -> float 

Parameters

f
Type: System..::..Double
On entry: , the deviate from the noncentral -distribution.
Constraint: .
df1
Type: System..::..Double
On entry: the degrees of freedom of the numerator variance, .
Constraint: .
df2
Type: System..::..Double
On entry: the degrees of freedom of the denominator variance, .
Constraint: .
rlamda
Type: System..::..Double
On entry: , the noncentrality parameter.
Constraint:  where  is the safe range parameter as defined by x02am.
tol
Type: System..::..Double
On entry: the relative accuracy required by you in the results. If g01gd is entered with tol greater than or equal to  or less than  (see x02aj), then the value of  is used instead.
maxit
Type: System..::..Int32
On entry: the maximum number of iterations to be used.
Suggested value: . See g01gc and g01ge for further details.
Constraint: .
ifail
Type: System..::..Int32%
On exit:  unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).

Return Value

g01gd returns the probability associated with the lower tail of the noncentral  or variance-ratio distribution.

Description

The lower tail probability of the noncentral -distribution with  and  degrees of freedom and noncentrality parameter , , is defined by
where
and  is the beta function.
The probability is computed by means of a transformation to a noncentral beta distribution:
where  and  is the lower tail probability integral of the noncentral beta distribution with parameters , , and .
If  is very large, greater than , then a  approximation is used.

References

Abramowitz M and Stegun I A (1972) Handbook of Mathematical Functions (3rd Edition) Dover Publications

Error Indicators and Warnings

Note: g01gd may return useful information for one or more of the following detected errors or warnings.
Errors or warnings detected by the method:
If on exit  or , then g01gd returns .
On entry,,
or,
or,
or,
or,
or,
or, where  safe range parameter as defined by x02am.
The solution has failed to converge in maxit iterations. You should try a larger value of maxit or tol.
The required probability cannot be computed accurately. This may happen if the result would be very close to  or . Alternatively the values of df1 and f may be too large. In the latter case you could try using a normal approximation; see Abramowitz and Stegun (1972).
The required accuracy was not achieved when calculating the initial value of the central  (or ) probability. You should try a larger value of tol. If the  approximation is being used then g01gd returns zero otherwise the value returned should be an approximation to the correct value.
An error occured, see message report.

Accuracy

The relative accuracy should be as specified by tol. For further details see g01gc and g01ge.

Parallelism and Performance

None.

Further Comments

When both  and  are large a Normal approximation may be used and when only  is large a  approximation may be used. In both cases  is required to be of the same order as . See Abramowitz and Stegun (1972) for further details.

Example

This example reads values from, and degrees of freedom for, -distributions, computes the lower tail probabilities and prints all these values until the end of data is reached.

Example program (C#): g01gde.cs

Example program data: g01gde.d

Example program results: g01gde.r

See Also