
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Homework 6 Assigned 05/09/ Due 05/16/
(a) Derive p(μ|y 1 ,... , yn, Σ). () Derive p(Σ|y 1 ,... , yn). () Derive p(yj |y−j , μ, Σ).
(a) Make a pairs-plot of the variables and describe in words. (b) Obtain 95% posterior confidence intervals for the components of μ. Compare to the standard univariate frequentist confidence interval for each variable. (c) Randomly fill the data matrix with 10% NAs using the following procedure: set.seed(1) O<-matrix(rbinom(n*p,1,.9),n,p) Y[O==0]<-NA Impute the value of the missing data using MCMC, plot the true values against the posterior mean imputed value and compute P R = [
i:oi,j =0(yi,j^ −^ y¯i,j^ )
i:oi,j =0(yi,j^ − y ˆi,j )^2 ] for each j ∈ { 1 ,... , p} and interpret. Which variables can you impute well, and why? (*) Using the data without missing values, fit a regression function for each variable, obtain a predicted value for each missing value and compute the P R-score for this imputation procedure. (d) Make a plot showing a 95% CI for each correlation as well as the correlation-based regression parameters. Interpret your results. (e) Load in the R-package sbgcop and fit a semiparametric Gaussian copula model. Obtain a plot corresponding to the one in part (d) and discuss any differences.