For a linear combination of noncentral
random variables with integer degrees of freedom the lower tail probability is
where
and
are positive constants and where
represents an independent
random variable with
degrees of freedom and noncentrality parameter
. The linear combination may arise from considering a quadratic form in Normal variables.
Ruben's method as described in
Farebrother (1984) is used. Ruben has shown that
(1) may be expanded as an infinite series of the form
where
, i.e., the probability that a central
is less than
.
-
1:
– Real (Kind=nag_wp) array
Input
-
On entry: the weights, .
Constraint:
, for .
-
2:
– Integer array
Input
-
On entry: the degrees of freedom, .
Constraint:
, for .
-
3:
– Real (Kind=nag_wp) array
Input
-
On entry: the noncentrality parameters, .
Constraint:
, for .
-
4:
– Integer
Input
-
On entry:
, the number of
random variables in the combination, i.e., the number of terms in equation
(1).
Constraint:
.
-
5:
– Real (Kind=nag_wp)
Input
-
On entry: , the point for which the lower tail probability is to be evaluated.
Constraint:
.
-
6:
– Real (Kind=nag_wp)
Output
-
On exit: the lower tail probability associated with the linear combination of random variables with
degrees of freedom, and noncentrality parameters , for .
-
7:
– Real (Kind=nag_wp)
Output
-
On exit: the value of the probability density function of the linear combination of variables.
-
8:
– Real (Kind=nag_wp)
Input
-
On entry: the relative accuracy required by you in the results. If
g01jcf is entered with
tol greater than or equal to
or less than
(see
x02ajf), the value of
is used instead.
-
9:
– Integer
Input
-
On entry: the maximum number of terms that should be used during the summation.
Suggested value:
.
Constraint:
.
-
10:
– Real (Kind=nag_wp) array
Workspace
-
-
11:
– Integer
Input/Output
-
On entry:
ifail must be set to
,
or
to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value
or
is recommended. If message printing is undesirable, then the value
is recommended. Otherwise, the value
is recommended since useful values can be provided in some output arguments even when
on exit.
When the value or is used it is essential to test the value of ifail on exit.
On exit:
unless the routine detects an error or a warning has been flagged (see
Section 6).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
The series
(2) is summed until a bound on the truncation error is less than
tol. See
Farebrother (1984) for further discussion.
None.