rwinston
- 36
- 0
Hi
Sorry this may be an obvious one...can anyone help me with getting from the first to the second equation below? I'm particularly stuck with manipulating the terms inside the summations formulas.
I can derive to here:
<br /> \sum_{i=1}^{N}x_iy_i - N\bar{x}\bar{y} - \left( \sum_{i=1}^{N}x_i^2 - N\bar{x}^2\right)b_2 = 0<br />
But am a bit unsure of the exact manipulation to get to here:
<br /> b_2 = \frac{\sum_{i=1}^{N}(x_i-y_i)(y_i-\bar{y})}{\sum_{i=1}^{N}(x_i-\bar{x})^2}<br />
Thanks in advance!
Sorry this may be an obvious one...can anyone help me with getting from the first to the second equation below? I'm particularly stuck with manipulating the terms inside the summations formulas.
I can derive to here:
<br /> \sum_{i=1}^{N}x_iy_i - N\bar{x}\bar{y} - \left( \sum_{i=1}^{N}x_i^2 - N\bar{x}^2\right)b_2 = 0<br />
But am a bit unsure of the exact manipulation to get to here:
<br /> b_2 = \frac{\sum_{i=1}^{N}(x_i-y_i)(y_i-\bar{y})}{\sum_{i=1}^{N}(x_i-\bar{x})^2}<br />
Thanks in advance!