g01fa returns the deviate associated with the given probability of the standard Normal distribution.
Syntax
C# |
---|
public static double g01fa( string tail, double p, out int ifail ) |
Visual Basic |
---|
Public Shared Function g01fa ( _ tail As String, _ p As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double |
Visual C++ |
---|
public: static double g01fa( String^ tail, double p, [OutAttribute] int% ifail ) |
F# |
---|
static member g01fa : tail : string * p : float * ifail : int byref -> float |
Parameters
- tail
- Type: System..::..StringOn entry: indicates which tail the supplied probability represents.
- The lower probability, i.e., .
- The upper probability, i.e., .
- The two tail (significance level) probability, i.e., .
- The two tail (confidence interval) probability, i.e., .
Constraint: , , or .
- p
- Type: System..::..DoubleOn entry: , the probability from the standard Normal distribution as defined by tail.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
g01fa returns the deviate associated with the given probability of the standard Normal distribution.
Description
The deviate, associated with the lower tail probability, , for the standard Normal distribution is defined as the solution to
where
The method used is an extension of that of Wichura (1988). is first replaced by .
(a) | If , is computed by a rational Chebyshev approximation
|
||
(b) | If , is computed by a rational Chebyshev approximation
|
||
(c) | If , is computed as
|
For the upper tail probability is returned, while for the two tail probabilities the value is returned, where is the required tail probability computed from the input value of .
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
Wichura (1988) Algorithm AS 241: the percentage points of the Normal distribution Appl. Statist. 37 477–484
Error Indicators and Warnings
Errors or warnings detected by the method:
If on exit , then g01fa returns .
On entry, , , or .
On entry, , or .
Accuracy
The accuracy is mainly limited by the machine precision.
Parallelism and Performance
None.
Further Comments
None.