Least-Squares Line Slope from Data
Mediumregressionleast squares
A least-squares straight line is fitted to the points (1, 2), (2, 4), (3, 5) and (4, 7). Its slope is most nearly:
- A1.25
- B1.60
- C1.67
- D2.00
Show solutionHide solution
Answer: B. 1.60
Equation: least-squares slope m = Sxy/Sxx, with Sxy = Σ(x − x̄)(y − ȳ) and Sxx = Σ(x − x̄)². Values: points (1,2), (2,4), (3,5), (4,7); x̄ = 2.5, ȳ = 4.5. Step 1: deviations x − x̄ = −1.5, −0.5, 0.5, 1.5 and y − ȳ = −2.5, −0.5, 0.5, 2.5. Step 2: Sxy = 3.75 + 0.25 + 0.25 + 3.75 = 8; Sxx = 2.25 + 0.25 + 0.25 + 2.25 = 5. Step 3: m = 8/5 = 1.60. 1.67 is the slope between the end points; 2.00 uses the first two points; 1.25 inverts the ratio.
Practice this deckUntimed, one problem at a time, with your progress saved.
Related problems
- Slope of a Least-Squares Line · Math & Statistics Refresher
- Derivative of a Cubic Function at a Point · Math & Statistics Refresher
- Definite Integral of a Polynomial · Math & Statistics Refresher
