Quoto

Learn / Library / Linear algebra

Trend line

Linear algebraMedium

Fit the line by least squares to the points , , and . What is the slope ? Give a fraction in lowest terms.

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Centre both coordinates at their means; the slope is a ratio of sums.

Solution
  1. The normal equations for and give the slope as , built from deviations from the means and .
  2. .
  3. .
  4. So the slope is .

Answer: