g01eb returns the lower tail, upper tail or two tail probability for the Student's -distribution with real degrees of freedom.
Syntax
C# |
---|
public static double g01eb( string tail, double t, double df, out int ifail ) |
Visual Basic |
---|
Public Shared Function g01eb ( _ tail As String, _ t As Double, _ df As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double |
Visual C++ |
---|
public: static double g01eb( String^ tail, double t, double df, [OutAttribute] int% ifail ) |
F# |
---|
static member g01eb : tail : string * t : float * df : float * ifail : int byref -> float |
Parameters
- tail
- Type: System..::..StringOn entry: indicates which tail the returned probability should represent.
- 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., .
- The lower tail probability is returned, i.e., .
Constraint: , , or .
- t
- Type: System..::..DoubleOn entry: , the value of the Student's variate.
- df
- Type: System..::..DoubleOn entry: , the degrees of freedom of the Student's -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
g01eb returns the lower tail, upper tail or two tail probability for the Student's -distribution with real degrees of freedom.
Description
The lower tail probability for the Student's -distribution with degrees of freedom, is defined by:
Computationally, there are two situations:
(i) | when , a transformation of the beta distribution, is used
|
||||
(ii) | when , an asymptotic normalizing expansion of the Cornish–Fisher type is used to evaluate the probability, see Hill (1970). |
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
Hill G W (1970) Student's -distribution Comm. ACM 13(10) 617–619
Error Indicators and Warnings
Accuracy
The computed probability should be accurate to five significant places for reasonable probabilities but there will be some loss of accuracy for very low probabilities (less than ), see Hastings and Peacock (1975).
Parallelism and Performance
None.
Further Comments
The probabilities could also be obtained by using the appropriate transformation to a beta distribution (see Abramowitz and Stegun (1972)) and using g01ee. This method allows you to set the required accuracy.
Example
This example reads values from, and degrees of freedom for Student's -distributions along with the required tail. The probabilities are calculated and printed until the end of data is reached.
Example program (C#): g01ebe.cs