fbpx
Wikipedia

Maximum a posteriori estimation

In Bayesian statistics, a maximum a posteriori probability (MAP) estimate is an estimate of an unknown quantity, that equals the mode of the posterior distribution. 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 distribution (that quantifies the additional information available through prior knowledge of a related event) over the quantity one wants to estimate. MAP estimation can therefore be seen as a regularization of maximum likelihood estimation.

Description Edit

Assume that we want to estimate an unobserved population parameter   on the basis of observations  . Let   be the sampling distribution of  , so that   is the probability of   when the underlying population parameter is  . Then the function:

 

is known as the likelihood function and the estimate:

 

is the maximum likelihood estimate of  .

Now assume that a prior distribution   over   exists. This allows us to treat   as a random variable as in Bayesian statistics. We can calculate the posterior distribution of   using Bayes' theorem:

 

where   is density function of  ,   is the domain of  .

The method of maximum a posteriori estimation then estimates   as the mode of the posterior distribution of this random variable:

 

The denominator of the posterior distribution (so-called marginal likelihood) is always positive and does not depend on   and therefore plays no role in the optimization. Observe that the MAP estimate of   coincides with the ML estimate when the prior   is uniform (i.e.,   is a constant function).

When the loss function is of the form

 

as   goes to 0, the Bayes estimator approaches the MAP estimator, provided that the distribution of   is quasi-concave.[1] But generally a MAP estimator is not a Bayes estimator unless   is discrete.

Computation Edit

MAP estimates can be computed in several ways:

  1. Analytically, when the mode(s) of the posterior distribution can be given in closed form. This is the case when conjugate priors are used.
  2. Via numerical optimization such as the conjugate gradient method or Newton's method. This usually requires first or second derivatives, which have to be evaluated analytically or numerically.
  3. Via a modification of an expectation-maximization algorithm. This does not require derivatives of the posterior density.
  4. Via a Monte Carlo method using simulated annealing

Limitations Edit

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 very representative of Bayesian methods in general. This is because MAP estimates are point estimates, 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 distribution 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 its mode(s) may be difficult or impossible.[citation needed]

 
An example of a density of a bimodal distribution in which the highest mode is uncharacteristic of the majority of the distribution

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.

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]

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  ,   and   with posteriors 0.4, 0.3 and 0.3 respectively. Suppose given a new instance,  ,   classifies it as positive, whereas the other two classify it as negative. Using the MAP estimate for the correct classifier  ,   is classified as positive, whereas the Bayes estimators would average over all hypotheses and classify   as negative.

Example Edit

Suppose that we are given a sequence   of IID   random variables and a prior distribution of   is given by  . 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.

The function to be maximized is then given by

 

which is equivalent to minimizing the following function of  :

 

Thus, we see that the MAP estimator for μ is given by

 

which turns out to be a linear interpolation between the prior mean and the sample mean weighted by their respective covariances.

The case of   is called a non-informative prior and leads to an ill-defined a priori probability distribution; in this case  

References Edit

  1. ^ a b Bassett, Robert; Deride, Julio (2018-01-30). "Maximum a posteriori estimators as a limit of Bayes estimators". Mathematical Programming: 1–16. arXiv:1611.05917. doi:10.1007/s10107-018-1241-0. ISSN 0025-5610.
  2. ^ Murphy, Kevin P. (2012). Machine learning : a probabilistic perspective. Cambridge, Massachusetts: MIT Press. pp. 151–152. ISBN 978-0-262-01802-9.
  • DeGroot, M. (1970). Optimal Statistical Decisions. McGraw-Hill. ISBN 0-07-016242-5.
  • Sorenson, Harold W. (1980). Parameter Estimation: Principles and Problems. Marcel Dekker. ISBN 0-8247-6987-2.
  • Hald, Anders (2007). "Gauss's Derivation of the Normal Distribution and the Method of Least Squares, 1809". A History of Parametric Statistical Inference from Bernoulli to Fisher, 1713–1935. New York: Springer. pp. 55–61. ISBN 978-0-387-46409-1.

maximum, posteriori, estimation, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, j. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Maximum a posteriori estimation news newspapers books scholar JSTOR September 2011 Learn how and when to remove this template message In Bayesian statistics a maximum a posteriori probability MAP estimate is an estimate of an unknown quantity that equals the mode of the posterior distribution 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 distribution that quantifies the additional information available through prior knowledge of a related event over the quantity one wants to estimate MAP estimation can therefore be seen as a regularization of maximum likelihood estimation Contents 1 Description 2 Computation 3 Limitations 4 Example 5 ReferencesDescription EditAssume that we want to estimate an unobserved population parameter 8 displaystyle theta nbsp on the basis of observations x displaystyle x nbsp Let f displaystyle f nbsp be the sampling distribution of x displaystyle x nbsp so that f x 8 displaystyle f x mid theta nbsp is the probability of x displaystyle x nbsp when the underlying population parameter is 8 displaystyle theta nbsp Then the function 8 f x 8 displaystyle theta mapsto f x mid theta nbsp is known as the likelihood function and the estimate 8 M L E x a r g m a x 8 f x 8 displaystyle hat theta mathrm MLE x underset theta operatorname arg max f x mid theta nbsp is the maximum likelihood estimate of 8 displaystyle theta nbsp Now assume that a prior distribution g displaystyle g nbsp over 8 displaystyle theta nbsp exists This allows us to treat 8 displaystyle theta nbsp as a random variable as in Bayesian statistics We can calculate the posterior distribution of 8 displaystyle theta nbsp using Bayes theorem 8 f 8 x f x 8 g 8 8 f x ϑ g ϑ d ϑ displaystyle theta mapsto f theta mid x frac f x mid theta g theta displaystyle int Theta f x mid vartheta g vartheta d vartheta nbsp where g displaystyle g nbsp is density function of 8 displaystyle theta nbsp 8 displaystyle Theta nbsp is the domain of g displaystyle g nbsp The method of maximum a posteriori estimation then estimates 8 displaystyle theta nbsp as the mode of the posterior distribution of this random variable 8 M A P x a r g m a x 8 f 8 x a r g m a x 8 f x 8 g 8 8 f x ϑ g ϑ d ϑ a r g m a x 8 f x 8 g 8 displaystyle begin aligned hat theta mathrm MAP x amp underset theta operatorname arg max f theta mid x amp underset theta operatorname arg max frac f x mid theta g theta displaystyle int Theta f x mid vartheta g vartheta d vartheta amp underset theta operatorname arg max f x mid theta g theta end aligned nbsp The denominator of the posterior distribution so called marginal likelihood is always positive and does not depend on 8 displaystyle theta nbsp and therefore plays no role in the optimization Observe that the MAP estimate of 8 displaystyle theta nbsp coincides with the ML estimate when the prior g displaystyle g nbsp is uniform i e g displaystyle g nbsp is a constant function When the loss function is of the form L 8 a 0 if a 8 lt c 1 otherwise displaystyle L theta a begin cases 0 amp text if a theta lt c 1 amp text otherwise end cases nbsp as c displaystyle c nbsp goes to 0 the Bayes estimator approaches the MAP estimator provided that the distribution of 8 displaystyle theta nbsp is quasi concave 1 But generally a MAP estimator is not a Bayes estimator unless 8 displaystyle theta nbsp is discrete Computation EditMAP estimates can be computed in several ways Analytically when the mode s of the posterior distribution can be given in closed form This is the case when conjugate priors are used Via numerical optimization such as the conjugate gradient method or Newton s method This usually requires first or second derivatives which have to be evaluated analytically or numerically Via a modification of an expectation maximization algorithm This does not require derivatives of the posterior density Via a Monte Carlo method using simulated annealingLimitations EditWhile 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 very representative of Bayesian methods in general This is because MAP estimates are point estimates 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 distribution 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 its mode s may be difficult or impossible citation needed nbsp An example of a density of a bimodal distribution in which the highest mode is uncharacteristic of the majority of the distributionIn 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 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 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 x displaystyle x nbsp 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 h 1 displaystyle h 1 nbsp h 2 displaystyle h 2 nbsp and h 3 displaystyle h 3 nbsp with posteriors 0 4 0 3 and 0 3 respectively Suppose given a new instance x displaystyle x nbsp h 1 displaystyle h 1 nbsp classifies it as positive whereas the other two classify it as negative Using the MAP estimate for the correct classifier h 1 displaystyle h 1 nbsp x displaystyle x nbsp is classified as positive whereas the Bayes estimators would average over all hypotheses and classify x displaystyle x nbsp as negative Example EditSuppose that we are given a sequence x 1 x n displaystyle x 1 dots x n nbsp of IID N m s v 2 displaystyle N mu sigma v 2 nbsp random variables and a prior distribution of m displaystyle mu nbsp is given by N m 0 s m 2 displaystyle N mu 0 sigma m 2 nbsp We wish to find the MAP estimate of m displaystyle mu nbsp Note that the normal distribution is its own conjugate prior so we will be able to find a closed form solution analytically The function to be maximized is then given by f m f x m p m L m 1 2 p s m exp 1 2 m m 0 s m 2 j 1 n 1 2 p s v exp 1 2 x j m s v 2 displaystyle f mu f x mid mu pi mu L mu frac 1 sqrt 2 pi sigma m exp left frac 1 2 left frac mu mu 0 sigma m right 2 right prod j 1 n frac 1 sqrt 2 pi sigma v exp left frac 1 2 left frac x j mu sigma v right 2 right nbsp which is equivalent to minimizing the following function of m displaystyle mu nbsp j 1 n x j m s v 2 m m 0 s m 2 displaystyle sum j 1 n left frac x j mu sigma v right 2 left frac mu mu 0 sigma m right 2 nbsp Thus we see that the MAP estimator for m is given by m M A P s m 2 n s m 2 n s v 2 1 n j 1 n x j s v 2 s m 2 n s v 2 m 0 s m 2 j 1 n x j s v 2 m 0 s m 2 n s v 2 displaystyle hat mu mathrm MAP frac sigma m 2 n sigma m 2 n sigma v 2 left frac 1 n sum j 1 n x j right frac sigma v 2 sigma m 2 n sigma v 2 mu 0 frac sigma m 2 left sum j 1 n x j right sigma v 2 mu 0 sigma m 2 n sigma v 2 nbsp which turns out to be a linear interpolation between the prior mean and the sample mean weighted by their respective covariances The case of s m displaystyle sigma m to infty nbsp is called a non informative prior and leads to an ill defined a priori probability distribution in this case m M A P m M L E displaystyle hat mu mathrm MAP to hat mu mathrm MLE nbsp References Edit a b Bassett Robert Deride Julio 2018 01 30 Maximum a posteriori estimators as a limit of Bayes estimators Mathematical Programming 1 16 arXiv 1611 05917 doi 10 1007 s10107 018 1241 0 ISSN 0025 5610 Murphy Kevin P 2012 Machine learning a probabilistic perspective Cambridge Massachusetts MIT Press pp 151 152 ISBN 978 0 262 01802 9 DeGroot M 1970 Optimal Statistical Decisions McGraw Hill ISBN 0 07 016242 5 Sorenson Harold W 1980 Parameter Estimation Principles and Problems Marcel Dekker ISBN 0 8247 6987 2 Hald Anders 2007 Gauss s Derivation of the Normal Distribution and the Method of Least Squares 1809 A History of Parametric Statistical Inference from Bernoulli to Fisher 1713 1935 New York Springer pp 55 61 ISBN 978 0 387 46409 1 Retrieved from https en wikipedia org w index php title Maximum a posteriori estimation amp oldid 1157984022, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.