Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Within the context of simple linear regression, I came across this:

$$\hat{\beta}=\frac{\sum y_nx_n}{\sum x_n^2}=\frac{cov(xy)}{var(x)}$$

where I assume $cov(x,y)$ means the covariance between $x$ and $y$, and $var(x)$ means the variance of $x$. I wonder how is this equivalence derived?

share|cite|improve this question
That assumes that $x$ and $y$ have zero mean. Further, the summations are random variables, they are not really equal to the terms on the right, but approximate them (as estimators -under suitable conditions). Eg: $\sum x^2_n /n \to var(x)$ – leonbloy Apr 30 '12 at 20:15
@leonbloy, that (the zero mean assumption) is what I speculated, but it seems to make no sense for the context of the material I'm looking at, i.e. page 10 of – Aaron Apr 30 '12 at 20:29
it's ok: see page 10. $x_n = X_n - \bar{X}$ (in lowercase) is zero mean. – leonbloy Apr 30 '12 at 20:41
Only $x$ should have zero mean. – Did Apr 30 '12 at 23:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.