Lesson 1: The least-squares line

Fit a least-squares line to used-car prices

SkillFitting a least-squares line

Worked example

  • Simple familiar
  • Technology active

A Brisbane car dealer lists the age and price of ten used Toyota Corollas.

Age (years)12345678910
Price ($'000)31.527.828.423.024.119.618.917.513.214.6

Use technology to determine the equation of the least-squares line that can be used to predict price from age. Give the slope and intercept correct to two decimal places.

1 of 5 steps
  1. Step 1: Identify the variables

    We predict price from age, so age is the explanatory variable (xx) and price is the response variable (yy).

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. Decide which variable is explanatory; it goes in the xx list.

  2. Run the y=a+bxy = a + bx regression: bb is the slope, aa the intercept.

  3. Round as asked and write the equation with the variable names and units.

Watch out for

  • Writing y=32.71x−1.97y = 32.71x - 1.97 by mixing up the calculator's aa and bb.

  • Leaving the answer as y=−1.97x+32.71y = -1.97x + 32.71 without saying what xx and yy are.

Save your progress with a free account