COM S 573: Home work 3

$30.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (3 votes)

1. (a) [4 points] Suppose that Yi = β0 +
Pp
j=1 xijβj + ei where e1, . . . , en are i.i.d. distributed from
a N(0, σ2
e
). Write out the likelihood for the data and show that it is equivalently to using
ordinary least squares.
(b) [5 points] Assume the following prior for β: β1, . . . , βp are i.i.d. according to a Laplace distribution with mean zero and common scale parameter c i.e., h(β) = 1
2c
exp(−|β|/c). You can
assume that Yi = β0 +
Pp
j=1 xijβj + ei with e1, . . . , en are i.i.d. distributed from a N(0, σ2
e
).
Write out the posterior for β in this setting. Argue that the LASSO estimate is the mode for
β i.e, the most likely value for β, under this posterior distribution. Determine the value for
the parameter λ in the LASSO cost function.
2. (a) [4 points] Suppose we estimate some statistic (e.g. median) based on a sample X. Carefully
describe how you might estimate the standard deviation of the statistic. You can make a
sketch of the process.
(b) [2 points] Write an R code that calculates the standard deviation of the median given a sample
X.
(c) [4 points] Suppose you were interested in a 100(1 − α)% (pointwise) confidence interval for
the correlation coefficient of a sample X and Y (the joint distribution of X and Y is NOT
bivariate normal). Clearly explain and derive how you would do this? Write an R code that
calculates 95% confidence interval for the correlation coefficient in case of the lawstat data
(lawstat.dat on Blackboard).
3. (a) [8 points] Try out some of the regression methods explored in Chapter 6 of the textbook on
the Boston Housing data set (available from the MASS library), such as best subset selection,
the lasso, ridge regression, and PCR. Present and discuss results for the approaches that you
consider.
(b) [6 points] Propose a model (or set of models) that seem to perform well on this data set, and
justify your answer. Clearly explain what you will do.
4. [2 points] Describe how you can efficiently solve the LS linear system (XT X)β = XT Y (i.e., by
not calculating an inverse) where X ∈ R
n×p has p linearly independent columns, β ∈ R
p and
Y ∈ R
n×1
? Hint: Think in terms of matrix decompositions (it’s not SVD!). Use Wikipedia.
1