# Thread: how does m = b (or slope=y-intercept

1. ## how does m = b (or slope=y-intercept

How can I prove that COVAR(x,y)/VAR(x) = b? I'm pretty sure the first part equals m, but I don't see how the slope and y-intercept can be the same thing, unless their both zero.

Any nudge in the right direction would be greatly appreciated.

2. My understanding is, for $\displaystyle y=a+bx$

then $\displaystyle a=\bar{y}-b\bar{x}, b= \frac{cov(x,y)}{var(x)}$

So this works if you call the equation $\displaystyle y=mx+c$ , many text books do.

3. Thanks, pickslides!