Bayes Learning - MAP hypotesis

烂漫一生 提交于 2019-12-13 10:52:09

问题


Suppose I have a set of hypotesys H = {h1, h2} mutual exclusive. For them P(h1) = 0.2 and p(h3) = 0.3 (prior distribution). Suppose we know also that

P(Y=0 | h1) = 0.2 P(Y=0 | h2) = 0.4

where Y is an attribute (target) that can have two values {1,0}. Suppose finally that you observe the event Y = 0.

Which one is the MAP (Maximum a posteriori) hipotesys?

  • MAP is h1
  • MAP is h2
  • there's no enough element to find MAP
  • MAP h1 = MAP h2
  • nobody of the possible answer above

回答1:


Such question should be asked (and now probably migrated) on the math.stackexchange.com or stats.stackexchange.com .

Your question is basic application of the Bayes Theorem

              P(Y=0|h1)P(h1)    0.2*0.2    0.04
P(h1|Y=0) =   -------------   = ------- = ------
                  P(Y=0)         P(Y=0)   P(Y=0)

              P(Y=0|h2)P(h2)    0.3*0.4    0.12
P(h2|Y=0) =   --------------  = ------- = ------
                  P(Y=0)         P(Y=0)   P(Y=0)

So the h2 is the more probable hypothesis, as P(Y=0)>0



来源:https://stackoverflow.com/questions/18673294/bayes-learning-map-hypotesis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!