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: onepersonwithheartattack Pick f = c (constant) To simplify, I assume that h and f are a discrete randomvariables 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. Now: P (D  h=f) = Pr( onepersonwithheartattack  h=f ) = Probability of onepersonwithheartattack, given (h=f) = c ( because if h=f were given, then the Prob of one picked person getting heartattack 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 ? Thanks. 
Re: Q20
I find this exercise simple but very useful. If one thinks of the series of following measurements (1s and 0s for heart attack or not) one can clearly form an idea how this transforms stepbystep from a uniform distribution to a Bernoulli one.
Does this mean that this example represents one of those cases where the initial prior is irrelevant and we can safely use it for learning? Also, is this some form of reinforcement learning? thanks, Dorian. 
Re: Q20
Quote:

Re: Q20
I am very confused by this problem. Perhaps this questions will help:
Is P(Dh=f) a function of D or h or both? It looks to me like it's a function of D, but we need to convert it to a function of h to get the posterior...:clueless: Is this correct? 
Re: Q20
There is an analogy that may be enlightening, which I thought of because of the presentation of the first part of this course.
Suppose you have a large number of urns each containing a large number of black and white balls in varying proportions. You are told how many urns there are with each proportion. Then you go up to one of the urns and take out a ball which you find is black. The question is how likely it is that specific urn has each particular fraction of black balls. 
All times are GMT 7. The time now is 12:28 PM. 
Powered by vBulletin® Version 3.8.3
Copyright ©2000  2021, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. AbuMostafa, Malik MagdonIsmail, and HsuanTien Lin, and participants in the Learning From Data MOOC by Yaser S. AbuMostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.