Help me study for my Statistics class. I’m stuck and don’t understand.
Please see the attached file for the questions since what I pasted down here may show incorrectly on the website.
1. Consider the following simple linear regression modelyi = β0 +β1xi +εi
with εi independent errors with E [εi] = 0 and Var[εi] = σ2, for i = 1,…,n.ˆ ˆ−σ2∑ni=1xi
(a) Show that Cov β0,β1
= n∑ni=1 xi2−(∑ni=1 xi)2 .
can be expressed as ∑ni=1(xi−x̄)(yi−ȳ).
∑ ni = 1 ( x i − x̄ ) 2
(b) Show that the OLS βˆ1
2. Consider the file “reading.csv” included with this homework assignment as an attachment. The file contains average reading scores of third-graders from several elementary schools on a standardized test in each of two suc- cessive years (1982 and 1983).
- (a) Plot the reading scores in 1983 (this is your outcome or response vari- able) versus the scores in 1982 (this is your covariate or predictor). Does the relationship appear linear? You can use the read.table orread.csv commands in R to read in the data.
- (b) Use the following summary statistics to calculate (by hand) the OLS
of β0 and β1
(c) State the assumption of simple linear
these assumptions are satisfied when fitting a linear regression model to this dataset. Provide the necessary evidence that the assumptions are/are not satisfied.
- (d) John took the exam in 1982 but not the exam in 1983. His score in 1982 was 250. Predict his score in 1983 according to the simple linear regression model. If it turns out John took the exam in 1983 and his score was 320, what is the error of the predicted value?
- (e) Confirm your results in (b) by fitting the linear regression in R.