Simple linear regression: Difference between revisions

Content deleted Content added
Khashishi (talk | contribs)
Line 38:
There are alternative (and simpler) formulas for calculating <math> \hat{b} </math>:
 
: <math> \hat{b} = \frac {\sum_{i=1}^{N} {(x_{i}y_{i})} - N \bar{x} \bar{y}} {\sum_{i=1}^{N} (x_{i})^2 - N \bar{x}^2} = r \frac {s_y}{s_x} = \frac {Covar(x,y)}{Var(x)}</math>
 
Here, r is the correlation coefficient of X and Y, s<sub>x</sub> is the sample [[standard deviation]] of X and s<sub>y</sub> is the sample standard deviation of Y.