
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