Docsity

Assignment 4 for Bayesian Inference and Analysis | ST 740, Assignments of Statistics

Toggle sidebar
bg1
ST740 – Assignment 4 – Due 10/15
1. For this assignment you will analyze the NMMAPS ozone data available at
http://www4.stat.ncsu.edu/∼reich/st740/ozone data.R.
Fit the time series model:
Ozonet=β0+β1∗T empt+β2∗RelHumidt+²t(1)
where ²= (ε1, ..., εn)0is multivariate normal with mean zero and Cov(εs, εt) = σ2ρ|s−t|.
The priors are β0, β1, β2∼N(0,0.01), σ∼Unif(0,50), and ρ∼Unif(-1,1).
•Give the full conditional for the vector β= (β0, β1, β2).
•Write and turn in commented MCMC code to analyze these data. Update βas
a block and σand ρusing Metropolis-Hastings sampling.
•Give your candidate distributions for σand ρand the resulting acceptance prob-
abilities.
•In a table, summarize the posteriors of β0,β1,β2,σ, and ρ. Which covariates are
important predictors of ozone? Is there evidence of autocorrelation in this ozone
time series?
2. Reanalyze the data in problem #2 of assignment #3 using the one-way random effects
model in WinBUGS. Turn in commented WinBUGS code and posterior summaries of
τ1,τ2and r.
1

Partial preview of the text

Download Assignment 4 for Bayesian Inference and Analysis | ST 740 and more Assignments Statistics in PDF only on Docsity!

ST740 – Assignment 4 – Due 10/

  1. For this assignment you will analyze the NMMAPS ozone data available at

http://www4.stat.ncsu.edu/∼reich/st740/ozone data.R.

Fit the time series model:

Ozonet = β 0 + β 1 ∗ T empt + β 2 ∗ RelHumidt + ≤t (1)

where ≤ = (ε 1 , ..., εn)′^ is multivariate normal with mean zero and Cov(εs, εt) = σ^2 ρ|s−t|. The priors are β 0 , β 1 , β 2 ∼ N(0,0.01), σ ∼ Unif(0,50), and ρ ∼ Unif(-1,1).

  • Give the full conditional for the vector β = (β 0 , β 1 , β 2 ).
  • Write and turn in commented MCMC code to analyze these data. Update β as a block and σ and ρ using Metropolis-Hastings sampling.
  • Give your candidate distributions for σ and ρ and the resulting acceptance prob- abilities.
  • In a table, summarize the posteriors of β 0 , β 1 , β 2 , σ, and ρ. Which covariates are important predictors of ozone? Is there evidence of autocorrelation in this ozone time series?
  1. Reanalyze the data in problem #2 of assignment #3 using the one-way random effects model in WinBUGS. Turn in commented WinBUGS code and posterior summaries of τ 1 , τ 2 and r.