Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a univariate normal model with mean and variance . Suppose we use a Beta(2,2) prior for (somehow we know is between zero and one)

Consider a univariate normal model with mean and variance . Suppose we use a Beta(2,2) prior for (somehow we know is between zero and one) and a log-normal(1,10) prior for (recall that if a random variable X is log-normal(m, v) then logX is N(m, v)). Assume a priori that and are independent. Implement a Metropolis-Hastings algorithm to evaluate the posterior distribution of and . Remember that you have to jointly accept or reject and . Also compute the posterior probability that is bigger than 0.5.

Here are the data:

2.3656491 2.4952035 1.0837817 0.7586751 0.8780483 1.2765341 1.4598699 0.1801679 -1.0093589 1.4870201 -0.1193149 0.2578262

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

Functional Analysis And The Feynman Operator Calculus

Authors: Tepper L Gill, Woodford W Zachary, Zachary Woodford

1st Edition

331927595X, 9783319275956

More Books

Students also viewed these Mathematics questions

Question

A greater tendency to create winwin situations.

Answered: 1 week ago

Question

Improving creative problem-solving ability.

Answered: 1 week ago