How do I see that :
$\frac{(\sum(x_i-\bar{x})(y_i - \bar{y}))^2}{\sum(x_i-\bar{x})^2\sum(y_i-\bar{y})^2}$ is always between 0 and 1?
where $\bar{x}=1/n *\sum(x_i)$, or the sample mean
How do I see that :
$\frac{(\sum(x_i-\bar{x})(y_i - \bar{y}))^2}{\sum(x_i-\bar{x})^2\sum(y_i-\bar{y})^2}$ is always between 0 and 1?
where $\bar{x}=1/n *\sum(x_i)$, or the sample mean
Copyright © 2021 JogjaFile Inc.
The $\leq 1$ part follows from the Cauchy-Schwarz Inequality, where $$\sum a_i^2\sum b_i^2\geq\left(\sum a_ib_i\right)^2$$ The $\geq 0$ part is straightforward because $x^2\geq0$ for any $x$.