Definition · Regression
The least-squares criterion
Definition from the chapter Linear regression and correlation of Statistics and probability, with the exercises in which it is used.
The least-squares criterion
Consider the line for the five observations. At the predictor values the line gives the values , while the observed responses are . The vertical deviations, that is, observed response minus value of the line, are , , , , , and the sum of their squares is . Another line gives a different sum, and we look for the line for which this sum is as small as possible.
In general, for the line , write for the intercept and for the slope. At predictor value number , the line gives , so the vertical deviation from the observation is . The least-squares criterion chooses and to minimize the sum
Squaring gives positive contributions from deviations of opposite signs: two deviations and contribute , while their sum without squares would be .
The deviation is measured vertically, that is, along the response. If predictor and response are interchanged, the deviations become horizontal and the minimization problem changes, so the line found also changes.
Read it in the chapter Linear regression and correlation →
All the definitions and theorems of Statistics and probability → · All the theorems on the site →