Deriving Regression Coefficients

Click For Summary
SUMMARY

This discussion focuses on deriving the regression coefficient \( b_2 \) in the context of linear regression analysis. The user presents an initial equation involving summations and seeks assistance in manipulating it to reach the standard representation of \( b_2 \). The transformation involves recognizing that \( \sum_{i=1}^{N}x_i^2 - N\bar{x}^2 \) can be rewritten as \( \sum_{i=1}^{N}(x_i - \bar{x})^2 \) and that \( \sum_{i=1}^{N}x_iy_i - N\bar{x}\bar{y} \) can be expressed as \( \sum_{i=1}^{N}(x_i - \bar{x})(y_i - \bar{y}) \).

PREREQUISITES
  • Understanding of linear regression concepts
  • Familiarity with summation notation and manipulation
  • Knowledge of statistical terms such as mean (\(\bar{x}\), \(\bar{y}\))
  • Proficiency in algebraic manipulation of equations
NEXT STEPS
  • Study the derivation of regression coefficients in linear regression
  • Learn about the properties of summation and how to manipulate summation formulas
  • Explore the concept of covariance and its relation to regression analysis
  • Investigate the differences between population and sample regression coefficients
USEFUL FOR

Statisticians, data analysts, and students studying linear regression who seek to deepen their understanding of regression coefficient derivation and manipulation techniques.

rwinston
Messages
36
Reaction score
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!
 
Physics news on Phys.org
You already know the standard representation for the regression on the slope (its your second expresssion in the original post). So try to work backwards to show that this latter expression is identical to the expression you can derive. Reversing this will then generate the path from the expression you can derive to the standard representation.
 
Ah, yes...sorry, a bit obvious really when you think about it:

<br /> \sum_{i=1}^{N}x_i^2 -N\bar{x}^2<br />
<br /> = \sum_{i=1}^{N}x_i^2 -\sum_{i=1}^N\bar{x}^2<br />
<br /> \sum_{i=1}^{N}\left( x_i - \bar{x}\right)^2<br />

And the other bit:

<br /> \sum_{i=1}^{N}x_iy_i - N\bar{x}\bar{y} = \sum_{i=1}^{N}(x_i-\bar{x})(y_i-\bar{y})<br />

as

<br /> \sum_{i=1}^{N}(x_i-\bar{x})(y_i-\bar{y}) = \sum_{i=1}^{N}x_iy_i - N\bar{x}\bar{y}-N\bar{y}\bar{x}-N\bar{x}\bar{y}<br />
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K