My AcademicTutor
← Back to module

Statistics Foundation · Lesson 5.3

Least squares and residuals.

Least squares explains how a regression line is chosen. This lesson studies residuals, squared errors, the least-squares criterion, fitted-line properties, residual diagnostics, leverage and influential observations.

160 minutes
No coding
Residuals
Diagnostics

Lesson route

Move from fitting a line to judging the fit.

0–20 min

Why least squares is needed

Understand why many possible lines can pass through a scatterplot and why a fitting rule is needed.

20–45 min

Residuals as vertical errors

Define residuals as observed minus fitted values and interpret positive, negative and large residuals.

45–75 min

Sum of squared residuals

Learn why residuals are squared and how the least-squares criterion chooses a line.

75–105 min

Deriving the fitted line

Connect the least-squares criterion to the formulas for slope and intercept.

105–130 min

Diagnostics

Use residual patterns to detect nonlinearity, changing spread and unusual observations.

130–160 min

Limitations

Understand outliers, leverage, influence and why a low residual sum does not guarantee a good scientific model.

Mastery checklist

Students should understand what the fitted line minimises.

1

Define residuals correctly.

2

Calculate fitted values and residuals.

3

Explain the least-squares criterion.

4

Compute a simple SSE.

5

Understand why residuals are squared.

6

Connect slope formula to least squares.

7

Interpret residual plots.

8

Recognise leverage and influence.