# Interpreting correlation & coefficient of determination

Correlation (r) is a measure of linear association between two variables. Coefficient of determination (r^2), is a measure of how much of the variability in one variable can be "explained by" variation in the other.

For example, if r 0.8 is the correlation between two variables, then, r^2 = 0.64. Hence, 64% of the variability in one can be explained by differences in the other. Right?

My question is, for the example stated, is any one of the following statements correct?

1. 64% of values fall along the regression line
2. 80% of values fall along the regression line

I am quite confused. I would highly appreciate any help. Thanks!

-

## 2 Answers

The first part of this is basically correct - but it's 64% of the variation is explained by the model. In a simple linear regression: Y ~ X, if $R^2$ is .64 it means that 64% of the variation in Y is determined by the linear relationship between Y and X. It is possible to have a strong relationship with very low $R^2$, if the relationship is strongly non-linear.

Regarding your two numbered questions, neither is correct. Indeed, it is possible that none of the points may lie exactly on the regression line. That's not what's being measured. Rather, it is a question of how close the average point is to the line. If all or nearly all points are close (even if none are exactly on the line) then $R^2$ will be high. If most points are far from the line, $R^2$ will be low. If most points are close but a few are far, then the regression is incorrect (problem of outliers). Other things can go wrong, too.

In addition, I've left the notion of "far" rather vague. This will depend on how spread out the X's are. Making these notions precise is part of what you learn in a course on regression; I won't get into it here.

-
Well that cleared up a lot for me! Thank you Mimshot and Peter Flom! Much grateful to you both! :) – Bradex Dec 8 '12 at 15:50

1
+1, good answer, would you mind adding something like "Indeed, [it is possible that] none of the points may lie... ". Also, it might be worth discussing that the notion of how far the points are from the line is also relative to how spread out the X's are. – gung Dec 8 '12 at 15:56

Niether 1 nor 2 is correct.

Let's say you are trying to predict a set of values $\pmb{y}$ from a set of values $\pmb{x}$ using a linear regression. Your model is

$$y_i = b + mx_i + \epsilon_i$$

Where $\epsilon_i \sim \mathcal{N(0,\sigma^2)}$ is some noise. $R^2=.64$ means that 64% of the variance of $y$ can be explained by variability in $x$ under your model. The residual variance (i.e., the variance unexplained) is 0.36. That is, if:

$$\hat{y}_i = b + mx_i$$

Then

$$1-0.64 = 0.36 = \frac{\mathrm{var}(\pmb{y}-\pmb{\hat{y}})}{\mathrm{var}(\pmb{y})}$$

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 10, "mathjax_display_tex": 3, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9379416704177856, "perplexity_flag": "head"}