## Regression Least Squares Fitting

Tags: #math #regression#### Latex Code

y_{i}=\alpha + \beta (x_{i} - \bar{x}) + \epsilon_{i} \\ \hat{\alpha}=\bar{y} \\ \hat{\beta}=\frac{s^{2}_{xy}}{s^{2}_{x}}

#### Introduction

To fit a straight line by least squares to n pairs of points (xi,yi), model the observations y by the above equation .

- Statistics of is defined as