0
$\begingroup$

In the method of least square I have the following

$\hat{B_1}=\frac{\sum (Y_i-\bar{Y})X_i} {\sum (X_i-\bar{X})X_i} \\ ~~~~= \frac{\sum (Y_i-\bar{Y})(X_i-\bar{X})} {\sum (X_i-\bar{X})^2} \\ ~~~~= \frac{S_{XY}}{S_{XX}}$

So my question is about the derivation of the second equality. Could you please explain how you arrived at that step? Thank you.

$\endgroup$
1
  • $\begingroup$ look up "regression through origin" $\endgroup$
    – Aksakal
    Commented Aug 13, 2023 at 21:40

1 Answer 1

1
$\begingroup$

\begin{align} \hat{B_1} &=\frac{\sum (Y_i-\bar{Y})X_i} {\sum (X_i-\bar{X})X_i} \\ &=\frac{\sum (Y_i-\bar{Y})(X_i-\bar{X}+\bar{X})} {\sum (X_i-\bar{X})(X_i-\bar{X}+\bar{X})} \\ &=\frac{\sum \left((Y_i-\bar{Y})(X_i-\bar{X})+(Y_i-\bar{Y})\bar{X}\right)} {\sum \left((X_i-\bar{X})(X_i-\bar{X})+(X_i-\bar{X})\bar{X}\right)} \\ &=\frac{\sum \left(Y_i-\bar{Y})(X_i-\bar{X}\right)+\color{red}{\sum(Y_i-\bar{Y})\bar{X}}} {\sum \left(X_i-\bar{X})(X_i-\bar{X}\right)+\color{red}{\sum(X_i-\bar{X})\bar{X}}} \\ &= \frac{\sum (Y_i-\bar{Y})(X_i-\bar{X})} {\sum (X_i-\bar{X})^2} \end{align}

The terms in red are equal to zero.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.