Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2. The bivariate normal distribution has the following probability density function f(x,y:1,2,1,2,)=212121exp(2(12)Q) such that Q=(1x1)2+(2y2)22(1x1)(2y2), for any (x,y)R, such that 1R,2R,1>0,2>0 and 11. (a)

image text in transcribed
Question 2. The bivariate normal distribution has the following probability density function f(x,y:1,2,1,2,)=212121exp(2(12)Q) such that Q=(1x1)2+(2y2)22(1x1)(2y2), for any (x,y)R, such that 1R,2R,1>0,2>0 and 11. (a) Prove that XY=yNormal(XY,XY), such that XY=1+21(y2),XY2=(12)12. Accordingly, deduce the distribution of YX=x. (b) Write an R function to implement the two-stage Gibbs sampler for simulating bivariate normal observations. (c) Implement the two-stage Gibbs sampler to simulate N=10,000 random vectors from the bivariate normal with parameters of your choice. Calculate the means, variances and correlation from each sample and compare them to the true values. Plot the scaled histograms along with the corresponding marginal densities. Hint: You may assume without proof that marginally XNormal(1,1) and YNormal(2,2). Question 2. The bivariate normal distribution has the following probability density function f(x,y:1,2,1,2,)=212121exp(2(12)Q) such that Q=(1x1)2+(2y2)22(1x1)(2y2), for any (x,y)R, such that 1R,2R,1>0,2>0 and 11. (a) Prove that XY=yNormal(XY,XY), such that XY=1+21(y2),XY2=(12)12. Accordingly, deduce the distribution of YX=x. (b) Write an R function to implement the two-stage Gibbs sampler for simulating bivariate normal observations. (c) Implement the two-stage Gibbs sampler to simulate N=10,000 random vectors from the bivariate normal with parameters of your choice. Calculate the means, variances and correlation from each sample and compare them to the true values. Plot the scaled histograms along with the corresponding marginal densities. Hint: You may assume without proof that marginally XNormal(1,1) and YNormal(2,2)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Accounting 1

Authors: Ray H. Garrison

1st Edition

1259114457, 978-1259114458

More Books

Students also viewed these Accounting questions

Question

Why is a harvest goal so crucial for entrepreneurs and the economy?

Answered: 1 week ago

Question

Develop successful mentoring programs. page 400

Answered: 1 week ago