Suppose that Xu~ Bernoulli (1+(+2)) and a standard normal N(0, 1) prior is specified for u. In a trial, the value x= 1 is observed. (a) Show that the posterior for when X is observed to be z = 1 is ƒ(μ|x = 1) x (1 + e−(n+2))-¹₁-4²/2 on R. This posterior distribution cannot be sampled from directly. Suppose that the Metropolis-Hastings algorithm is to be used to simulate samples from the target posterior density f(ulx = 1). In order to simulate samples from the posterior distribution of parameter , consider the sequence of random variables #1, #2,... such that is the variable for iteration t of the Metropolis-Hastings algorithm. Let u be its simulated value. Suppose that the proposal distribution for 4+1 = ₂ which has density denoted by q(+1), is N(μ, 2). (b) Let = 0 be the starting value for the algorithm. What distribution will the Metropolis-Hastings algorithm use to generate the candidate value for ₂? (e) Explain why, in this case, the acceptance probability for u can be written as a(μμ₁) = min (f(µ*|x = 1) \ƒ(µ₁₂₁|x = 1)' =B₁¹). (d) Suppose that the candidate value generated from the distribution in part (b) is u* = 1.2. Calculate the acceptance probability for this candidate value. (e) Suppose that u is simulated from U(0, 1) so that u= 0.81. What is the value of 2? From what distribution will the candidate value μ** for µ3 be generated?
Suppose that Xu~ Bernoulli (1+(+2)) and a standard normal N(0, 1) prior is specified for u. In a trial, the value x= 1 is observed. (a) Show that the posterior for when X is observed to be z = 1 is ƒ(μ|x = 1) x (1 + e−(n+2))-¹₁-4²/2 on R. This posterior distribution cannot be sampled from directly. Suppose that the Metropolis-Hastings algorithm is to be used to simulate samples from the target posterior density f(ulx = 1). In order to simulate samples from the posterior distribution of parameter , consider the sequence of random variables #1, #2,... such that is the variable for iteration t of the Metropolis-Hastings algorithm. Let u be its simulated value. Suppose that the proposal distribution for 4+1 = ₂ which has density denoted by q(+1), is N(μ, 2). (b) Let = 0 be the starting value for the algorithm. What distribution will the Metropolis-Hastings algorithm use to generate the candidate value for ₂? (e) Explain why, in this case, the acceptance probability for u can be written as a(μμ₁) = min (f(µ*|x = 1) \ƒ(µ₁₂₁|x = 1)' =B₁¹). (d) Suppose that the candidate value generated from the distribution in part (b) is u* = 1.2. Calculate the acceptance probability for this candidate value. (e) Suppose that u is simulated from U(0, 1) so that u= 0.81. What is the value of 2? From what distribution will the candidate value μ** for µ3 be generated?
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.3: Special Probability Density Functions
Problem 30E
Related questions
Question
Do part c,d,e
![Suppose that
1
X\µ ~ Bernoulli
(1+e-(u+2)
and a standard normal N(0, 1) prior is specified for u. In a trial, the value
x = 1 is observed.
(a) Show that the posterior for u when X is observed to be r = 1 is
f(4x = 1) x (1+e¯(u+2)-le¬w²/2 on R.
%3D
This posterior distribution cannot be sampled from directly. Suppose that
the Metropolis-Hastings algorithm is to be used to simulate samples from
the target posterior density f(u|r = 1).
In order to simulate samples from the posterior distribution of parameter u,
consider the sequence of random variables u1, #2, - such that µi is the
variable for iteration t of the Metropolis-Hastings algorithm. Let be its
simulated value. Suppose that the proposal distribution for 4+1H=4,
which has density denoted by q(µ+1\4), is N(H, 2).
(b) Let u =0 be the starting value for the algorithm. What distribution
will the Metropolis-Hastings algorithm use to generate the candidate
value u* for 12?
(c) Explain why, in this case, the acceptance probability for u can be
written as
%3D
a(u"|14) = min
%3D
(d) Suppose that the candidate value generated from the distribution in
part (b) is u* = 1.2. Calculate the acceptance probability for this
candidate value.
(e) Suppose that u is simulated from U(0,1) so that u = 0.81. What is the
value of u,? From what distribution will the candidate value u** for 43
be generated?](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F942d8395-ce39-44af-9e4d-fbdcfc13f43e%2F7fd1aeaa-2f88-458c-9df6-0386b5d4422f%2Fetepuse_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Suppose that
1
X\µ ~ Bernoulli
(1+e-(u+2)
and a standard normal N(0, 1) prior is specified for u. In a trial, the value
x = 1 is observed.
(a) Show that the posterior for u when X is observed to be r = 1 is
f(4x = 1) x (1+e¯(u+2)-le¬w²/2 on R.
%3D
This posterior distribution cannot be sampled from directly. Suppose that
the Metropolis-Hastings algorithm is to be used to simulate samples from
the target posterior density f(u|r = 1).
In order to simulate samples from the posterior distribution of parameter u,
consider the sequence of random variables u1, #2, - such that µi is the
variable for iteration t of the Metropolis-Hastings algorithm. Let be its
simulated value. Suppose that the proposal distribution for 4+1H=4,
which has density denoted by q(µ+1\4), is N(H, 2).
(b) Let u =0 be the starting value for the algorithm. What distribution
will the Metropolis-Hastings algorithm use to generate the candidate
value u* for 12?
(c) Explain why, in this case, the acceptance probability for u can be
written as
%3D
a(u"|14) = min
%3D
(d) Suppose that the candidate value generated from the distribution in
part (b) is u* = 1.2. Calculate the acceptance probability for this
candidate value.
(e) Suppose that u is simulated from U(0,1) so that u = 0.81. What is the
value of u,? From what distribution will the candidate value u** for 43
be generated?
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 33 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Calculus For The Life Sciences](https://www.bartleby.com/isbn_cover_images/9780321964038/9780321964038_smallCoverImage.gif)
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
![Calculus For The Life Sciences](https://www.bartleby.com/isbn_cover_images/9780321964038/9780321964038_smallCoverImage.gif)
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,