nag_poisson_ci (g07abc) computes a confidence interval for the mean argument of the Poisson distribution.
Given a random sample of size
, denoted by
, from a Poisson distribution with probability function
the point estimate,
, for
is the sample mean,
.
The lower and upper confidence limits are estimated by the solutions to the equations
where
.
The relationship between the Poisson distribution and the
-distribution (see page 112 of
Hastings and Peacock (1975)) is used to derive the equations
where
is the deviate associated with the lower tail probability
of the
-distribution with
degrees of freedom.
In turn the relationship between the
-distribution and the gamma distribution (see page 70 of
Hastings and Peacock (1975)) yields the following equivalent equations;
where
is the deviate associated with the lower tail probability,
, of the gamma distribution with shape argument
and scale argument
. These deviates are computed using
nag_deviates_gamma_dist (g01ffc).
For most cases the results should have a relative accuracy of
where
is the
machine precision (see
nag_machine_precision (X02AJC)). Thus on machines with sufficiently high precision the results should be accurate to
significant digits. Some accuracy may be lost when
or
is very close to
, which will occur if
clevel is very close to
. This should not affect the usual confidence intervals used.
Not applicable.
None.
The following example reads in data showing the number of noxious weed seeds and the frequency with which that number occurred in
sub-samples of meadow grass. The data is taken from page 224 of
Snedecor and Cochran (1967). The sample mean is computed as the point estimate of the Poisson argument
. nag_poisson_ci (g07abc) is then called to compute both a 95% and a 99% confidence interval for the argument
.