Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 views
in Technique[技术] by (71.8m points)

bayesian - Bayes Learning - MAP hypotesis

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...