Question: Bivariate Normal Section 6.7 introduced the Bivariate Normal distribution. Suppose we wish to use Gibbs sampling to simulate from this distribution. In the following assume
Bivariate Normal Section 6.7 introduced the Bivariate Normal distribution. Suppose we wish to use Gibbs sampling to simulate from this distribution. In the following assume ( X , Y ) is Bivariate Normal with parameters ( X , Y , X , Y , ) . Using results from Section 6.7, identify the two conditional distributions f ( x y ) and f ( y x ) and write down a Gibbs sampling algorithm for simulating from the joint distribution of ( X , Y ) . Write an R function to simulate a sample from the distribution using Gibbs sampling. Assume X = 0 , Y = 0 , X = 1 , Y = 1 , = 0.5 and run the simulation for 1000 iterations. Compare the means, standard deviations, and correlation computed from the simulation with the true values of the parameters. Repeat part (c) using the correlation value = 0.95 and again compare the simulation estimates with the true values. Explain why Gibbs sampling does not appear to work as well in this situation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
