Maximum spacing estimation

From HandWiki
Short description: Method of estimating a statistical model's parameters
The maximum spacing method tries to find a distribution function such that the spacings, D(i), are all approximately of the same length. This is done by maximizing their geometric mean.

In statistics, maximum spacing estimation (MSE or MSP), or maximum product of spacing estimation (MPS), is a method for estimating the parameters of a univariate statistical model.[1] The method requires maximization of the geometric mean of spacings in the data, which are the differences between the values of the cumulative distribution function at neighbouring data points.

The concept underlying the method is based on the probability integral transform, in that a set of independent random samples derived from any random variable should on average be uniformly distributed with respect to the cumulative distribution function of the random variable. The MPS method chooses the parameter values that make the observed data as uniform as possible, according to a specific quantitative measure of uniformity.

One of the most common methods for estimating the parameters of a distribution from data, the method of maximum likelihood (MLE), can break down in various cases, such as involving certain mixtures of continuous distributions.[2] In these cases the method of maximum spacing estimation may be successful.

Apart from its use in pure mathematics and statistics, the trial applications of the method have been reported using data from fields such as hydrology,[3] econometrics,[4] magnetic resonance imaging,[5] and others.[6]

History and usage

The MSE method was derived independently by Russel Cheng and Nik Amin at the University of Wales Institute of Science and Technology, and Bo Ranneby at the Swedish University of Agricultural Sciences.[2] The authors explained that due to the probability integral transform at the true parameter, the “spacing” between each observation should be uniformly distributed. This would imply that the difference between the values of the cumulative distribution function at consecutive observations should be equal. This is the case that maximizes the geometric mean of such spacings, so solving for the parameters that maximize the geometric mean would achieve the “best” fit as defined this way. (Ranneby 1984) justified the method by demonstrating that it is an estimator of the Kullback–Leibler divergence, similar to maximum likelihood estimation, but with more robust properties for some classes of problems.

There are certain distributions, especially those with three or more parameters, whose likelihoods may become infinite along certain paths in the parameter space. Using maximum likelihood to estimate these parameters often breaks down, with one parameter tending to the specific value that causes the likelihood to be infinite, rendering the other parameters inconsistent. The method of maximum spacings, however, being dependent on the difference between points on the cumulative distribution function and not individual likelihood points, does not have this issue, and will return valid results over a much wider array of distributions.[1]

The distributions that tend to have likelihood issues are often those used to model physical phenomena. (Hall al.) seek to analyze flood alleviation methods, which requires accurate models of river flood effects. The distributions that better model these effects are all three-parameter models, which suffer from the infinite likelihood issue described above, leading to Hall's investigation of the maximum spacing procedure. (Wong Li), when comparing the method to maximum likelihood, use various data sets ranging from a set on the oldest ages at death in Sweden between 1905 and 1958 to a set containing annual maximum wind speeds.

Definition

Given an iid random sample {x1, ..., xn} of size n from a univariate distribution with continuous cumulative distribution function F(x;θ0), where θ0 ∈ Θ is an unknown parameter to be estimated, let {x(1), ..., x(n)} be the corresponding ordered sample, that is the result of sorting of all observations from smallest to largest. For convenience also denote x(0) = −∞ and x(n+1) = +∞.

Define the spacings as the “gaps” between the values of the distribution function at adjacent ordered points:[7] [math]\displaystyle{ D_i(\theta) = F(x_{(i)};\,\theta) - F(x_{(i-1)};\,\theta), \quad i=1,\ldots,n+1. }[/math]

Then the maximum spacing estimator of θ0 is defined as a value that maximizes the logarithm of the geometric mean of sample spacings: [math]\displaystyle{ \hat{\theta} = \underset{\theta\in\Theta}{\operatorname{arg\,max}} \; S_n(\theta), \quad\text{where }\ S_n(\theta) = \ln\!\! \sqrt[n+1]{D_1D_2\cdots D_{n+1}} = \frac{1}{n+1}\sum_{i=1}^{n+1}\ln{D_i}(\theta). }[/math]

By the inequality of arithmetic and geometric means, function Sn(θ) is bounded from above by −ln(n+1), and thus the maximum has to exist at least in the supremum sense.

Note that some authors define the function Sn(θ) somewhat differently. In particular, (Ranneby 1984) multiplies each Di by a factor of (n+1), whereas (Cheng Stephens) omit the ​1n+1 factor in front of the sum and add the “−” sign in order to turn the maximization into minimization. As these are constants with respect to θ, the modifications do not alter the location of the maximum of the function Sn.

Examples

This section presents two examples of calculating the maximum spacing estimator.

Example 1

A box containing the graph of two offset concave functions with different peaks, vertical lines bisecting the peaks, and labeled arrows pointing to where the vertical lines intersect the bottom of the box.
Plots of the log value of λ for the simplistic example under both likelihood and spacing estimation. The values for which both likelihood and spacing are maximized, the maximum likelihood and maximum spacing estimates, are identified.

Suppose two values x(1) = 2, x(2) = 4 were sampled from the exponential distribution F(x;λ) = 1 − e, x ≥ 0 with unknown parameter λ > 0. In order to construct the MSE we have to first find the spacings:

i F(x(i)) F(x(i−1)) Di = F(x(i)) − F(x(i−1))
1 1 − e−2λ 0 1 − e−2λ
2 1 − e−4λ 1 − e−2λ e−2λ − e−4λ
3 1 1 − e−4λ e−4λ

The process continues by finding the λ that maximizes the geometric mean of the “difference” column. Using the convention that ignores taking the (n+1)st root, this turns into the maximization of the following product: (1 − e−2λ) · (e−2λ − e−4λ) · (e−4λ). Letting μ = e−2λ, the problem becomes finding the maximum of μ5−2μ4+μ3. Differentiating, the μ has to satisfy 5μ4−8μ3+3μ2 = 0. This equation has roots 0, 0.6, and 1. As μ is actually e−2λ, it has to be greater than zero but less than one. Therefore, the only acceptable solution is [math]\displaystyle{ \mu=0.6 \quad \Rightarrow \quad \lambda_{\text{MSE}} = \frac{\ln 0.6}{-2} \approx 0.255, }[/math] which corresponds to an exponential distribution with a mean of ​1λ ≈ 3.915. For comparison, the maximum likelihood estimate of λ is the inverse of the sample mean, 3, so λMLE = ⅓ ≈ 0.333.

Example 2

Suppose {x(1), ..., x(n)} is the ordered sample from a uniform distribution U(a,b) with unknown endpoints a and b. The cumulative distribution function is F(x;a,b) = (xa)/(ba) when x∈[a,b]. Therefore, individual spacings are given by [math]\displaystyle{ D_1 = \frac{x_{(1)}-a}{b-a}, \ \ D_i = \frac{x_{(i)}-x_{(i-1)}}{b-a}\ \text{for } i = 2, \ldots, n, \ \ D_{n+1} = \frac{b-x_{(n)}}{b-a} \ \ }[/math]

Calculating the geometric mean and then taking the logarithm, statistic Sn will be equal to [math]\displaystyle{ S_n(a,b) = \tfrac{\ln(x_{(1)}-a)}{n+1} + \tfrac{\sum_{i=2}^n \ln(x_{(i)}-x_{(i-1)})}{n+1} + \tfrac{\ln(b-x_{(n)})}{n+1} - \ln(b-a) }[/math] Here only three terms depend on the parameters a and b. Differentiating with respect to those parameters and solving the resulting linear system, the maximum spacing estimates will be

[math]\displaystyle{ \hat{a} = \frac{nx_{(1)} - x_{(n)}}{n-1},\ \ \hat{b} = \frac{nx_{(n)}-x_{(1)}}{n-1}. }[/math]

These are known to be the uniformly minimum variance unbiased (UMVU) estimators for the continuous uniform distribution.[1] In comparison, the maximum likelihood estimates for this problem [math]\displaystyle{ \scriptstyle\hat{a}=x_{(1)} }[/math] and [math]\displaystyle{ \scriptstyle\hat{b}=x_{(n)} }[/math] are biased and have higher mean-squared error.

Properties

Consistency and efficiency

A box containing a graph of an offset straight line and a "reverse J" curve that rises to meet the straight line.
Density
A box containing a graph of an offset straight line and a "J" curve that rises from the straight line.
Distribution
Plot of a “J-shaped” density function and its corresponding distribution. A shifted Weibull with a scale parameter of 15, a shape parameter of 0.5, and a location parameter of 10. The density asymptotically approaches infinity as x approaches 10, rendering the estimates of the other parameters inconsistent. Note that there is no inflection point in the graph of the distribution.

The maximum spacing estimator is a consistent estimator in that it converges in probability to the true value of the parameter, θ0, as the sample size increases to infinity.[2] The consistency of maximum spacing estimation holds under much more general conditions than for maximum likelihood estimators. In particular, in cases where the underlying distribution is J-shaped, maximum likelihood will fail where MSE succeeds.[1] An example of a J-shaped density is the Weibull distribution, specifically a shifted Weibull, with a shape parameter less than 1. The density will tend to infinity as x approaches the location parameter rendering estimates of the other parameters inconsistent.

Maximum spacing estimators are also at least as asymptotically efficient as maximum likelihood estimators, where the latter exist. However, MSEs may exist in cases where MLEs do not.[1]

Sensitivity

Maximum spacing estimators are sensitive to closely spaced observations, and especially ties.[8] Given [math]\displaystyle{ X_{i+k} = X_{i+k-1}=\cdots=X_i, \, }[/math] we get [math]\displaystyle{ D_{i+k}(\theta) = D_{i+k-1}(\theta) = \cdots = D_{i+1}(\theta) = 0. \, }[/math]

When the ties are due to multiple observations, the repeated spacings (those that would otherwise be zero) should be replaced by the corresponding likelihood.[1] That is, one should substitute [math]\displaystyle{ f_{i}(\theta) }[/math] for [math]\displaystyle{ D_i(\theta) }[/math], as [math]\displaystyle{ \lim_{x_i \to x_{i-1}}\frac{\int_{x_{i-1}}^{x_i}f(t;\theta)\,dt}{x_i-x_{i-1}} = f(x_{i-1},\theta) = f(x_{i},\theta), }[/math] since [math]\displaystyle{ x_{i} = x_{i-1} }[/math].

When ties are due to rounding error, (Cheng Stephens) suggest another method to remove the effects.[note 1] Given r tied observations from xi to xi+r−1, let δ represent the round-off error. All of the true values should then fall in the range [math]\displaystyle{ x \pm \delta }[/math]. The corresponding points on the distribution should now fall between [math]\displaystyle{ y_L = F(x-\delta, \hat\theta) }[/math] and [math]\displaystyle{ y_U = F(x+\delta, \hat\theta) }[/math]. Cheng and Stephens suggest assuming that the rounded values are uniformly spaced in this interval, by defining [math]\displaystyle{ D_j = \frac{y_U-y_L}{r-1} \quad (j=i+1,\ldots,i+r-1). }[/math]

The MSE method is also sensitive to secondary clustering.[8] One example of this phenomenon is when a set of observations is thought to come from a single normal distribution, but in fact comes from a mixture normals with different means. A second example is when the data is thought to come from an exponential distribution, but actually comes from a gamma distribution. In the latter case, smaller spacings may occur in the lower tail. A high value of M(θ) would indicate this secondary clustering effect, and suggesting a closer look at the data is required.[8]

Moran test

The statistic Sn(θ) is also a form of Moran or Moran-Darling statistic, M(θ), which can be used to test goodness of fit.[note 2] It has been shown that the statistic, when defined as [math]\displaystyle{ S_n(\theta) = M_n(\theta)= -\sum_{j=1}^{n+1}\ln{D_j(\theta)}, }[/math] is asymptotically normal, and that a chi-squared approximation exists for small samples.[8] In the case where we know the true parameter [math]\displaystyle{ \theta^0 }[/math], (Cheng Stephens) show that the statistic [math]\displaystyle{ \scriptstyle M_n(\theta) }[/math] has a normal distribution with [math]\displaystyle{ \begin{align} \mu_M & \approx (n+1)(\ln(n+1)+\gamma)-\frac{1}{2}-\frac{1}{12(n+1)},\\ \sigma^2_M & \approx (n+1)\left ( \frac{\pi^2}{6} -1 \right ) -\frac{1}{2}-\frac{1}{6(n+1)}, \end{align} }[/math] where γ is the Euler–Mascheroni constant which is approximately 0.57722.[note 3]

The distribution can also be approximated by that of [math]\displaystyle{ A }[/math], where [math]\displaystyle{ A = C_1 + C_2\chi^2_n \, }[/math], in which [math]\displaystyle{ \begin{align} C_1 &= \mu_M - \sqrt{\frac{\sigma^2_Mn}{2}},\\ C_2 &= {\sqrt\frac{\sigma^2_M}{2n}},\\ \end{align} }[/math] and where [math]\displaystyle{ \chi^2_n }[/math] follows a chi-squared distribution with [math]\displaystyle{ n }[/math] degrees of freedom. Therefore, to test the hypothesis [math]\displaystyle{ H_0 }[/math] that a random sample of [math]\displaystyle{ n }[/math] values comes from the distribution [math]\displaystyle{ F(x,\theta) }[/math], the statistic [math]\displaystyle{ T(\theta)= \frac{M(\theta)-C_1}{C_2} }[/math] can be calculated. Then [math]\displaystyle{ H_0 }[/math] should be rejected with significance [math]\displaystyle{ \alpha }[/math] if the value is greater than the critical value of the appropriate chi-squared distribution.[8]

Where θ0 is being estimated by [math]\displaystyle{ \hat\theta }[/math], (Cheng Stephens) showed that [math]\displaystyle{ S_n(\hat\theta) = M_n(\hat\theta) }[/math] has the same asymptotic mean and variance as in the known case. However, the test statistic to be used requires the addition of a bias correction term and is: [math]\displaystyle{ T(\hat\theta) = \frac{M(\hat\theta)+\frac{k}{2}-C_1}{C_2}, }[/math] where [math]\displaystyle{ k }[/math] is the number of parameters in the estimate.

Generalized maximum spacing

Alternate measures and spacings

(Ranneby Ekström) generalized the MSE method to approximate other measures besides the Kullback–Leibler measure. (Ekström 1997) further expanded the method to investigate properties of estimators using higher order spacings, where an m-order spacing would be defined as [math]\displaystyle{ F(X_{j+m}) - F(X_{j}) }[/math].

Multivariate distributions

(Ranneby al.) discuss extended maximum spacing methods to the multivariate case. As there is no natural order for [math]\displaystyle{ \mathbb{R}^k (k\gt 1) }[/math], they discuss two alternative approaches: a geometric approach based on Dirichlet cells and a probabilistic approach based on a “nearest neighbor ball” metric.

See also

Notes

  1. There appear to be some minor typographical errors in the paper. For example, in section 4.2, equation (4.1), the rounding replacement for [math]\displaystyle{ D_j }[/math], should not have the log term. In section 1, equation (1.2), [math]\displaystyle{ D_j }[/math] is defined to be the spacing itself, and [math]\displaystyle{ M(\theta) }[/math] is the negative sum of the logs of [math]\displaystyle{ D_j }[/math]. If [math]\displaystyle{ D_j }[/math] is logged at this step, the result is always ≤ 0, as the difference between two adjacent points on a cumulative distribution is always ≤ 1, and strictly < 1 unless there are only two points at the bookends. Also, in section 4.3, on page 392, calculation shows that it is the variance [math]\displaystyle{ \textstyle\tilde{\sigma^2} }[/math] which has MPS estimate of 6.87, not the standard deviation [math]\displaystyle{ \textstyle\tilde{\sigma} }[/math]. – Editor
  2. The literature refers to related statistics as Moran or Moran-Darling statistics. For example, (Cheng Stephens) analyze the form [math]\displaystyle{ \scriptstyle M(\theta)= -\sum_{j=1}^{n+1}\log{D_i(\theta)} }[/math] where [math]\displaystyle{ \scriptstyle D_i(\theta) }[/math] is defined as above. (Wong Li) use the same form as well. However, (Beirlant al.) uses the form [math]\displaystyle{ \scriptstyle M_n= -\sum_{j=0}^{n}\ln{((n + 1)(X_{n,i+1} - X_{n,i}))} }[/math], with the additional factor of [math]\displaystyle{ (n+1) }[/math] inside the logged summation. The extra factors will make a difference in terms of the expected mean and variance of the statistic. For consistency, this article will continue to use the Cheng & Amin/Wong & Li form. -- Editor
  3. (Wong Li) leave out the Euler–Mascheroni constant from their description. -- Editor

References

Citations

  1. 1.0 1.1 1.2 1.3 1.4 1.5 (Cheng Amin)
  2. 2.0 2.1 2.2 (Ranneby 1984)
  3. (Hall al.)
  4. (Anatolyev Kosenok)
  5. (Pieciak 2014)
  6. (Wong Li)
  7. (Pyke 1965)
  8. 8.0 8.1 8.2 8.3 8.4 (Cheng Stephens)

Works cited