vignettes/distributions-and-estimation.Rmd
distributions-and-estimation.RmdThis vignette describes the probability distributions available in EnvStats and the methods used to estimate gamma, lognormal, and generalized extreme value distribution parameters. It includes likelihood, moment, and probability-weighted moment estimators and their statistical properties.
Related vignettes:
Help topic: Distribution.df.
The table below summarizes the probability distributions available in
R and EnvStats. For each distribution, there are four associated
functions for computing density values, percentiles, quantiles, and
random numbers. The form of the names of these functions are
dabb, pabb,
qabb, and rabb, where
abb is the abbreviated name of the distribution (see table
below). These functions are described in the help file with the name of
the distribution (see the first column of the table below). For example,
the help file for Beta describes the behavior of
dbeta, pbeta, qbeta, and
rbeta.
For most distributions, there is also an associated function for
estimating the distribution parameters, and the form of the names of
these functions is eabb, where abb is the
abbreviated name of the distribution (see table below). All of these
functions are listed in the help file Estimating
Distribution Parameters. For example, the function ebeta
estimates the shape parameters of a Beta distribution based on a random
sample of observations from this distribution.
For some distributions, there are functions to estimate distribution
parameters based on Type I censored data. The form of the names of these
functions is eabbSinglyCensored for
singly censored data and
eabbMultiplyCensored for multiply
censored data. All of these functions are listed under the heading
Estimating Distribution Parameters in the censored-data
overview.
Table 1a. Available Distributions: Name, Abbreviation, Type, and Range
| Name | Abbreviation | Type | Range |
Beta
|
beta
|
Continuous | |
Binomial
|
binom
|
Finite | |
| Discrete | (integer) | ||
Cauchy
|
cauchy
|
Continuous | |
| Chi |
chi
|
Continuous | |
Chi-square
|
chisq
|
Continuous | |
Exponential
|
exp
|
Continuous | |
| Extreme |
evd
|
Continuous | |
| Value | |||
F
|
f
|
Continuous | |
Gamma
|
gamma
|
Continuous | |
| Gamma |
gammaAlt
|
Continuous | |
| (Alternative) | |||
| Generalized |
gevd
|
Continuous | |
| Extreme | for | ||
| Value | |||
| for | |||
| for | |||
Geometric
|
geom
|
Discrete | |
| (integer) | |||
Hypergeometric
|
hyper
|
Finite | |
| Discrete | (integer) | ||
Logistic
|
logis
|
Continuous | |
Lognormal
|
lnorm
|
Continuous | |
| Lognormal |
lnormAlt
|
Continuous | |
| (Alternative) | |||
| Lognormal |
lnormMix
|
Continuous | |
| Mixture | |||
| Lognormal |
lnormMixAlt
|
Continuous | |
| Mixture | |||
| (Alternative) | |||
| Three- |
lnorm3
|
Continuous | |
| Parameter | |||
| Lognormal | |||
| Truncated |
lnormTrunc
|
Continuous | |
| Lognormal | |||
| Truncated |
lnormTruncAlt
|
Continuous | |
| Lognormal | |||
| (Alternative) | |||
Negative
|
nbinom
|
Discrete | |
Binomial
|
(integer) | ||
Normal
|
norm
|
Continuous | |
| Normal |
normMix
|
Continuous | |
| Mixture | |||
| Truncated |
normTrunc
|
Continuous | |
| Normal | |||
| Pareto |
pareto
|
Continuous | |
Poisson
|
pois
|
Discrete | |
| (integer) | |||
Student’s t
|
t
|
Continuous | |
| Triangular |
tri
|
Continuous | |
Uniform
|
unif
|
Continuous | |
Weibull
|
weibull
|
Continuous | |
Wilcoxon
|
wilcox
|
Finite | |
Rank Sum
|
Discrete | (integer) | |
| Zero-Modified |
zmlnorm
|
Mixed | |
| Lognormal | |||
| (Delta) | |||
| Zero-Modified |
zmlnormAlt
|
Mixed | |
| Lognormal | |||
| (Delta) | |||
| (Alternative) | |||
| Zero-Modified |
zmnorm
|
Mixed | |
| Normal |
Table 1b. Available Distributions: Name, Parameters, Parameter Default Values, Parameter Ranges, Estimation Method(s)
| Default | Parameter | Estimation | ||
| Name | Parameter(s) | Value(s) | Range(s) | Method(s) |
Beta
|
shape1
|
mle, mme, mmue | ||
shape2
|
||||
ncp
|
0
|
|||
Binomial
|
size
|
mle/mme/mvue | ||
prob
|
||||
Cauchy
|
location
|
0
|
||
scale
|
1
|
|||
| Chi |
df
|
|||
Chi-square
|
df
|
|||
ncp
|
0
|
|||
Exponential
|
rate
|
1
|
mle/mme | |
| Extreme |
location
|
0
|
mle, mme, mmue, pwme | |
| Value |
scale
|
1
|
||
F
|
df1
|
|||
df2
|
||||
ncp
|
0
|
|||
Gamma
|
shape
|
mle, bcmle, mme, mmue | ||
scale
|
1
|
|||
| Gamma |
mean
|
mle, bcmle, mme, mmue | ||
| (Alternative) |
cv
|
1
|
||
| Generalized |
location
|
0
|
mle, pwme, tsoe | |
| Extreme |
scale
|
1
|
||
| Value |
shape
|
0
|
||
Geometric
|
prob
|
mle/mme, mvue | ||
Hypergeometric
|
m
|
mle, mvue | ||
n
|
||||
k
|
||||
Logistic
|
location
|
0
|
mle, mme, mmue | |
scale
|
1
|
|||
Lognormal
|
meanlog
|
0
|
mle/mme, mvue | |
sdlog
|
1
|
|||
| Lognormal |
mean
|
exp(1/2)
|
mle, mme, mmue, | |
| (Alternative) |
cv
|
sqrt(exp(1)-1)
|
mvue, qmle | |
| Lognormal |
meanlog1
|
0
|
||
| Mixture |
sdlog1
|
1
|
||
meanlog2
|
0
|
|||
sdlog2
|
1
|
|||
p.mix
|
0.5
|
|||
| Lognormal |
mean1
|
exp(1/2)
|
||
| Mixture |
cv1
|
sqrt(exp(1)-1)
|
||
| (Alternative) |
mean2
|
exp(1/2)
|
||
cv2
|
sqrt(exp(1)-1)
|
|||
p.mix
|
0.5
|
|||
| Three- |
meanlog
|
0
|
lmle, mme, | |
| Parameter |
sdlog
|
1
|
mmue, mmme, | |
| Lognormal |
threshold
|
0
|
royston.skew, | |
| zero.skew | ||||
| Truncated |
meanlog
|
0
|
||
| Lognormal |
sdlog
|
1
|
||
min
|
0
|
|||
max
|
Inf
|
|||
| Truncated |
mean
|
exp(1/2)
|
||
| Lognormal |
cv
|
sqrt(exp(1)-1)
|
||
| (Alternative) |
min
|
0
|
||
max
|
Inf
|
|||
Negative
|
size
|
mle/mme, mvue | ||
Binomial
|
prob
|
|||
mu
|
||||
Normal
|
mean
|
0
|
mle/mme, mvue | |
sd
|
1
|
|||
| Normal |
mean1
|
0
|
||
| Mixture |
sd1
|
1
|
||
mean2
|
0
|
|||
sd2
|
1
|
|||
p.mix
|
0.5
|
|||
| Truncated |
mean
|
0
|
||
| Normal |
sd
|
1
|
||
min
|
-Inf
|
|||
max
|
Inf
|
|||
| Pareto |
location
|
lse, mle | ||
shape
|
1
|
|||
Poisson
|
lambda
|
mle/mme/mvue | ||
Student’s t
|
df
|
|||
ncp
|
0
|
|||
| Triangular |
min
|
0
|
||
max
|
1
|
|||
mode
|
0.5
|
|||
Uniform
|
min
|
0
|
mle, mme, mmue | |
max
|
1
|
|||
Weibull
|
shape
|
mle, mme, mmue | ||
scale
|
1
|
|||
Wilcoxon
|
m
|
|||
Rank Sum
|
n
|
|||
| Zero-Modified |
meanlog
|
0
|
mvue | |
| Lognormal |
sdlog
|
1
|
||
| (Delta) |
p.zero
|
0.5
|
||
| Zero-Modified |
mean
|
exp(1/2)
|
mvue | |
| Lognormal |
cv
|
sqrt(exp(1)-1)
|
||
| (Delta) |
p.zero
|
0.5
|
||
| (Alternative) | ||||
| Zero-Modified |
mean
|
0
|
mvue | |
| Normal |
sd
|
1
|
||
p.zero
|
0.5
|
Help topic: egamma.
If x contains any missing (NA), undefined
(NaN) or infinite (Inf, -Inf)
values, they will be removed prior to performing the estimation.
Let
denote a random sample of
observations from a gamma
distribution with parameters
shape=
and
scale=.
The relationship between these parameters and the mean
(mean=)
and coefficient of variation
(cv=)
of this distribution is given by:
The function egamma returns estimates of the shape and
scale parameters. The function egammaAlt returns estimates
of the mean
()
and coefficient of variation
()
based on the estimates of the shape and scale parameters.
Estimation
Maximum Likelihood Estimation
(method="mle")
The maximum likelihood estimators (mle’s) of the shape and scale
parameters
and
are solutions of the simultaneous equations:
where
denotes the digamma function,
and
denotes the sample mean:
(Forbes et al., 2011, chapter 22; Johnson et al., 1994, chapter 17).
Bias-Corrected Maximum Likelihood Estimation
(method="bcmle")
The “bias-corrected” maximum likelihood estimator of the shape parameter
is based on the suggestion of Anderson and Ray (1975; see also Johnon et
al., 1994, p.366 and Singh et al., 2010b, p.48), who noted that the bias
of the maximum likelihood estimator of the shape parameter can be
considerable when the sample size is small. This estimator is given
by:
When method="bcmle", Equation (6) above is modified so
that the estimate of the scale paramter is based on the “bias-corrected”
maximum likelihood estimator of the shape parameter:
Method of Moments Estimation
(method="mme")
The method of moments estimators (mme’s) of the shape and scale
parameters
and
are:
where denotes the method of moments estimator of variance:
Method of Moments Estimation Based on the Unbiased Estimator of
Variance (method="mmue")
The method of moments estimators based on the unbiased estimator of
variance are exactly the same as the method of moments estimators,
except that the method of moments estimator of variance is replaced with
the unbiased estimator of variance:
where denotes the unbiased estimator of variance:
Confidence Intervals
This section discusses how confidence intervals for the mean
are computed.
Normal Approximation
(ci.method="normal.approx")
The normal approximation method is based on the method of Kulkarni and
Powar (2010), who use a power transformation of the the original data to
approximate a sample from a normal distribuiton, compute the confidence
interval for the mean on the transformed scale using the usual formula
for a confidence interval for the mean of a normal distribuiton, and
then tranform the limits back to the original space using equations
based on the expected value of a gamma random variable raised to a
power.
The particular power used for the normal approximation is defined by
the argumentnormal.approx.transform. The value
normal.approx.transform="cube.root" uses the cube root
transformation suggested by Wilson and Hilferty (1931), and the
value"fourth.root" uses the fourth root transformation suggested
by Hawkins and Wixley (1986). The default value
"kulkarni.powar" uses the “Optimum Power Normal
Approximation Method” of Kulkarni and Powar (2010), who show this method
performs the best in terms of maintining coverage and minimizing
confidence interval width compared to eight other methods. The “optimum”
power
is determined by:
| if | ||
| if | (16) |
where
denotes the estimate of the shape parameter. Kulkarni and Powar (2010)
derived this equation by determining what power transformation yields a
skew closest to 0 and a kurtosis closest to 3 for a gamma random
variable with a given shape parameter. Although Kulkarni and Powar
(2010) use the maximum likelihood estimate of shape to determine the
power to use to induce approximate normality, for the functions
egamma and egammaAlt the power is based on
whatever estimate of shape is used (e.g., method="mle",
method="bcmle", etc.).
Likelihood Profile
(ci.method="profile.likelihood")
This method was proposed by Cox (1970, p.88), and Venzon and Moolgavkar
(1988) introduced an efficient method of computation. This method is
also discussed by Stryhn and Christensen (2003) and Royston (2007). The
idea behind this method is to invert the likelihood-ratio test to obtain
a confidence interval for the mean
while treating the coefficient of variation
as a nuisance parameter.
The likelihood function is given by:
where , , , and are defined in Equations (1)-(4) above, and denotes the Gamma function evaluated at .
Following Stryhn and Christensen (2003), denote the maximum likelihood estimates of the mean and coefficient of variation by . The likelihood ratio test statistic () of the hypothesis (where is a fixed value) equals the drop in between the “full” model and the reduced model with fixed at , i.e.,
where is the maximum likelihood estimate of for the reduced model (i.e., when ). Under the null hypothesis, the test statistic follows a chi-squared distribution with 1 degree of freedom.
Alternatively, we may express the test statistic in terms of the profile likelihood function for the mean , which is obtained from the usual likelihood function by maximizing over the parameter , i.e.,
Then we have
A two-sided confidence interval for the mean consists of all values of for which the test is not significant at level :
where denotes the ’th quantile of the chi-squared distribution with degrees of freedom. One-sided lower and one-sided upper confidence intervals are computed in a similar fashion, except that the quantity in Equation (21) is replaced with .
Chi-Square Approximation
(ci.method="chisq.approx")
This method is based on the relationship between the sample mean of the
gamma distribution and the chi-squared distribution (Grice and Bain,
1980):
Therefore, an exact one-sided upper confidence interval for the mean is given by:
an exact one-sided lower confidence interval is given by:
and a two-sided confidence interval is given by:
Because this method is exact only when the shape parameter
is known, the method used here is called the “chi-square approximation”
method because the estimate of the shape parameter,
,
is used in place of
in Equations (23)-(25) above. The Chi-Square Approximation method is
not the method proposed by Grice and Bain (1980) in
which the confidence interval is adjusted based on adjusting for the
fact that the shape parameter
is estimated (see the explanation of the Chi-Square Adjusted method
below). The Chi-Square Approximation method used by egamma
and egammaAlt is equivalent to the “approximate gamma”
method of ProUCL (USEPA, 2015, equation (2-34), p.62).
Chi-Square Adjusted
(ci.method="chisq.adj")
This is the same method as the Chi-Square Approximation method discussed
above, execpt that the value of
is adjusted to account for the fact that the shape parameter
is estimated rather than known. Grice and Bain (1980) performed Monte
Carlo simulations to determine how to adjust
and the values in their Table 2 are given in the matrix Grice.Bain.80.mat.
This method requires that the sample size
is at least 5 and the confidence level is between 75% and 99.5% (except
when
,
in which case the confidence level must be less than 99%). For values of
the sample size
and/or
that are not listed in the table, linear interpolation is used (when the
sample size
is greater than 40, linear interpolation on
is used, as recommended by Grice and Bain (1980)). The Chi-Square
Adjusted method used by egamma and egammaAlt
is equivalent to the “adjusted gamma” method of ProUCL (USEPA,
2015, equation (2-35), p.63).
Help topic: elnormAlt.
If x contains any missing (NA), undefined
(NaN) or infinite (Inf, -Inf)
values, they will be removed prior to performing the estimation.
Let
be a vector of
observations from a lognormal
distribution with parameters
mean=
and
cv=.
Let
denote the standard deviation of this distribution, so that
.
Set
.
Then
is a vector of observations from a normal distribution with parameters
mean=
and
sd=.
See the help file for LognormalAlt
for the relationship between
,
and
.
Estimation
This section explains how each of the estimators of
mean=
and
cv=
are computed. The approach is to first compute estimates of
and
(the mean and variance of the lognormal distribution), say
and
,
then compute the estimate of the cv
by
.
Minimum Variance Unbiased Estimation
(method="mvue")
The minimum variance unbiased estimators (mvue’s) of
and
were derived by Finney (1941) and are discussed in Gilbert (1987,
pp. 164-167) and Cohn et al. (1989). These estimators are computed
as:
where
The expected value and variance of the mvue of are (Bradu and Mundlak, 1970; Cohn et al., 1989):
Maximum Likelihood Estimation
(method="mle")
The maximum likelihood estimators (mle’s) of
and
are given by:
where
The expected value and variance of the mle of are (after Cohn et al., 1989):
As can be seen from equation (12), the expected value of the mle of does not exist when . In general, the ’th moment of the mle of does not exist when .
Quasi Maximum Likelihood Estimation
(method="qmle")
The quasi maximum likelihood estimators (qmle’s; Cohn et al., 1989;
Gilbert, 1987, p.167) of
and
are the same as the mle’s, except the mle of
in equations (8) and (10) is replaced with the more commonly used mvue
of
shown in equation (4):
The expected value and variance of the qmle of are (Cohn et al., 1989):
As can be seen from equation (17), the expected value of the qmle of does not exist when . In general, the ’th moment of the mle of does not exist when .
Note that Gilbert (1987, p. 167) incorrectly presents equation (12) rather than equation (17) as the expected value of the qmle of . For large values of relative to , however, equations (12) and (17) are virtually identical.
Method of Moments Estimation
(method="mme")
The method of moments estimators (mme’s) of
and
are found by equating the sample mean and variance with their population
values:
Note that the estimator of variance in equation (20) is biased.
The expected value and variance of the mme of are:
Method of Moments Estimation Based on the Unbiased Estimate of
Variance (method="mmue")
These estimators are exactly the same as the method of moments
estimators described above, except that the usual unbiased estimate of
variance is used:
Since the mmue of is equivalent to the mme of , so are its mean and varaince.
Confidence Intervals
This section explains the different methods for constructing confidence
intervals for
,
the mean of the lognormal distribution.
Land’s Method (ci.method="land")
Land (1971, 1975) derived a method for computing one-sided (lower or
upper) uniformly most accurate unbiased confidence intervals for
.
A two-sided confidence interval can be constructed by combining an
optimal lower confidence limit with an optimal upper confidence limit.
This procedure for two-sided confidence intervals is only asymptotically
optimal, but for most purposes should be acceptable (Land, 1975,
p.387).
As shown in equation (3) in the help file for LognormalAlt, the mean of a lognormal random variable is related to the mean and standard deviation of the log-transformed random variable by the following relationship:
where
Land (1971) developed confidence bounds for the quantity . The mvue of is given by:
Note that . The two-sided confidence interval for is given by:
the one-sided upper confidence interval for is given by:
and the one-sided lower confidence interval for is given by:
where is the estimate of (see equation (4) above), and the factor is given in tables in Land (1975).
Thus, by equations (25)-(30), the two-sided confidence interval for is given by:
the one-sided upper confidence interval for is given by:
and the one-sided lower confidence interval for is given by:
Note that Gilbert (1987, pp. 169-171, 264-265) denotes the quantity above as and reproduces a subset of Land’s (1975) tables. Some guidance documents (e.g., USEPA, 1992d) refer to this quantity as the -statistic.
Zou et al.’s Method (ci.method="zou")
Zou et al. (2009) proposed the following approximation for the two-sided
confidence intervals for
.
The lower limit
is given by:
and the upper limit is given by:
where denotes the ’th quantile of the standard normal distribuiton, and denotes the ’th quantile of the chi-square distribution with degrees of freedom. The one-sided lower confidence limit and one-sided upper confidence limit are given by equations (34) and (35), respectively, with replaced by .
Parkin et al.’s Method
(ci.method="parkin")
This method was developed by Parkin et al. (1990). It can be shown that
the mean of a lognormal distribution corresponds to the
’th
quantile, where
and
denotes the cumulative distribution function of the standard normal
distribution. Parkin et al. (1990) suggested estimating
by replacing
in equation (36) with the estimate
as computed in equation (4). Once an estimate of
is obtained, a nonparametric confidence interval can be constructed for
,
assuming
is equal to its estimated value (see eqnpar).
Cox’s Method (ci.method="cox")
This method was suggested by Professor D.R. Cox and is illustrated in
Land (1972). El-Shaarawi (1989) adapts this method to the case of
censored water quality data. Cox’s idea is to construct an approximate
confidence interval for the quantity
defined in equation (26) above assuming the estimate of
is approximately normally distributed, and then exponentiate the
confidence limits. That is, a two-sided
confidence interval for
is constructed as:
where denotes the ’th quantile of Student’s t-distribution with degrees of freedom. Note that this method, unlike the normal approximation method discussed below, guarantees a positive value for the lower confidence limit. One-sided confidence intervals are computed in a similar fashion.
Define an estimator of by:
Then the variance of this estimator is given by:
The function elnormAlt follows Land (1972) and uses the
minimum variance unbiased estimator for
shown in equation (27) above, so the variance and estimated variance of
this estimator are:
Note that El-Shaarawi (1989, equation 5) simply replaces the value of in equation (41) with some estimator of (the mle or mvue of ), rather than using the mvue of the variance of as shown in equation (41).
Normal Approximation
(ci.method="normal.approx") This method constructs
approximate
confidence intervals for
based on the assumption that the estimator of
is approximately normally distributed. That is, a two-sided
confidence interval for
is constructed as:
One-sided confidence intervals are computed in a similar fashion.
When method="mvue" is used to estimate
,
an unbiased estimate of the variance of the estimator of
is used in equation (42) (Bradu and Mundlak, 1970, equation 4.3;
Gilbert, 1987, equation 13.5):
When method="mle" is used to estimate
,
the estimate of the variance of the estimator of
is computed by replacing
and
in equation (13) with their mle’s:
When method="qmle" is used to estimate
,
the estimate of the variance of the estimator of
is computed by replacing
and
in equation (18) with their mvue’s:
Note that equation (45) is exactly the same as Gilbert’s (1987, p. 167) equation 13.8a, except that Gilbert (1987) erroneously uses where he should use instead. For large values of relative to , however, this makes little difference.
When method="mme", the estimate of the variance of the
estimator of
is computed by replacing
in equation (22) with the mme of
defined in equation (20):
When method="mmue", the estimate of the variance of the
estimator of
is computed by replacing
in equation (22) with the mmue of
defined in equation (24):
Help topic: elnorm3.
If x contains any missing (NA), undefined
(NaN) or infinite (Inf, -Inf)
values, they will be removed prior to performing the estimation.
Let
denote a random variable from a three-parameter
lognormal distribution with parameters
meanlog=,
sdlog=,
and
threshold=.
Let
denote a vector of
observations from this distribution. Furthermore, let
denote the
’th
order statistic in the sample, so that
denotes the smallest value and
denote the largest value in
.
Finally, denote the sample mean and variance by:
Note that the sample variance is the unbiased version. Denote the method of moments estimator of variance by:
Estimation
Local Maximum Likelihood Estimation
(method="lmle")
Hill (1963) showed that the likelihood function approaches infinity as
approaches
,
so that the global maximum likelihood estimators of
are
,
which are inadmissible, since
must be smaller than
.
Cohen (1951) suggested using local maximum likelihood estimators
(lmle’s), derived by equating partial derivatives of the log-likelihood
function to zero. These estimators were studied by Harter and Moore
(1966), Calitz (1973), Cohen and Whitten (1980), and Griffiths (1980),
and appear to possess most of the desirable properties ordinarily
associated with maximum likelihood estimators.
Cohen (1951) showed that the lmle of is given by the solution to the following equation:
where
and that the lmle’s of and then follow as:
Unfortunately, while equation (4) simplifies the task of computing the lmle’s, for certain data sets there still may be convergence problems (Calitz, 1973), and occasionally multiple roots of equation (4) may exist. When multiple roots to equation (4) exisit, Cohen and Whitten (1980) recommend using the one that results in closest agreement between the mle of (equation (7)) and the sample mean (equation (1)).
On the other hand, Griffiths (1980) showed that for a given value of the threshold parameter , the maximized value of the log-likelihood (the “profile likelihood” for ) is given by:
where the estimates of and are defined in equations (7) and (8), so the lmle of reduces to an iterative search over the values of . Griffiths (1980) noted that the distribution of the lmle of is far from normal and that is not quadratic near the lmle of . He suggested a better parameterization based on
Thus, once the lmle of is found using equations (9) and (10), the lmle of is given by:
When method="lmle", the function elnorm3
uses the function nlminb to search for the minimum of
,
using the modified method of moments estimator
(method="mmme"; see below) as the starting value for
.
Equation (11) is then used to solve for the lmle of
,
and equation (4) is used to “fine tune” the estimated value of
.
The lmle’s of
and
are then computed using equations (6)-(8).
Method of Moments Estimation
(method="mme")
Denote the
’th
sample central moment by:
and note that
Equating the sample first moment (the sample mean) with its population value (the population mean), and equating the second and third sample central moments with their population values yields (Johnson et al., 1994, p.228):
where
Combining equations (15) and (16) yields:
The quantity on the left-hand side of equation (19) is the usual estimator of skewness. Solving equation (19) for yields:
where
Using equation (18), the method of moments estimator of is then computed as:
Combining equations (15) and (17), the method of moments estimator of is computed as:
Finally, using equations (14), (17), and (18), the method of moments estimator of is computed as:
There are two major problems with using method of moments estimators for the three-parameter lognormal distribution. First, they are subject to very large sampling error due to the use of second and third sample moments (Cohen, 1988, p.121; Johnson et al., 1994, p.228). Second, Heyde (1963) showed that the lognormal distribution is not uniquely determined by its moments.
Method of Moments Estimators Using an Unbiased Estimate of
Variance (method="mmue")
This method of estimation is exactly the same as the method of moments
(method="mme"), except that the unbiased estimator of
variance (equation (3)) is used in place of the method of moments one
(equation (4)). This modification is given in Cohen (1988,
pp.119-120).
Modified Method of Moments Estimation
(method="mmme")
This method of estimation is described by Cohen (1988, pp.125-132). It
was introduced by Cohen and Whitten (1980; their MME-II with r=1) and
was further investigated by Cohen et al. (1985). It is motivated by the
fact that the first order statistic in the sample,
,
contains more information about the threshold parameter
than any other observation and often more information than all of the
other observations combined (Cohen, 1988, p.125).
The first two sets of equations are the same as for the modified
method of moments estimators (method="mmme"), i.e.,
equations (14) and (15) with the unbiased estimator of variance
(equation (3)) used in place of the method of moments one (equation
(4)). The third equation replaces equation (16) by equating a function
of the first order statistic with its expected value:
where
denotes the expected value of the
’th
order statistic in a random sample of
observations from a standard normal distribution. (See the help file for
evNormOrdStats
for information on how
is computed.) Using equations (17) and (18), equation (26) can be
rewritten as:
Combining equations (14), (15), (17), (18), and (27) yields the following equation for the estimate of :
After equation (28) is solved for
,
the estimate of
is again computed using equation (23), and the estimate of
is computed using equation (24), where the unbiased estimate of
variaince is used in place of the biased one (just as for
method="mmue").
Zero-Skewness Estimation
(method="zero.skew")
This method of estimation was introduced by Griffiths (1980), and
elaborated upon by Royston (1992b). The idea is that if the threshold
parameter
were known, then the distribution of:
is normal, so the skew of is 0. Thus, the threshold parameter is estimated as that value that forces the sample skew (defined in equation (19)) of the observations defined in equation (6) to be 0. That is, the zero-skewness estimator of is the value that satisfies the following equation:
where
Note that since the denominator in equation (30) is always positive (assuming there are at least two unique values in ), only the numerator needs to be used to determine the value of .
Once the value of has been determined, and are estimated using equations (7) and (8), except the unbiased estimator of variance is used in equation (8).
Royston (1992b) developed a modification of the Shaprio-Wilk
goodness-of-fit test for normality based on tranforming the data using
equation (6) and the zero-skewness estimator of
(see gofTest).
Estimators Based on Royston’s Index of Skewness
(method="royston.skew")
This method of estimation is discussed by Royston (1992b), and is
similar to the zero-skewness method discussed above, except a different
measure of skewness is used. Royston’s (1992b) index of skewness is
given by:
where denotes the ’th order statistic of and is defined in equation (31) above, and denotes the median of . Royston (1992b) shows that the value of that yields a value of is given by:
Again, as for the zero-skewness method, once the value of has been determined, and are estimated using equations (7) and (8), except the unbiased estimator of variance is used in equation (8).
Royston (1992b) developed this estimator as a quick way to estimate .
Confidence Intervals
This section explains three different methods for constructing
confidence intervals for the threshold parameter
,
or the median of the three-parameter lognormal distribution, which is
given by:
Normal Approximation Based on Asymptotic Variances and
Covariances (ci.method="avar")
Formulas for asymptotic variances and covariances for the
three-parameter lognormal distribution, based on the information matrix,
are given in Cohen (1951), Cohen and Whitten (1980), Cohen et al.,
(1985), and Cohen (1988). The relevant quantities for
and the median are:
where
A two-sided confidence interval for is computed as:
where denotes the ’th quantile of Student’s t-distribution with degrees of freedom, and the quantity is computed using equations (35) and (38) and substituting estimated values of , , and . One-sided confidence intervals are computed in a similar manner.
A two-sided confidence interval for the median (see equation (34) above) is computed as:
where
is computed using equations (35)-(38) and substituting estimated values of , , and . One-sided confidence intervals are computed in a similar manner.
This method of constructing confidence intervals is analogous to using the Wald test (e.g., Silvey, 1975, pp.115-118) to test hypotheses on the parameters.
Because of the regularity problems associated with the global maximum likelihood estimators, it is questionble whether the asymptotic variances and covariances shown above apply to local maximum likelihood estimators. Simulation studies, however, have shown that these estimates of variance and covariance perform reasonably well (Harter and Moore, 1966; Cohen and Whitten, 1980).
Note that this method of constructing confidence intervals can be
used with estimators other than the lmle’s. Cohen and Whitten (1980) and
Cohen et al. (1985) found that the asymptotic variances and covariances
are reasonably close to corresponding simulated variances and
covariances for the modified method of moments estimators
(method="mmme").
Likelihood Profile
(ci.method="likelihood.profile")
Griffiths (1980) suggested constructing confidence intervals for the
threshold parameter
based on the profile likelihood function given in equations (9) and
(10). Royston (1992b) further elaborated upon this procedure. A
two-sided
confidence interval for
is constructed as:
by finding the two values of (one larger than the lmle of and one smaller than the lmle of ) that satisfy:
where denotes the ’th quantile of the chi-square distribution with degrees of freedom. Once these values are found, the two-sided confidence for is computed as:
where
One-sided intervals are construced in a similar manner.
This method of constructing confidence intervals is analogous to using the likelihood-ratio test (e.g., Silvey, 1975, pp.108-115) to test hypotheses on the parameters.
To construct a two-sided confidence interval for the median (see equation (34)), Royston (1992b) suggested the following procedure:
Construct a confidence interval for using the likelihood profile procedure.
Construct a confidence interval for as:
Construct the confidence interval for the median as:
Royston (1992b) actually suggested using the quantile from the
standard normal distribution instead of Student’s t-distribution in step
2 above. The function elnorm3, however, uses the Student’s
t quantile.
Note that this method of constructing confidence intervals can be used with estimators other than the lmle’s.
Royston’s Confidence Interval Based on Significant Skewness
(ci.method="skewness")
Royston (1992b) suggested constructing confidence intervals for the
threshold parameter
based on the idea behind the zero-skewness estimator
(method="zero.skew"). A two-sided
confidence interval for
is constructed by finding the two values of
that yield a p-value of
for the test of zero-skewness on the observations
defined in equation (6) (see gofTest).
One-sided confidence intervals are constructed in a similar manner.
To construct
confidence intervals for the median (see equation (34)), the exact same
procedure is used as for ci.method="likelihood.profile",
except that the confidence interval for
is based on the zero-skewness method just described instead of the
likelihood profile method.
Help topic: HoskingEtAl1985.
Abstract
Hosking et al. (1985) use the method of probability-weighted moments,
introduced by Greenwood et al. (1979), to estimate the parameters of the
generalized
extreme value distribution (GEVD) with parameters
location=,
scale=,
and
shape=.
Hosking et al. (1985) derive the asymptotic distributions of the
probability-weighted moment estimators (PWME), and compare the
asymptotic and small-sample statistical properties (via computer
simulation) of the PWME with maximum likelihood estimators (MLE) and
Jenkinson’s (1969) method of sextiles estimators (JSE). They also
compare the statistical properties of quantile estimators (which are
based on the distribution parameter estimators). Finally, they derive a
test of the null hypothesis that the shape parameter is zero, and assess
its performance via computer simulation.
Hosking et al. (1985) note that when , the moments and probability-weighted moments of the GEVD do not exist. They also note that in practice the shape parameter usually lies between -1/2 and 1/2.
Hosking et al. (1985) found that the asymptotic efficiency of the PWME (the limit as the sample size approaches infinity of the ratio of the variance of the MLE divided by the variance of the PWME) tends to 0 as the shape parameter approaches 1/2 or -1/2. For values of within the range , however, the efficiency of the estimator of location is close to 100%, and the efficiency of the estimators of scale and shape are greater than 70%. With respect to estimating large quantiles, Hosking et al. (1985) found that the asymptotic efficiency of the PWME is poor for outside the range .
For the small sample results, Hosking et al. (1985) considered several possible forms of the PWME (see equations (8)-(10) below). The best overall results were given by the plotting-position PWME defined by equations (9) and (10) with and .
Small sample results for estimating the parameters show that for all three methods give almost identical results. For the results for the different estimators are a bit different, but not dramatically so. The MLE tends to be slightly less biased than the other two methods. For estimating the shape parameter, the MLE has a slightly larger standard deviation, and the PWME has consistently the smallest standard deviation.
Small sample results for estimating large quantiles show that for all three methods are comparable. For the PWME and JSE are comparable and in general have much smaller standard deviations than the MLE. All three methods are very inaccurate for estimating large quantiles in small samples, especially when .
Hosking et al. (1985) derive a test of the null hypothesis based on the PWME of . The test is performed by computing the statistic:
and comparing
to a standard normal distribution (see zTestGevdShape).
Based on computer simulations using the plotting-position PWME, they
found that a sample size of
ensures an adequate normal approximation. They also found this test has
power comparable to the modified likelihood-ratio test, which was found
by Hosking (1984) to be the best overall test of
of the thirteen tests he considered.
More Details
Probability-Weighted Moments and Parameters of the
GEVD
The definition of a probability-weighted
moment, introduced by Greenwood et al. (1979), is as follows. Let
denote a random variable with cdf
,
and let
denote the
’th
quantile of the distribution. Then the
’th
probability-weighted moment is given by:
where , , and are real numbers.
Hosking et al. (1985) set
and Greenwood et al. (1979) show that
where
denotes the expected value of the
’th
order statistic (i.e., the maximum) in a sample of size
.
Hosking et al. (1985) show that if
has a GEVD with parameters
location=,
scale=,
and
shape=,
where
,
then
for , where denotes the gamma function. Thus,
Estimating Distribution Parameters
Using the results of Landwehr et al. (1979), Hosking et al. (1985) show
that given a random sample of
values from some arbitrary distribution, an unbiased, distribution-free,
and parameter-free estimator of the probability-weighted moment
defined above is given by:
where the quantity denotes the ’th order statistic in the random sample of size . Hosking et al. (1985) note that this estimator is closely related to U-statistics (Hoeffding, 1948; Lehmann, 1975, pp. 362-371).
An alternative “plotting position” estimator is given by:
where
denotes the plotting position of the ’th order statistic in the random sample of size , that is, a distribution-free estimate of the cdf of evaluated at the ’th order statistic. Typically, plotting positions have the form:
where . For this form of plotting position, the plotting-position estimators in (10) are asymptotically equivalent to the U-statistic estimators in (9).
Although the unbiased and plotting position estimators are asymptotically equivalent (Hosking, 1990), Hosking and Wallis (1995) recommend using the unbiased estimator for almost all applications because of its superior performance in small and moderate samples.
Using equations (6)-(8) above, i.e., the three equations involving , , and , Hosking et al. (1985) define the probability-weighted moment estimators of , , and as the solutions to these three simultaneous equations, with the values of the probability-weighted moments replaced by their estimated values (using either the unbiased or plotting posistion estiamtors in (9) and (10) above). Hosking et al. (1985) note that the third equation (equation (8)) must be solved iteratively for the PWME of . Using the unbiased estimators of the PWMEs to solve for , the PWMEs of and are given by:
Hosking et al. (1985) show that when the unbiased estimates of the PWMEs are used to estimate the probability-weighted moments, the estimates of and satisfy the feasibility criteria
almost surely.
Hosking et al. (1985) show that the asymptotic distribution of the PWME is multivariate normal with mean equal to , and they derive the formula for the asymptotic variance-covariance matrix as:
where
denotes the variance-covariance matrix of the estimators of the probability-weighted moments defined in either equation (9) or (10) above (recall that these two estimators are asymptotically equivalent), and the matrix is defined by:
for . Hosking et al. (1985) provide formulas for the matrix
in Appendix C of their manuscript. Note that there is a typographical error in equation (C.11) (Jon Hosking, personal communication, 1996). In the second line of this equation, the quantity should be replaced with .
The matrix in equation (16) is not easily computed. Its inverse, however, is easy to compute and then can be inverted numerically (Jon Hosking, 1996, personal communication). The inverse of is given by:
and by equation (5) above it can be shown that:
for .
Estimating Distribution Quantiles
If
has a GEVD with parameters
location=,
scale=,
and
shape=,
where
,
then the
’th
quantile of the distribution is given by:
. Given estimated values of the location, scale, and shape parameters, the ’th quantile of the distribution is estimated as: