Consider the 10 Bernoulli(q) observations: 0,1,0,1,0,0,0,0,0,0. Plot the posterior for q using these priors: Beta(0.5,0.5), Beta(1,1), Beta(10,10), Beta(100,100). Comment on the effect of the prior on the posterior.

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter13: Probability And Calculus
Section13.CR: Chapter 13 Review
Problem 42CR
icon
Related questions
Question
100%

please answer asap using r code showing the code and the methods. thanks :)

 

Consider the 10 Bernoulli(q) observations: 0,1,0,1,0,0,0,0,0,0. Plot the
posterior for q using these priors: Beta(0.5,0.5), Beta(1,1), Beta(10,10), Beta(100,100).
Comment on the effect of the prior on the posterior.
Transcribed Image Text:Consider the 10 Bernoulli(q) observations: 0,1,0,1,0,0,0,0,0,0. Plot the posterior for q using these priors: Beta(0.5,0.5), Beta(1,1), Beta(10,10), Beta(100,100). Comment on the effect of the prior on the posterior.
Expert Solution
steps

Step by step

Solved in 3 steps with 12 images

Blurred answer
Recommended textbooks for you
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill