g01fc returns the deviate associated with the given lower tail probability of the -distribution with real degrees of freedom.
Syntax
C# |
---|
public static double g01fc( double p, double df, out int ifail ) |
Visual Basic |
---|
Public Shared Function g01fc ( _ p As Double, _ df As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double |
Visual C++ |
---|
public: static double g01fc( double p, double df, [OutAttribute] int% ifail ) |
F# |
---|
static member g01fc : p : float * df : float * ifail : int byref -> float |
Parameters
- p
- Type: System..::..DoubleOn entry: , the lower tail probability from the required -distribution.Constraint: .
- df
- Type: System..::..DoubleOn entry: , the degrees of freedom of the -distribution.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
g01fc returns the deviate associated with the given lower tail probability of the -distribution with real degrees of freedom.
Description
The deviate, , associated with the lower tail probability of the -distribution with degrees of freedom is defined as the solution to
The required is found by using the relationship between a -distribution and a gamma distribution, i.e., a -distribution with degrees of freedom is equal to a gamma distribution with scale parameter and shape parameter .
For very large values of , greater than , Wilson and Hilferty's normal approximation to the is used; see Kendall and Stuart (1969).
References
Best D J and Roberts D E (1975) Algorithm AS 91. The percentage points of the distribution Appl. Statist. 24 385–388
Hastings N A J and Peacock J B (1975) Statistical Distributions Butterworth
Kendall M G and Stuart A (1969) The Advanced Theory of Statistics (Volume 1) (3rd Edition) Griffin
Error Indicators and Warnings
Note: g01fc may return useful information for one or more of the following detected errors or warnings.
Errors or warnings detected by the method:
If , , or on exit, then g01fc returns .
On entry, , or .
On entry, .
- p is too close to or for the result to be calculated.
- The solution has failed to converge. The result should be a reasonable approximation.
- The series used to calculate the gamma function has failed to converge. This is an unlikely error exit.
Accuracy
The results should be accurate to five significant digits for most parameter values. Some accuracy is lost for close to .
Parallelism and Performance
None.
Further Comments
For higher accuracy the relationship described in [Description] may be used and a direct call to g01ff made.
Example
This example reads lower tail probabilities for several -distributions, and calculates and prints the corresponding deviates until the end of data is reached.
Example program (C#): g01fce.cs