Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show your work. thank you Problem : Consider simulation of the bivariate normal distribution with mean # = (1,2) and covariance matrix 1 E=

Please show your work. thank you

image text in transcribed
Problem : Consider simulation of the bivariate normal distribution with mean # = (1,2) and covariance matrix 1 E= 09 1). by the Metropolis-Hastings algorithm, using a random walk chain. Specifically, let each new value x* in the chain be generates by x* = x() + ewhere e ~ N, (0, D) with D being a diagonal matrix with diagonal elements o, and 62. Note that o, and 62 control the spread of values generated along the first and second coordinate axes, respectively. a Code the Metropolis-Hastings algorithm in R, with o, and 6, being part of the input parameters to your function. Let 5, = 0.001 and 62 = 0.001, and generate a chain, starting at x(0) = (0,0), of size 10,000. Give a summary of your chain using the coda package

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

Finite Math And Applied Calculus

Authors: Stefan Waner, Steven Costenoble

2nd Edition

0534366309, 9780534366308

More Books

Students also viewed these Mathematics questions