Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have problem in Cookie solution #19

Open
jaffreyzhao opened this issue Feb 7, 2020 · 1 comment
Open

I have problem in Cookie solution #19

jaffreyzhao opened this issue Feb 7, 2020 · 1 comment

Comments

@jaffreyzhao
Copy link

In the Update function, I thought at next round, pmf[hypo] should be fixed at 0.5, because the prior won't change no matter how many cookies have been taken out

but in your solution, I saw the pmf[hypo] keeping change every time, am I wrong about Bayes's theorem in this situation?

@ricardoV94
Copy link

ricardoV94 commented Feb 7, 2020

I think you are confusing 1) the prior for the hypothesis of which bowl was selected (which should be updated with each observation) and 2) the prior probability of taking a type of cookie from each bowl (which in this problem is kept fixed). The latter is not even an hypothesis, its just given by the problem setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants