I'm studying linear regression with Draper's Applying regression analysis book There is a formula for coefficient b1 which is clear to me:
$$ b_{1}= \frac{n\sum x_{i}y_{i}-\sum x_{i}\sum y_{i}}{n\sum x_{i}^2 - \sum x_{i}\sum x_{i}} $$ What I can't understand is how to get this one: $$ b_{1}= \frac{\sum \left (X_{i}-\overline{X} \right )\left (Y_{i}-\overline{Y} \right )}{\sum \left ( X_{i}-\overline{X} \right )^2} $$