LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > The Final

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-09-2013, 11:33 AM
sptripathi sptripathi is offline
Junior Member
Join Date: Apr 2013
Posts: 8
Default Re: Q20

Need help in verifying if below understanding is correct ?

The Bayesian:
P(h=f | D) = P(D | h=f) * P(h=f) / P(D)

For this Q, we are given:
P(h=f) is uniform in [0,1]
D: one-person-with-heart-attack
Pick f = c (constant)

To simplify, I assume that h and f are a discrete random-variables with 10 possible values from (0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)
and each is equally likely with P=1/10. Essentially simplifying here to make P(h=f) a pmf which is actually a pdf.


P (D | h=f)
= Pr( one-person-with-heart-attack | h=f )
= Probability of one-person-with-heart-attack, given (h=f)
= c

( because if h=f were given, then the Prob of one picked person getting heart-attack is c, as defined by f )

Plug in above to get:
P(h=f | D) = c * P(h=f) / P(D)

Does above sound correct ?
Also P(D) =1 in this case ?

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 04:30 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.