5
$\begingroup$

in simple linear regression

R-squared is equal to the squared correlation coefficient between the actual y and the predicted y (i.e. š¯‘¦ hat )

how to prove this relationship?

Thanks!

$\endgroup$
0

1 Answer 1

9
$\begingroup$

The usual way of interpreting the coefficient of determination R^{2} is to see it as the percentage of the variation of the dependent variable y (Var(y)) can be explained by our model.

For the proof we have to know the following (taken from OLS theory and general statistics):

Basic

Proof for the relationship between R2 and correlation coefficient

I hope this answer clears your doubt.

$\endgroup$
5
  • 3
    $\begingroup$ +1. Welcome to our site, Dinesh. You would likely find it easier to write mathematical expressions (and we would find them easier to read) using the built-in $\TeX$ markup: just enclose them between dollar signs \$. Further help is available.. $\endgroup$
    – whuber
    Commented Dec 21, 2015 at 13:07
  • 1
    $\begingroup$ @Dinesh, can you please explain why Cov(y_hat, e)=0 ? $\endgroup$ Commented Jul 10, 2018 at 1:17
  • $\begingroup$ if I have understood this correctly then e is the error or noise term added to y_hat and since e is a constant, the mean e_mean = e and putting this into covariance formula e-e_mean part will be 0 hence Cov(y_hat,e) = 0 $\endgroup$
    – user284839
    Commented May 12, 2020 at 18:19
  • 2
    $\begingroup$ Rather than e being a constant, I think the idea is that we assume that the errors are not correlated with the prediction, hence Cov(y_hat, e) = 0. Please correct me if i'm wrong. $\endgroup$
    – Fortunato
    Commented Mar 12, 2021 at 23:09
  • 1
    $\begingroup$ @Fortunato It's not a question of constant term or an assumption. In fact, it's an algebraic property of the OLS. Just do $Cov(\hat{y},\hat{e}) = \sum{(\hat{e}_i - \bar{e})(\hat{y}_i - \bar{y})} = \sum{\hat{e}_i(\hat{y}_i - \bar{y})}$ and expand the last part using the fact that $\sum{\hat{e}_i} = 0$ and $\sum{\hat{e}_i x_{ij}} = 0$ by construction (FOC). $\endgroup$
    – Victor
    Commented May 28 at 21:26

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