Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose I have a Bayesian hierarchical regression model where Y i , j 1 , ... , m independentNormal ( 1 , j + 2

Suppose I have a Bayesian hierarchical regression model where

Yi,j1,...,mindependentNormal(1,j+2,jxi,j+3,jxi,j2,2)

and

1,...,m,Normal3(,)

Let's say I have run my MCMC and I have posterior samples of beta.sim, theta.sim, sigma2.sim and Sigma.sim, where;

beta.sim is the 1,...,m samples

theta.sim is the samples

sigma2.sim is the 2 samples and

Sigma.sim is the samples.

How do I sample the posterior predictive of y~ given x~ (a vector of regressors). Do I use theta.sim and Sigma.sim to sample ~ first and then use ~ and sigma.sim to sample y~ ? OR do I directly sample y~ from theta.sim and sigma.sim

The question in this link below might be helpful

https://stats.stackexchange.com/questions/233343/generate-posterior-predictive-distribution-at-every-step-in-the-mcmc-chain-for-a

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

Differential Equations For Engineers

Authors: Wei Chau Xie

1st Edition

0511771037, 9780511771033

More Books

Students also viewed these Mathematics questions

Question

Explain how to reward individual and team performance.

Answered: 1 week ago