Frequent Links
Open Access Articles- Top Results for Maximum likelihood
International Journal of Advanced Research in Electrical, Electronics and Instrumentation Energy
Nonlinear System Identification Using Maximum Likelihood EstimationInternational Journal of Advanced Research in Electrical, Electronics and Instrumentation Energy
Image segmentation by MAP-ML EstimationInternational Journal of Advanced Research in Electrical, Electronics and Instrumentation Energy
Comparison of Two Popular Methods for Transformer Weibull Lifetime ModellingJournal of Global Research in Computer Sciences
Classification and Clustering of Web Log Data to Analyze User Navigation PatternsJournal of Electrical & Electronic Systems
Array Signal Processing for Maximum Likelihood Direction-of-Arrival EstimationMaximum likelihood
This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. (September 2009) |
In statistics, maximum-likelihood estimation (MLE) is a method of estimating the parameters of a statistical model. When applied to a data set and given a statistical model, maximum-likelihood estimation provides estimates for the model's parameters.
The method of maximum likelihood corresponds to many well-known estimation methods in statistics. For example, one may be interested in the heights of adult female penguins, but be unable to measure the height of every single penguin in a population due to cost or time constraints. Assuming that the heights are normally (Gaussian) distributed with some unknown mean and variance, the mean and variance can be estimated with MLE while only knowing the heights of some sample of the overall population. MLE would accomplish this by taking the mean and variance as parameters and finding particular parametric values that make the observed results the most probable (given the model).
In general, for a fixed set of data and underlying statistical model, the method of maximum likelihood selects the set of values of the model parameters that maximizes the likelihood function. Intuitively, this maximizes the "agreement" of the selected model with the observed data, and for discrete random variables it indeed maximizes the probability of the observed data under the resulting distribution. Maximum-likelihood estimation gives a unified approach to estimation, which is well-defined in the case of the normal distribution and many other problems. However, in some complicated problems, difficulties do occur: in such problems, maximum-likelihood estimators are unsuitable or do not exist.^{[citation needed]}
Contents
Principles
Suppose there is a sample x_{1}, x_{2}, …, x_{n} of n independent and identically distributed observations, coming from a distribution with an unknown probability density function f_{0}(·). It is however surmised that the function f_{0} belongs to a certain family of distributions { f(·#REDIRECTmw:Help:Magic words#Other
This page is a soft redirect. θ), θ ∈ Θ } (where θ is a vector of parameters for this family), called the parametric model, so that f_{0} = f(·#REDIRECTmw:Help:Magic words#Other
This page is a soft redirect. θ_{0}). The value θ_{0} is unknown and is referred to as the true value of the parameter vector. It is desirable to find an estimator <math style="vertical-align:0">\scriptstyle\hat\theta</math> which would be as close to the true value θ_{0} as possible. Either or both the observed variables x_{i} and the parameter θ can be vectors.
To use the method of maximum likelihood, one first specifies the joint density function for all observations. For an independent and identically distributed sample, this joint density function is
- <math>
f(x_1,x_2,\ldots,x_n\mid\theta) = f(x_1|\theta)\times f(x_2|\theta) \times \cdots \times f(x_n|\theta). </math>
Now we look at this function from a different perspective by considering the observed values x_{1}, x_{2}, …, x_{n} to be fixed "parameters" of this function, whereas θ will be the function's variable and allowed to vary freely; this function will be called the likelihood:
- <math>
\mathcal{L}(\theta\,;\,x_1,\ldots,x_n) = f(x_1,x_2,\ldots,x_n\mid\theta) = \prod_{i=1}^n f(x_i\mid\theta). </math>
Note <math>;</math> denotes a separation between the two input arguments: <math>\theta</math> and the vector-valued input <math>x_1,\ldots,x_n</math>.
In practice it is often more convenient to work with the logarithm of the likelihood function, called the log-likelihood:
- <math>
\ln\mathcal{L}(\theta\,;\,x_1,\ldots,x_n) = \sum_{i=1}^n \ln f(x_i\mid\theta), </math>
or the average log-likelihood:
- <math>
\hat\ell = \frac1n \ln\mathcal{L}. </math>
The hat over ℓ indicates that it is akin to some estimator. Indeed, <math style="vertical-align:0">\scriptstyle\hat\ell</math> estimates the expected log-likelihood of a single observation in the model.
The method of maximum likelihood estimates θ_{0} by finding a value of θ that maximizes <math style="vertical-align:-.32em">\scriptstyle\hat\ell(\theta;x)</math>. This method of estimation defines a maximum-likelihood estimator (MLE) of θ_{0} …
- <math>
\{ \hat\theta_\mathrm{mle}\} \subseteq \{ \underset{\theta\in\Theta}{\operatorname{arg\,max}}\ \hat\ell(\theta\,;\,x_1,\ldots,x_n) \}. </math>
… if any maximum exists. An MLE estimate is the same regardless of whether we maximize the likelihood or the log-likelihood function, since log is a strictly monotonically increasing function.
For many models, a maximum likelihood estimator can be found as an explicit function of the observed data x_{1}, …, x_{n}. For many other models, however, no closed-form solution to the maximization problem is known or available, and an MLE has to be found numerically using optimization methods. For some problems, there may be multiple estimates that maximize the likelihood. For other problems, no maximum likelihood estimate exists (meaning that the log-likelihood function increases without attaining the supremum value).
In the exposition above, it is assumed that the data are independent and identically distributed. The method can be applied however to a broader setting, as long as it is possible to write the joint density function f(x_{1}, …, x_{n} #REDIRECTmw:Help:Magic words#Other
This page is a soft redirect. θ), and its parameter θ has a finite dimension which does not depend on the sample size n. In a simpler extension, an allowance can be made for data heterogeneity, so that the joint density is equal to f_{1}(x_{1}|θ) · f_{2}(x_{2}|θ) · ··· · f_{n}(x_{n} #REDIRECTmw:Help:Magic words#Other
This page is a soft redirect. θ). Put another way, we are now assuming that each observation x_{i} comes from a random variable that has its own distribution function f_{i}. In the more complicated case of time series models, the independence assumption may have to be dropped as well.
A maximum likelihood estimator coincides with the most probable Bayesian estimator given a uniform prior distribution on the parameters. Indeed, the maximum a posteriori estimate is the parameter θ that maximizes the probability of θ given the data, given by Bayes' theorem:
- <math>
P(\theta\mid x_1,x_2,\ldots,x_n) = \frac{f(x_1,x_2,\ldots,x_n\mid\theta)P(\theta)}{P(x_1,x_2,\ldots,x_n)} </math>
where <math>P(\theta)</math> is the prior distribution for the parameter θ and where <math>P(x_1,x_2,\ldots,x_n)</math> is the probability of the data averaged over all parameters. Since the denominator is independent of θ, the Bayesian estimator is obtained by maximizing <math>f(x_1,x_2,\ldots,x_n\mid\theta)P(\theta)</math> with respect to θ. If we further assume that the prior <math>P(\theta)</math> is a uniform distribution, the Bayesian estimator is obtained by maximizing the likelihood function <math>f(x_1,x_2,\ldots,x_n|\theta)</math>. Thus the Bayesian estimator coincides with the maximum-likelihood estimator for a uniform prior distribution <math>P(\theta)</math>.
Properties
A maximum-likelihood estimator is an extremum estimator obtained by maximizing, as a function of θ, the objective function (c.f., the loss function)
- <math>
\hat\ell(\theta\mid x)=\frac1n \sum_{i=1}^n \ln f(x_i\mid\theta), </math>
this being the sample analogue of the expected log-likelihood <math>\ell(\theta) = \operatorname{E}[\, \ln f(x_i\mid\theta) \,]</math>, where this expectation is taken with respect to the true density <math>f(\cdot \mid \theta_0)</math>.
Maximum-likelihood estimators have no optimum properties for finite samples, in the sense that (when evaluated on finite samples) other estimators may have greater concentration around the true parameter-value.^{[1]} However, like other estimation methods, maximum-likelihood estimation possesses a number of attractive limiting properties: As the sample size increases to infinity, sequences of maximum-likelihood estimators have these properties:
- Consistency: the sequence of MLEs converges in probability to the value being estimated.
- Asymptotic normality: as the sample size increases, the distribution of the MLE tends to the Gaussian distribution with mean <math>\theta</math> and covariance matrix equal to the inverse of the Fisher information matrix.
- Efficiency, i.e., it achieves the Cramér–Rao lower bound when the sample size tends to infinity. This means that no consistent estimator has lower asymptotic mean squared error than the MLE (or other estimators attaining this bound).
- Second-order efficiency after correction for bias.
Consistency
Under the conditions outlined below, the maximum likelihood estimator is consistent. The consistency means that having a sufficiently large number of observations n, it is possible to find the value of θ_{0} with arbitrary precision. In mathematical terms this means that as n goes to infinity the estimator <math style="vertical-align:0">\scriptstyle\hat\theta</math> converges in probability to its true value:
- <math>
\hat\theta_\mathrm{mle}\ \xrightarrow{p}\ \theta_0. </math>
Under slightly stronger conditions, the estimator converges almost surely (or strongly) to:
- <math>
\hat\theta_\mathrm{mle}\ \xrightarrow{\text{a.s.}}\ \theta_0. </math>
To establish consistency, the following conditions are sufficient:^{[2]}
- \ln f(x\mid\theta)\big
- < D(x) \quad \text{ for all } \theta\in\Theta.
</math>
By the uniform law of large numbers, the dominance condition together with continuity establish the uniform convergence in probability of the log-likelihood:
- <math>
- \hat\ell(\theta\mid x) - \ell(\theta)\,\big
- \ \xrightarrow{p}\ 0. </math>
The dominance condition can be employed in the case of i.i.d. observations. In the non-i.i.d. case the uniform convergence in probability can be checked by showing that the sequence <math style="vertical-align:-.3em">\scriptstyle\hat\ell(\theta\mid x)</math> is stochastically equicontinuous.
If one wants to demonstrate that the ML estimator <math style="vertical-align:0">\scriptstyle\hat\theta</math> converges to θ_{0} almost surely, then a stronger condition of uniform convergence almost surely has to be imposed:
- <math>
\sup_{\theta\in\Theta} \big\|\;\hat\ell(x\mid\theta) - \ell(\theta)\;\big\| \ \xrightarrow{\text{a.s.}}\ 0. </math>
Asymptotic normality
This section may require cleanup to meet Wikipedia's quality standards. (January 2010) |
Maximum-likelihood estimators can lack asymptotic normality and can be inconsistent if there is a failure of one (or more) of the below regularity conditions:
Estimate on boundary. Sometimes the maximum likelihood estimate lies on the boundary of the set of possible parameters, or (if the boundary is not, strictly speaking, allowed) the likelihood gets larger and larger as the parameter approaches the boundary. Standard asymptotic theory needs the assumption that the true parameter value lies away from the boundary. If we have enough data, the maximum likelihood estimate will keep away from the boundary too. But with smaller samples, the estimate can lie on the boundary. In such cases, the asymptotic theory clearly does not give a practically useful approximation. Examples here would be variance-component models, where each component of variance, σ^{2}, must satisfy the constraint σ^{2} ≥0.
Data boundary parameter-dependent. For the theory to apply in a simple way, the set of data values which has positive probability (or positive probability density) should not depend on the unknown parameter. A simple example where such parameter-dependence does hold is the case of estimating θ from a set of independent identically distributed when the common distribution is uniform on the range (0,θ). For estimation purposes the relevant range of θ is such that θ cannot be less than the largest observation. Because the interval (0,θ) is not compact, there exists no maximum for the likelihood function: For any estimate of theta, there exists a greater estimate that also has greater likelihood. In contrast, the interval [0,θ] includes the end-point θ and is compact, in which case the maximum-likelihood estimator exists. However, in this case, the maximum-likelihood estimator is biased. Asymptotically, this maximum-likelihood estimator is not normally distributed.^{[3]}
Nuisance parameters. For maximum likelihood estimations, a model may have a number of nuisance parameters. For the asymptotic behaviour outlined to hold, the number of nuisance parameters should not increase with the number of observations (the sample size). A well-known example of this case is where observations occur as pairs, where the observations in each pair have a different (unknown) mean but otherwise the observations are independent and normally distributed with a common variance. Here for 2N observations, there are N+1 parameters. It is well known that the maximum likelihood estimate for the variance does not converge to the true value of the variance.
Increasing information. For the asymptotics to hold in cases where the assumption of independent identically distributed observations does not hold, a basic requirement is that the amount of information in the data increases indefinitely as the sample size increases. Such a requirement may not be met if either there is too much dependence in the data (for example, if new observations are essentially identical to existing observations), or if new independent observations are subject to an increasing observation error.
Some regularity conditions which ensure this behavior are:
- The first and second derivatives of the log-likelihood function must be defined.
- The Fisher information matrix must not be zero, and must be continuous as a function of the parameter.
- The maximum likelihood estimator is consistent.
Suppose that conditions for consistency of maximum likelihood estimator are satisfied, and^{[4]}
- θ_{0} ∈ interior(Θ);
- f(x | θ) > 0 and is twice continuously differentiable in θ in some neighborhood N of θ_{0};
- ∫ sup_{θ∈N}||∇_{θ}f(x | θ)||dx < ∞, and ∫ sup_{θ∈N}||∇_{θθ}f(x|θ)||dx < ∞;
- I = E[∇_{θ}lnf(x | θ_{0}) ∇_{θ}lnf(x|θ_{0})′] exists and is nonsingular;
- E[ sup_{θ∈N}||∇_{θθ}lnf(x | θ)||] < ∞.
Then the maximum likelihood estimator has asymptotically normal distribution:
- <math>
\sqrt{n}\big(\hat\theta_\mathrm{mle} - \theta_0\big)\ \xrightarrow{d}\ \mathcal{N}(0,\,I^{-1}). </math>
Proof, skipping the technicalities:
Since the log-likelihood function is differentiable, and θ_{0} lies in the interior of the parameter set, in the maximum the first-order condition will be satisfied:
- <math>
\nabla_{\!\theta}\, \hat\ell(\hat\theta\mid x) = \frac1n \sum_{i=1}^n \nabla_{\!\theta}\ln f(x_i\mid\hat\theta) = 0. </math>
When the log-likelihood is twice differentiable, this expression can be expanded into a Taylor series around the point θ = θ_{0}:
- <math>
0 = \frac1n \sum_{i=1}^n \nabla_{\!\theta}\ln f(x_i\mid\theta_0) + \Bigg[\, \frac1n \sum_{i=1}^n \nabla_{\!\theta\theta}\ln f(x_i\mid\tilde\theta) \,\Bigg] (\hat\theta - \theta_0), </math>
where <math style="vertical-align:-.15em">\tilde\theta</math> is some point intermediate between θ_{0} and <math style="vertical-align:-.15em">\hat\theta</math>. From this expression we can derive that
- <math>
\sqrt{n}(\hat{\theta} - \theta_0) = \Bigg[\, {- \frac{1}{n} \sum_{i=1}^n \nabla_{\!\theta\theta}\ln f(x_i\mid\tilde\theta)} \,\Bigg]^{-1} \frac{1}{\sqrt{n}} \sum_{i=1}^n \nabla_{\!\theta}\ln f(x_i\mid\theta_0) </math>
Here the expression in square brackets converges in probability to H = E[−∇_{θθ}ln f(x | θ_{0})] by the law of large numbers. The continuous mapping theorem ensures that the inverse of this expression also converges in probability, to H^{−1}. The second sum, by the central limit theorem, converges in distribution to a multivariate normal with mean zero and variance matrix equal to the Fisher information I. Thus, applying Slutsky's theorem to the whole expression, we obtain that
- <math>
\sqrt{n}(\hat\theta - \theta_0)\ \ \xrightarrow{d}\ \ \mathcal{N}\big(0,\ H^{-1}IH^{-1}\big). </math>
Finally, the information equality guarantees that when the model is correctly specified, matrix H will be equal to the Fisher information I, so that the variance expression simplifies to just I^{−1}.
Functional invariance
The maximum likelihood estimator selects the parameter value which gives the observed data the largest possible probability (or probability density, in the continuous case). If the parameter consists of a number of components, then we define their separate maximum likelihood estimators, as the corresponding component of the MLE of the complete parameter. Consistent with this, if <math>\widehat{\theta}</math> is the MLE for θ, and if g(θ) is any transformation of θ, then the MLE for α = g(θ) is by definition
- <math>\widehat{\alpha} = g(\,\widehat{\theta}\,). \,</math>
It maximizes the so-called profile likelihood:
- <math>\bar{L}(\alpha) = \sup_{\theta: \alpha = g(\theta)} L(\theta). \, </math>
The MLE is also invariant with respect to certain transformations of the data. If Y = g(X) where g is one to one and does not depend on the parameters to be estimated, then the density functions satisfy
- <math>f_Y(y) = f_X(x)/|g'(x)| \, </math>
and hence the likelihood functions for X and Y differ only by a factor that does not depend on the model parameters.
For example, the MLE parameters of the log-normal distribution are the same as those of the normal distribution fitted to the logarithm of the data.
Higher-order properties
The standard asymptotics tells that the maximum-likelihood estimator is √n-consistent and asymptotically efficient, meaning that it reaches the Cramér–Rao bound:
- <math>
\sqrt{n}(\hat\theta_\text{mle} - \theta_0)\ \ \xrightarrow{d}\ \ \mathcal{N}(0,\ I^{-1}), </math>
where I is the Fisher information matrix:
- <math>
I_{jk} = \operatorname{E}_X\bigg[\;{-\frac{\partial^2\ln f_{\theta_0}(X_t)}{\partial\theta_j\,\partial\theta_k}} \;\bigg]. </math>
In particular, it means that the bias of the maximum-likelihood estimator is equal to zero up to the order n^{−1/2}. However when we consider the higher-order terms in the expansion of the distribution of this estimator, it turns out that θ_{mle} has bias of order n^{−1}. This bias is equal to (componentwise)^{[5]}
- <math>
b_s \equiv \operatorname{E}[(\hat\theta_\mathrm{mle} - \theta_0)_s] = \frac1n \cdot I^{si}I^{jk} \big( \tfrac12 K_{ijk} + J_{j,ik} \big) </math>
where Einstein's summation convention over the repeating indices has been adopted; I^{ jk} denotes the j,k-th component of the inverse Fisher information matrix I^{−1}, and
- <math>
\tfrac12 K_{ijk} + J_{j,ik} = \operatorname{E} \bigg[\; \frac12 \frac{\partial^3 \ln f_{\theta_0}(x_t)}{\partial\theta_i\,\partial\theta_j\,\partial\theta_k} + \frac{\partial\ln f_{\theta_0}(x_t)}{\partial\theta_j} \frac{\partial^2\ln f_{\theta_0}(x_t)}{\partial\theta_i\,\partial\theta_k} \;\bigg]. </math>
Using these formulas it is possible to estimate the second-order bias of the maximum likelihood estimator, and correct for that bias by subtracting it:
- <math>
\hat\theta^*_\mathrm{mle} = \hat\theta_\mathrm{mle} - \hat b . </math>
This estimator is unbiased up to the terms of order n^{−1}, and is called the bias-corrected maximum likelihood estimator.
This bias-corrected estimator is second-order efficient (at least within the curved exponential family), meaning that it has minimal mean squared error among all second-order bias-corrected estimators, up to the terms of the order n^{−2}. It is possible to continue this process, that is to derive the third-order bias-correction term, and so on. However as was shown by Kano (1996), the maximum-likelihood estimator is not third-order efficient.
Examples
Discrete uniform distribution
Consider a case where n tickets numbered from 1 to n are placed in a box and one is selected at random (see uniform distribution); thus, the sample size is 1. If n is unknown, then the maximum-likelihood estimator <math>\hat{n}</math> of n is the number m on the drawn ticket. (The likelihood is 0 for n < m, 1/n for n ≥ m, and this is greatest when n = m. Note that the maximum likelihood estimate of n occurs at the lower extreme of possible values {m, m + 1, ...}, rather than somewhere in the "middle" of the range of possible values, which would result in less bias.) The expected value of the number m on the drawn ticket, and therefore the expected value of <math>\hat{n}</math>, is (n + 1)/2. As a result, with a sample size of 1, the maximum likelihood estimator for n will systematically underestimate n by (n − 1)/2.
Discrete distribution, finite parameter space
Suppose one wishes to determine just how biased an unfair coin is. Call the probability of tossing a HEAD p. The goal then becomes to determine p.
Suppose the coin is tossed 80 times: i.e., the sample might be something like x_{1} = H, x_{2} = T, …, x_{80} = T, and the count of the number of HEADS "H" is observed.
The probability of tossing TAILS is 1 − p (so here p is θ above). Suppose the outcome is 49 HEADS and 31 TAILS, and suppose the coin was taken from a box containing three coins: one which gives HEADS with probability p = 1/3, one which gives HEADS with probability p = 1/2 and another which gives HEADS with probability p = 2/3. The coins have lost their labels, so which one it was is unknown. Using maximum likelihood estimation the coin that has the largest likelihood can be found, given the data that were observed. By using the probability mass function of the binomial distribution with sample size equal to 80, number successes equal to 49 but different values of p (the "probability of success"), the likelihood function (defined below) takes one of three values:
- <math>
\begin{align} \Pr(\mathrm{H} = 49 \mid p=1/3) & = \binom{80}{49}(1/3)^{49}(1-1/3)^{31} \approx 0.000, \\[6pt] \Pr(\mathrm{H} = 49 \mid p=1/2) & = \binom{80}{49}(1/2)^{49}(1-1/2)^{31} \approx 0.012, \\[6pt] \Pr(\mathrm{H} = 49 \mid p=2/3) & = \binom{80}{49}(2/3)^{49}(1-2/3)^{31} \approx 0.054. \end{align} </math>
The likelihood is maximized when p = 2/3, and so this is the maximum likelihood estimate for p.
Discrete distribution, continuous parameter space
Now suppose that there was only one coin but its p could have been any value 0 ≤ p ≤ 1. The likelihood function to be maximised is
- <math>
L(p) = f_D(\mathrm{H} = 49 \mid p) = \binom{80}{49} p^{49}(1-p)^{31}, </math>
and the maximisation is over all possible values 0 ≤ p ≤ 1.
One way to maximize this function is by differentiating with respect to p and setting to zero:
- <math>
\begin{align} {0}&{} = \frac{\partial}{\partial p} \left( \binom{80}{49} p^{49}(1-p)^{31} \right) \\[8pt]
& {}\propto 49p^{48}(1-p)^{31} - 31p^{49}(1-p)^{30} \\[8pt] & {}= p^{48}(1-p)^{30}\left[ 49(1-p) - 31p \right] \\[8pt] & {}= p^{48}(1-p)^{30}\left[ 49 - 80p \right]
\end{align} </math>
which has solutions p = 0, p = 1, and p = 49/80. The solution which maximizes the likelihood is clearly p = 49/80 (since p = 0 and p = 1 result in a likelihood of zero). Thus the maximum likelihood estimator for p is 49/80.
This result is easily generalized by substituting a letter such as t in the place of 49 to represent the observed number of 'successes' of our Bernoulli trials, and a letter such as n in the place of 80 to represent the number of Bernoulli trials. Exactly the same calculation yields the maximum likelihood estimator t / n for any sequence of n Bernoulli trials resulting in t 'successes'.
Continuous distribution, continuous parameter space
For the normal distribution <math>\mathcal{N}(\mu, \sigma^2)</math> which has probability density function
- <math>f(x\mid \mu,\sigma^2) = \frac{1}{\sqrt{2\pi}\ \sigma\ }
\exp{\left(-\frac {(x-\mu)^2}{2\sigma^2} \right)}, </math>
the corresponding probability density function for a sample of n independent identically distributed normal random variables (the likelihood) is
- <math>f(x_1,\ldots,x_n \mid \mu,\sigma^2) = \prod_{i=1}^{n} f( x_{i}\mid \mu, \sigma^2) = \left( \frac{1}{2\pi\sigma^2} \right)^{n/2} \exp\left( -\frac{ \sum_{i=1}^{n}(x_i-\mu)^2}{2\sigma^2}\right),</math>
or more conveniently:
- <math>f(x_1,\ldots,x_n \mid \mu,\sigma^2) = \left( \frac{1}{2\pi\sigma^2} \right)^{n/2} \exp\left(-\frac{ \sum_{i=1}^{n}(x_i-\bar{x})^2+n(\bar{x}-\mu)^2}{2\sigma^2}\right),</math>
where <math> \bar{x} </math> is the sample mean.
This family of distributions has two parameters: θ = (μ, σ), so we maximize the likelihood, <math>\mathcal{L} (\mu,\sigma) = f(x_1,\ldots,x_n \mid \mu, \sigma)</math>, over both parameters simultaneously, or if possible, individually.
Since the logarithm is a continuous strictly increasing function over the range of the likelihood, the values which maximize the likelihood will also maximize its logarithm. This log likelihood can be written as follows:
- <math>
\log ( \mathcal{L} (\mu,\sigma)) = (-n/2)\log(2\pi\sigma^2) - \frac{1}{2\sigma^2} \sum_{i=1}^{n} (x_i-\mu)^2
</math>
(Note: the log-likelihood is closely related to information entropy and Fisher information.)
We now compute the derivatives of this log likelihood as follows.
- <math>
\begin{align} 0 & = \frac{\partial}{\partial \mu} \log ( \mathcal{L} (\mu,\sigma)) =
0 - \frac{-2n(\bar{x}-\mu)}{2\sigma^2}.
\end{align} </math>
This is solved by
- <math>\hat\mu = \bar{x} = \sum^n_{i=1} \frac{x_i}n. </math>
This is indeed the maximum of the function since it is the only turning point in μ and the second derivative is strictly less than zero. Its expectation value is equal to the parameter μ of the given distribution,
- <math> E \left[ \widehat\mu \right] = \mu, \, </math>
which means that the maximum-likelihood estimator <math>\widehat\mu</math> is unbiased.
Similarly we differentiate the log likelihood with respect to σ and equate to zero:
- <math>
\begin{align} 0 & = \frac{\partial}{\partial \sigma} \log \left( \left( \frac{1}{2\pi\sigma^2} \right)^{n/2} \exp\left(-\frac{ \sum_{i=1}^{n}(x_i-\bar{x})^2+n(\bar{x}-\mu)^2}{2\sigma^2}\right) \right) \\[6pt] & = \frac{\partial}{\partial \sigma} \left( \frac{n}{2}\log\left( \frac{1}{2\pi\sigma^2} \right) - \frac{ \sum_{i=1}^{n}(x_i-\bar{x})^2+n(\bar{x}-\mu)^2}{2\sigma^2} \right) \\[6pt] & = -\frac{n}{\sigma} + \frac{ \sum_{i=1}^{n}(x_i-\bar{x})^2+n(\bar{x}-\mu)^2}{\sigma^3} \end{align} </math>
which is solved by
- <math>\widehat\sigma^2 = \frac 1 n \sum_{i=1}^n(x_i-\mu)^2.</math>
Inserting the estimate <math>\mu = \widehat\mu</math> we obtain
- <math>\widehat\sigma^2 = \frac{1}{n} \sum_{i=1}^{n} (x_{i} - \bar{x})^2 = \frac{1}{n}\sum_{i=1}^n x_i^2
-\frac{1}{n^2}\sum_{i=1}^n\sum_{j=1}^n x_i x_j.</math>
To calculate its expected value, it is convenient to rewrite the expression in terms of zero-mean random variables (statistical error) <math>\delta_i \equiv \mu - x_i</math>. Expressing the estimate in these variables yields
- <math>\widehat\sigma^2 = \frac{1}{n} \sum_{i=1}^{n} (\mu - \delta_i)^2 -\frac{1}{n^2}\sum_{i=1}^n\sum_{j=1}^n (\mu - \delta_i)(\mu - \delta_j).</math>
Simplifying the expression above, utilizing the facts that <math>E\left[\delta_i\right] = 0 </math> and <math> E[\delta_i^2] = \sigma^2 </math>, allows us to obtain
- <math>E \left[ \widehat\sigma^2 \right]= \frac{n-1}{n}\sigma^2.</math>
This means that the estimator <math>\widehat\sigma</math> is biased. However, <math>\widehat\sigma</math> is consistent.
Formally we say that the maximum likelihood estimator for <math>\theta=(\mu,\sigma^2)</math> is:
- <math>\widehat{\theta} = \left(\widehat{\mu},\widehat{\sigma}^2\right).</math>
In this case the MLEs could be obtained individually. In general this may not be the case, and the MLEs would have to be obtained simultaneously.
The normal log likelihood at its maximum takes a particularly simple form:
- <math>
\log ( \mathcal{L} (\hat\mu,\hat\sigma)) = \frac{-n}2 (\log(2\pi\hat\sigma^2) +1)
</math>
This maximum log likelihood can be shown to be the same for more general least squares, even for non-linear least squares. This is often used in determining likelihood-based approximate confidence intervals and confidence regions, which are generally more accurate than those using the asymptotic normality discussed above.
Non-independent variables
It may be the case that variables are correlated, that is, not independent. Two random variables X and Y are independent only if their joint probability density function is the product of the individual probability density functions, i.e.
- <math>f(x,y)=f(x)f(y)\,</math>
Suppose one constructs an order-n Gaussian vector out of random variables <math>(x_1,\ldots,x_n)\,</math>, where each variable has means given by <math>(\mu_1, \ldots, \mu_n)\,</math>. Furthermore, let the covariance matrix be denoted by <math>\Sigma</math>.
The joint probability density function of these n random variables is then given by:
- <math>f(x_1,\ldots,x_n)=\frac{1}{(2\pi)^{n/2}\sqrt{\text{det}(\Sigma)}} \exp\left( -\frac{1}{2} \left[x_1-\mu_1,\ldots,x_n-\mu_n\right]\Sigma^{-1} \left[x_1-\mu_1,\ldots,x_n-\mu_n\right]^T \right)</math>
In the two variable case, the joint probability density function is given by:
- <math> f(x,y) = \frac{1}{2\pi \sigma_x \sigma_y \sqrt{1-\rho^2}} \exp\left[ -\frac{1}{2(1-\rho^2)} \left(\frac{(x-\mu_x)^2}{\sigma_x^2} - \frac{2\rho(x-\mu_x)(y-\mu_y)}{\sigma_x\sigma_y} + \frac{(y-\mu_y)^2}{\sigma_y^2}\right) \right] </math>
In this and other cases where a joint density function exists, the likelihood function is defined as above, in the section Principles, using this density.
Iterative procedures
Consider problems where both states <math> x_{i} </math> and parameters such as <math>\sigma^2 </math> require to be estimated. Iterative procedures such as Expectation-maximization algorithms may be used to solve joint state-parameter estimation problems.
For example, suppose that n samples of state estimates <math> \hat{x}_{i} </math> together with a sample mean <math> \bar{x} </math> have been calculated by either a minimum-variance Kalman filter or a minimum-variance smoother using a previous variance estimate <math>\widehat\sigma^2 </math>. Then the next variance iterate may be obtained from the maximum likelihood estimate calculation
- <math>\widehat\sigma^2 = \frac{1}{n} \sum_{i=1}^{n} (\hat{x}_{i} - \bar{x})^2. </math>
The convergence of MLEs within filtering and smoothing EM algorithms are studied in^{[6]} ^{[7]} .^{[8]}
Applications
Maximum likelihood estimation is used for a wide range of statistical models, including:
- linear models and generalized linear models;
- exploratory and confirmatory factor analysis;
- structural equation modeling;
- many situations in the context of hypothesis testing and confidence interval \
- discrete choice models;
These uses arise across applications in widespread set of fields, including:
- communication systems;
- psychometrics;
- econometrics;
- time-delay of arrival (TDOA) in acoustic or electromagnetic detection;
- data modeling in nuclear and particle physics;
- magnetic resonance imaging;^{[9]}^{[10]}
- computational phylogenetics;
- origin/destination and path-choice modeling in transport networks;
- geographical satellite-image classification.
History
20px | This section requires expansion. (January 2010) |
Maximum-likelihood estimation was recommended, analyzed (with flawed attempts at proofs) and vastly popularized by R. A. Fisher between 1912 and 1922^{[11]} (although it had been used earlier by Gauss, Laplace, T. N. Thiele, and F. Y. Edgeworth).^{[12]} Reviews of the development of maximum likelihood have been provided by a number of authors.^{[13]}
Much of the theory of maximum-likelihood estimation was first developed for Bayesian statistics, and then simplified by later authors.^{[11]}
See also
- Other estimation methods
- Generalized method of moments are methods related to the likelihood equation in maximum likelihood estimation.
- M-estimator, an approach used in robust statistics.
- Maximum a posteriori (MAP) estimator, for a contrast in the way to calculate estimators when prior knowledge is postulated.
- Maximum spacing estimation, a related method that is more robust in many situations.
- Method of moments (statistics), another popular method for finding parameters of distributions.
- Method of support, a variation of the maximum likelihood technique.
- Minimum distance estimation
- Quasi-maximum likelihood estimator, an MLE estimator that is misspecified, but still consistent.
- Restricted maximum likelihood, a variation using a likelihood function calculated from a transformed set of data.
- Related concepts:
- The BHHH algorithm is a non-linear optimization algorithm that is popular for Maximum Likelihood estimations.
- Extremum estimator, a more general class of estimators to which MLE belongs.
- Fisher information, information matrix, its relationship to covariance matrix of ML estimates
- Likelihood function, a description on what likelihood functions are.
- Mean squared error, a measure of how 'good' an estimator of a distributional parameter is (be it the maximum likelihood estimator or some other estimator).
- The Rao–Blackwell theorem, a result which yields a process for finding the best possible unbiased estimator (in the sense of having minimal mean squared error). The MLE is often a good starting place for the process.
- Sufficient statistic, a function of the data through which the MLE (if it exists and is unique) will depend on the data.
References
- ^ Pfanzagl (1994, p. 206)
- ^ Newey & McFadden (1994, Theorem 2.5.)
- ^ Lehmann & Casella (1998)
- ^ Newey & McFadden (1994, Theorem 3.3.)
- ^ Cox & Snell (1968, formula (20))
- ^ Einicke, G.A.; Malos, J.T.; Reid, D.C.; Hainsworth, D.W. (January 2009). "Riccati Equation and EM Algorithm Convergence for Inertial Navigation Alignment". IEEE Trans. Signal Processing 57 (1): 370–375. doi:10.1109/TSP.2008.2007090.
- ^ Einicke, G.A.; Falco, G.; Malos, J.T. (May 2010). "EM Algorithm State Matrix Estimation for Navigation". IEEE Signal Processing Letters 17 (5): 437–440. doi:10.1109/LSP.2010.2043151.
- ^ Einicke, G.A.; Falco, G.; Dunn, M.T.; Reid, D.C. (May 2012). "Iterative Smoother-Based Variance Estimation". IEEE Signal Processing Letters 19 (5): 275–278. doi:10.1109/LSP.2012.2190278.
- ^ Sijbers, Jan; den Dekker, A.J. (2004). "Maximum Likelihood estimation of signal amplitude and noise variance from MR data". Magnetic Resonance in Medicine 51 (3): 586–594. PMID 15004801. doi:10.1002/mrm.10728.
- ^ Sijbers, Jan; den Dekker, A.J.; Scheunders, P.; Van Dyck, D. (1998). "Maximum Likelihood estimation of Rician distribution parameters". IEEE Transactions on Medical Imaging 17 (3): 357–361. PMID 9735899. doi:10.1109/42.712125.
- ^ ^{a} ^{b} Pfanzagl (1994)
- ^ Edgeworth (September 1908) and Edgeworth (December 1908)
- ^ Savage (1976), Pratt (1976), Stigler (1978, 1986, 1999), Hald (1998, 1999), and Aldrich (1997)
Further reading
- Aldrich, John (1997). "R. A. Fisher and the making of maximum likelihood 1912–1922". Statistical Science 12 (3): 162–176. MR 1617519. doi:10.1214/ss/1030037906.
- Andersen, Erling B. (1970); "Asymptotic Properties of Conditional Maximum Likelihood Estimators", Journal of the Royal Statistical Society B 32, 283–301
- Andersen, Erling B. (1980); Discrete Statistical Models with Social Science Applications, North Holland, 1980
- Basu, Debabrata (1988); Statistical Information and Likelihood : A Collection of Critical Essays by Dr. D. Basu; in Ghosh, Jayanta K., editor; Lecture Notes in Statistics, Volume 45, Springer-Verlag, 1988
- Cox, David R.; Snell, E. Joyce (1968). "A general definition of residuals". Journal of the Royal Statistical Society, Series B: 248–275. JSTOR 2984505.
- Edgeworth, Francis Y. (Sep 1908). "On the probable errors of frequency-constants". Journal of the Royal Statistical Society 71 (3): 499–512. JSTOR 2339293. doi:10.2307/2339293.
- Edgeworth, Francis Y. (Dec 1908). "On the probable errors of frequency-constants". Journal of the Royal Statistical Society 71 (4): 651–678. JSTOR 2339378. doi:10.2307/2339378.
- Einicke, G.A. (2012). Smoothing, Filtering and Prediction: Estimating the Past, Present and Future. Rijeka, Croatia: Intech. ISBN 978-953-307-752-9.
- Ferguson, Thomas S. (1982). "An inconsistent maximum likelihood estimate". Journal of the American Statistical Association 77 (380): 831–834. JSTOR 2287314. doi:10.1080/01621459.1982.10477894.
- Ferguson, Thomas S. (1996). A course in large sample theory. Chapman & Hall. ISBN 0-412-04371-8.
- Hald, Anders (1998). A history of mathematical statistics from 1750 to 1930. New York, NY: Wiley. ISBN 0-471-17912-4.
- Hald, Anders (1999). "On the history of maximum likelihood in relation to inverse probability and least squares". Statistical Science 14 (2): 214–222. JSTOR 2676741. doi:10.1214/ss/1009212248.
- Kano, Yutaka (1996). "Third-order efficiency implies fourth-order efficiency". Journal of the Japan Statistical Society 26: 101–117. doi:10.14490/jjss1995.26.101.
- Le Cam, Lucien (1990). "Maximum likelihood — an introduction". ISI Review 58 (2): 153–171. doi:10.2307/1403464.
- Le Cam, Lucien; Lo Yang, Grace (2000). Asymptotics in statistics: some basic concepts (Second ed.). Springer. ISBN 0-387-95036-2.
- Le Cam, Lucien (1986). Asymptotic methods in statistical decision theory. Springer-Verlag. ISBN 0-387-96307-3.
- Lehmann, Erich L.; Casella, George (1998). Theory of Point Estimation, 2nd ed. Springer. ISBN 0-387-98502-6.
- Newey, Whitney K.; McFadden, Daniel (1994). "Chapter 35: Large sample estimation and hypothesis testing". In Engle, Robert; McFadden, Dan. Handbook of Econometrics, Vol.4. Elsevier Science. pp. 2111–2245. ISBN 0-444-88766-0.
- Pfanzagl, Johann (1994). Parametric statistical theory. with the assistance of R. Hamböker. Berlin, DE: Walter de Gruyter. pp. 207–208. ISBN 3-11-013863-8.
- Pratt, John W. (1976). "F. Y. Edgeworth and R. A. Fisher on the efficiency of maximum likelihood estimation". The Annals of Statistics 4 (3): 501–514. JSTOR 2958222. doi:10.1214/aos/1176343457.
- Ruppert, David (2010). Statistics and Data Analysis for Financial Engineering. Springer. p. 98. ISBN 978-1-4419-7786-1.
- Savage, Leonard J. (1976). "On rereading R. A. Fisher". The Annals of Statistics 4 (3): 441–500. JSTOR 2958221. doi:10.1214/aos/1176343456.
- Stigler, Stephen M. (1978). "Francis Ysidro Edgeworth, statistician". Journal of the Royal Statistical Society, Series A 141 (3): 287–322. JSTOR 2344804. doi:10.2307/2344804.
- Stigler, Stephen M. (1986). The history of statistics: the measurement of uncertainty before 1900. Harvard University Press. ISBN 0-674-40340-1.
- Stigler, Stephen M. (1999). Statistics on the table: the history of statistical concepts and methods. Harvard University Press. ISBN 0-674-83601-4.
- van der Vaart, Aad W. (1998). Asymptotic Statistics. ISBN 0-521-78450-6.
External links
- Hazewinkel, Michiel, ed. (2001), "Maximum-likelihood method", Encyclopedia of Mathematics, Springer, ISBN 978-1-55608-010-4
- Maximum Likelihood Estimation Primer (an excellent tutorial)
- Implementing MLE for your own likelihood function using R
- A selection of likelihood functions in R
- "Tutorial on maximum likelihood estimation". Journal of Mathematical Psychology. CiteSeerX: 10
.1 ..1 .74 .671