Show that $Cov(\bar{y},\hat{\beta_1})=0$

12.4k Views Asked by At

Show that $Cov(\bar{y},\hat{\beta_1})=0$

For those unfamiliar with statistics, Cov(A,B) refers to the covariance function. $\bar{y}$ refers to the average of the response (dependent variable). $\hat{\beta_1}$ refers to the estimator of the slope.

The solution goes as follows:

$Cov(\bar{y},\hat{\beta_1}) = Cov(\frac{\sum{y_i}}{n},\sum{c_iy_i}) $

Where $c_i = \frac{(x_i-\bar{x})}{S_{xx}} $

And $S_{xx} = \sum{(x_i-\bar{x})^2}$

$Cov(\frac{\sum{y_i}}{n},\sum{c_iy_i}) = \frac{1}{n}Cov(\sum{y_i},\sum{c_iy_i}) $

Can we bring the $\sum{c_i}$ out of the covariance? If so, we would simply be left with $var(y_i)$.