An estimation procedure that is often claimed to be part of Bayesian statistics is the maximum a posteriori (MAP) estimate of an unknown quantity, that equals the mode of the posterior density with respect to some reference measure, typically the Lebesgue measure.
The MAP can be used to obtain a point estimate of an unobserved quantity on the basis of empirical data.
It is closely related to the method of maximum likelihood (ML) estimation, but employs an augmented optimization objective which incorporates a prior density over the quantity one wants to estimate.
MAP estimation is therefore a regularization of maximum likelihood estimation, so is not a well-defined statistic of the Bayesian posterior distribution.
Assume that we want to estimate an unobserved population parameter
Then the function: is known as the likelihood function and the estimate: is the maximum likelihood estimate of
as a random variable as in Bayesian statistics.
as the mode of the posterior density of this random variable: The denominator of the posterior density (the marginal likelihood of the model) is always positive and does not depend on
Observe that the MAP estimate of
coincides with the ML estimate when the prior
is a constant function), which occurs whenever the prior distribution is taken as the reference measure, as is typical in function-space applications.
MAP estimates can be computed in several ways: While only mild conditions are required for MAP estimation to be a limiting case of Bayes estimation (under the 0–1 loss function),[1] it is not representative of Bayesian methods in general.
This is because MAP estimates are point estimates, and depend on the arbitrary choice of reference measure, whereas Bayesian methods are characterized by the use of distributions to summarize data and draw inferences: thus, Bayesian methods tend to report the posterior mean or median instead, together with credible intervals.
This is both because these estimators are optimal under squared-error and linear-error loss respectively—which are more representative of typical loss functions—and for a continuous posterior distribution there is no loss function which suggests the MAP is the optimal point estimator.
In addition, the posterior density may often not have a simple analytic form: in this case, the distribution can be simulated using Markov chain Monte Carlo techniques, while optimization to find the mode(s) of the density may be difficult or impossible.
[citation needed] In many types of models, such as mixture models, the posterior may be multi-modal.
In such a case, the usual recommendation is that one should choose the highest mode: this is not always feasible (global optimization is a difficult problem), nor in some cases even possible (such as when identifiability issues arise).
Furthermore, the highest mode may be uncharacteristic of the majority of the posterior, especially in many dimensions.
Finally, unlike ML estimators, the MAP estimate is not invariant under reparameterization.
Switching from one parameterization to another involves introducing a Jacobian that impacts on the location of the maximum.
[2] In contrast, Bayesian posterior expectations are invariant under reparameterization.
As an example of the difference between Bayes estimators mentioned above (mean and median estimators) and using a MAP estimate, consider the case where there is a need to classify inputs
as either positive or negative (for example, loans as risky or safe).
Suppose there are just three possible hypotheses about the correct method of classification
Using the MAP estimate for the correct classifier
random variables and a prior distribution of
We wish to find the MAP estimate of
Note that the normal distribution is its own conjugate prior, so we will be able to find a closed-form solution analytically.
: Thus, we see that the MAP estimator for μ is given by[3] which turns out to be a linear interpolation between the prior mean and the sample mean weighted by their respective covariances.
is called a non-informative prior and leads to an improper probability distribution; in this case