The lower tail probability of the noncentral Student's
-distribution with
degrees of freedom and noncentrality parameter
,
, is defined by
with
The probability is computed in one of two ways.
(i) |
When , the relationship to the normal is used:
|
(ii) |
Otherwise the series expansion described in Equation 9 of Amos (1964) is used. This involves the sums of confluent hypergeometric functions, the terms of which are computed using recurrence relationships. |
The series described in
Amos (1964) are summed until an estimated upper bound on the contribution of future terms to the probability is less than
tol. There may also be some loss of accuracy due to calculation of gamma functions.
If two tail probabilities are required then the relationship of the
-distribution to the
-distribution can be used:
and a call made to
nag_prob_non_central_f_dist (g01gdc).
This example reads values from, and degrees of freedom for, and noncentrality arguments of the noncentral Student's -distributions, calculates the lower tail probabilities and prints all these values until the end of data is reached.