Learn / Library / Linear algebra
Trend line
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.
Hint
Centre both coordinates at their means; the slope is a ratio of sums.
Solution
- The normal equations for and give the slope as , built from deviations from the means and .
- .
- .
- So the slope is .
Answer: