
Last chance! 50% off unlimited learning
Sale ends in
tolIntPois(x, coverage = 0.95, cov.type = "content", ti.type = "two-sided",
conf.level = 0.95)
epois
or epoisCensor
coverage=0.95
. If cov.type="expectation"
,
this argument is ignored."content"
($\beta$-content; the default), and
"expectation"
($\beta$-expectation). See the DETAILS section for more
i"two-sided"
(the default), "lower"
, and
"upper"
.conf.level=0.95
.x
is a numeric vector, tolIntPois
returns a list of class
"estimate"
containing the estimated parameters, a component called
interval
containing the tolerance interval information, and other
information. See estimate.object
for details.
If x
is the result of calling an estimation function, tolIntPois
returns a list whose class is the same as x
. The list contains the same
components as x
. If x
already has a component called
interval
, this component is replaced with the tolerance interval
information.x
contains any missing (NA
), undefined (NaN
) or
infinite (Inf
, -Inf
) values, they will be removed prior to
performing the estimation.
A tolerance interval for some population is an interval on the real line constructed so as to
contain $100 \beta %$ of the population (i.e., $100 \beta %$ of all
future observations), where $0 < \beta < 1$. The quantity $100 \beta %$ is called
the coverage.
There are two kinds of tolerance intervals (Guttman, 1970):
lambda=2
, the
interval [0, 4] contains 94.7% of this distribution and the interval [0, 5]
contains 98.3% of this distribution. Thus, no interval can contain exactly 95%
of this distribution.
$\beta$-Content Tolerance Intervals for a Poisson Distribution
Zacks (1970) showed that for monotone likelihood ratio (MLR) families of discrete
distributions, a uniformly most accurate upper $\beta100%$ $\beta$-content
tolerance interval with associated confidence level $(1-\alpha)100%$ is
constructed by finding the upper $(1-\alpha)100%$ confidence limit for the
parameter associated with the distribution, and then computing the $\beta$'th
quantile of the distribution assuming the true value of the parameter is equal to
the upper confidence limit. This idea can be extended to one-sided lower and
two-sided tolerance limits.
It can be shown that all distributions that are one parameter exponential families
have the MLR property, and the Poisson distribution is a one-parameter exponential
family, so the method of Zacks (1970) can be applied to a Poisson distribution.
Let $X$ denote a Poisson random variable with parameter
lambda=
$\lambda$. Let $x_{p|\lambda}$ denote the $p$'th quantile
of this distribution. That is,
lambda=
$\lambda$.
When ti.type="upper"
, the first step is to compute the one-sided upper
$(1-\alpha)100%$ confidence limit for $\lambda$ based on the observations
$\underline{x}$ (see the help file for epois
). Denote this upper
confidence limit by $UCL$. The one-sided upper $\beta100%$ tolerance limit
is then given by:
ti.type="lower"
, the first step is to compute the one-sided
lower $(1-\alpha)100%$ confidence limit for $\lambda$ based on the
observations $\underline{x}$. Denote this lower confidence limit by $LCL$.
The one-sided lower $\beta100%$ tolerance limit is then given by:
ti.type="two-sided"
, the first step is to compute the two-sided
$(1-\alpha)100%$ confidence limits for $\lambda$ based on the
observations $\underline{x}$. Denote these confidence limits by $LCL$ and
$UCL$. The two-sided $\beta100%$ tolerance limit is then given by:
tolIntPois
uses the exact confidence limits for
$\lambda$ when computing $\beta$-content tolerance limits (see
epois
).
$\beta$-Expectation Tolerance Intervals for a Poisson Distribution
As stated above, a $\beta$-expectation tolerance interval with coverage
$\beta100%$ is equivalent to a prediction interval for one future observation
with associated confidence level $\beta100%$. This is because the probability
that any single future observation will fall into this interval is $\beta100%$,
so the distribution of the number of $N$ future observations that will fall into
this interval is binomial with parameters
size=
$N$ and prob=
$\beta$. Hence the expected proportion of
future observations that fall into this interval is $\beta100%$ and is
independent of the value of $N$. See the help file for predIntPois
for information on how these intervals are constructed.Poisson
, epois
, eqpois
,
estimate.object
, Tolerance Intervals,
Estimating Distribution Parameters, Estimating Distribution Quantiles.# Generate 20 observations from a Poisson distribution with parameter
# lambda=2. The interval [0, 4] contains 94.7\% of this distribution and
# the interval [0,5] contains 98.3\% of this distribution. Thus, because
# of the discrete nature of the Poisson distribution, no interval contains
# exactly 95\% of this distribution. Use tolIntPois to estimate the mean
# parameter of the true distribution, and construct a one-sided upper 95\%
# beta-content tolerance interval with associated confidence level 90\%.
# (Note: the call to set.seed simply allows you to reproduce this example.)
set.seed(250)
dat <- rpois(20, 2)
tolIntPois(dat, conf.level = 0.9)
#Results of Distribution Parameter Estimation
#--------------------------------------------
#
#Assumed Distribution: Poisson
#
#Estimated Parameter(s): lambda = 1.8
#
#Estimation Method: mle/mme/mvue
#
#Data: dat
#
#Sample Size: 20
#
#Tolerance Interval Coverage: 95%
#
#Coverage Type: content
#
#Tolerance Interval Method: Zacks
#
#Tolerance Interval Type: two-sided
#
#Confidence Level: 90%
#
#Tolerance Interval: LTL = 0
# UTL = 6
#------
# Clean up
rm(dat)
Run the code above in your browser using DataLab