g01ea returns a one or two tail probability for the standard Normal distribution.
Syntax
C# |
---|
public static double g01ea( string tail, double x, out int ifail ) |
Visual Basic |
---|
Public Shared Function g01ea ( _ tail As String, _ x As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double |
Visual C++ |
---|
public: static double g01ea( String^ tail, double x, [OutAttribute] int% ifail ) |
F# |
---|
static member g01ea : tail : string * x : float * ifail : int byref -> float |
Parameters
- tail
- Type: System..::..StringOn entry: indicates which tail the returned probability should represent.
- The lower tail probability is returned, i.e., .
- The upper tail probability is returned, i.e., .
- The two tail (significance level) probability is returned, i.e., .
- The two tail (confidence interval) probability is returned, i.e., .
Constraint: , , or .
- x
- Type: System..::..DoubleOn entry: , the value of the standard Normal variate.
- 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
g01ea returns a one or two tail probability for the standard Normal distribution.
Description
The lower tail probability for the standard Normal distribution,
is defined by:
where
The relationship
is used, where erfc is the complementary error function, and is computed using s15ad. For the upper tail probability the relationship is used and for the two tail significance level probability twice the probability obtained from the absolute value of is returned.
When the two tail confidence probability is required the relationship
is used, where erf is the error function, and is computed using s15ae.
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
Accuracy
Parallelism and Performance
None.
Further Comments
None.