PsychologyOrbit
Sign in Join

Psychology dictionary

Linear regression

Definition

A method that fits a straight line to data to predict one variable from another: predicted y = a + b times x.

Explanation

The slope b shows how much y changes for each one-unit increase in x; the intercept a is the predicted y when x is zero. The line is chosen to make the squared prediction errors as small as possible (least squares).

Regression describes a relationship and allows prediction, but like correlation it does not prove cause and effect.

Example

Predicting test score from hours of practice.

Worked example

  1. x: 1, 2, 3, 4, 5 (mean 3). y: 2, 4, 5, 4, 5 (mean 4).
  2. Sum of products of deviations = 6; sum of squared x deviations = 10.
  3. Slope b = 6 / 10 = 0.6.
  4. Intercept a = 4 - 0.6 x 3 = 2.2.
  5. Prediction for x = 6: 2.2 + 0.6 x 6 = 5.8.

Answer: Predicted y = 2.2 + 0.6x

Exam tip

Do not predict far outside the range of your data; the line may not hold there.

Compare

Related terms

Written in plain English for students. It is a study aid, not clinical or medical advice. Back to the dictionary