One of the following:
Hardcopy handed in (may be handwritten or typeset)
Using the matrix set up for simple linear regression, find the variance of the slope and intercept estimates and the correlation between them.
Consider the balanced one-way anova model, for treatment groups, with replications in each group:
where Treatj is an indicator variable for the j’th treatment group. That is
Without loss of generality, you can assume the data are ordered by treatment group, i.e. the first K observations are from treatment group 1, the next K from treatment group 2, etc.
a. Write out the form of the design matrix, .
b. Verify that the represent the treatment group means.
c. Show that the estimates of the treatment group means all have the same variance and are uncorrelated.
Consider data generated according to the following model:
where and are fixed covariate matrices, and unknown parameter vectors and and .
Now imagine you are fitting a regression model to the data but have failed to recognise as covariates. That is, you fit the model:
a. Find the expected value of your estimates.
b. When is unbiased?
Hand in a .Rmd file on canvas, and as a hardcopy of the compiled .Rmd file.
Faraway Problem 2.7
Continued from HW#2 Part II #1. Using dataset teengamb
and the model from the previous homework.
a. Find the estimate of . Intepret this estimate in a sentence in context of the data.
b. Find the estimated variance-covariance matrix of the coefficient estimates using matrix algebra.