0
$\begingroup$

I'm trying to proof some results in Multiple Linear Regression.
In matrix notation, why $Cov(\pmb{y}, \pmb{\hat{y}}) = \pmb{y}^T \pmb{\hat{y}}$?

$\endgroup$
3
  • $\begingroup$ Do you have a source for the equality? $\endgroup$
    – user603
    Commented Jul 3, 2019 at 12:22
  • $\begingroup$ In "Solutions Manual to Accompany Introduction to Linear Regression", 5th edition, Exercise 3.33, the author says this in the page 30. $\endgroup$
    – igorkf
    Commented Jul 3, 2019 at 12:26
  • $\begingroup$ This does not look right. See math.stackexchange.com/questions/2978027/…. $\endgroup$ Commented Sep 25, 2019 at 15:08

1 Answer 1

4
$\begingroup$

That is simply not true!

$y^T\hat{y}$ can take values larger than 1, and it's not that hard to come with an example. Try the data

$x=(0,1,2,3)$

$y=(6,8.1,9.9,12)$

Estimate the regression model for $y$ on $x$ and see how $y^T\hat{y}$ will be above 340! Correlation between $y$ and $\hat{y}$ stays at $0.9995$ while their covariance is close to $6.5$

$\endgroup$
2
  • $\begingroup$ Sorry! I mean the Covariance. I'm editing the post. $\endgroup$
    – igorkf
    Commented Jul 3, 2019 at 12:05
  • 1
    $\begingroup$ Still not true, Covariance stays at about 6.5 in the example I presented. Indeed, the product $y^t\hat{y}$ always increases with sample size while covariance does not necessarely $\endgroup$
    – David
    Commented Jul 3, 2019 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.