Lesson 1 of 8 · 14 min
The regression model and least squares
Simple linear regression explains the variation in Y with one variable X by fitting the straight line that makes the sum of squared vertical misses as small as possible.
In short
- The dependent variable (Y) is the one we want to explain; the independent variable (X) is the one doing the explaining. We say “Y is regressed on X”.
- Population model: . is the intercept, the slope coefficient, the error term.
- Ordinary least squares (OLS) picks and to minimise the sum of squares error (SSE), the sum of squared residuals.
- Slope = covariance of X and Y ÷ variance of X. Intercept = , so the line runs through .
- The slope and the correlation always have the same sign, because both take the sign of the covariance.
Unlock this lesson free for 7 days
Create a free account to get 7 days of full access — every lesson, video, flashcard, mock and the question bank. No card needed.