g01fd returns the deviate associated with the given lower tail probability of the or variance-ratio distribution with real degrees of freedom.
Syntax
C# |
---|
public static double g01fd( double p, double df1, double df2, out int ifail ) |
Visual Basic |
---|
Public Shared Function g01fd ( _ p As Double, _ df1 As Double, _ df2 As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double |
Visual C++ |
---|
public: static double g01fd( double p, double df1, double df2, [OutAttribute] int% ifail ) |
F# |
---|
static member g01fd : p : float * df1 : float * df2 : float * ifail : int byref -> float |
Parameters
- p
- Type: System..::..DoubleOn entry: , the lower tail probability from the required -distribution.Constraint: .
- df1
- Type: System..::..DoubleOn entry: the degrees of freedom of the numerator variance, .Constraint: .
- df2
- Type: System..::..DoubleOn entry: the degrees of freedom of the denominator variance, .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
g01fd returns the deviate associated with the given lower tail probability of the or variance-ratio distribution with real degrees of freedom.
Description
The deviate, , associated with the lower tail probability, , of the -distribution with degrees of freedom and is defined as the solution to
where ; .
The value of is computed by means of a transformation to a beta distribution, :
and using a call to g01fe.
For very large values of both and , greater than , a normal approximation is used. If only one of or is greater than then a approximation is used; see Abramowitz and Stegun (1972).
References
Abramowitz M and Stegun I A (1972) Handbook of Mathematical Functions (3rd Edition) Dover Publications
Hastings N A J and Peacock J B (1975) Statistical Distributions Butterworth
Error Indicators and Warnings
Note: g01fd 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 g01fd returns .
On entry, , or .
On entry, , or .
- The value of p is too close to or for the value of to be computed. This will only occur when the large sample approximations are used.
Accuracy
The result should be accurate to five significant digits.
Parallelism and Performance
None.
Further Comments
For higher accuracy g01fe can be used along with the transformations given in [Description].
Example
This example reads the lower tail probabilities for several -distributions, and calculates and prints the corresponding deviates until the end of data is reached.
Example program (C#): g01fde.cs