StatisticsLinear Regression & Correlation

Find Least-Squares Regression Line and r for 5 Data Points

Homework Question

Given data points (1,2),(2,4),(3,5),(4,4),(5,5)(1, 2), (2, 4), (3, 5), (4, 4), (5, 5), find the least-squares regression line y^=b0+b1x\hat{y} = b_0 + b_1 x and correlation coefficient rr.

Verified Final Answer
y^=2.2+0.6x\hat{y} = 2.2 + 0.6x, r=0.6≈0.7746r = \sqrt{0.6} \approx 0.7746

Key Formula & Principle

b1=SxySxx,b0=yˉ−b1xˉ,r=SxySxxSyyb_1 = \frac{S_{xy}}{S_{xx}}, \quad b_0 = \bar{y} - b_1\bar{x}, \quad r = \frac{S_{xy}}{\sqrt{S_{xx}S_{yy}}}

Step-by-Step Solution

  1. 1
    Compute sample means: xˉ=1+2+3+4+55=3\bar{x} = \frac{1+2+3+4+5}{5} = 3 and yˉ=2+4+5+4+55=4\bar{y} = \frac{2+4+5+4+5}{5} = 4.
  2. 2
    Compute sums of squares: Sxx=(−2)2+(−1)2+02+12+22=10S_{xx} = (-2)^2 + (-1)^2 + 0^2 + 1^2 + 2^2 = 10 and Syy=(−2)2+02+12+02+12=6S_{yy} = (-2)^2 + 0^2 + 1^2 + 0^2 + 1^2 = 6.
  3. 3
    Compute cross-products: Sxy=(−2)(−2)+(−1)(0)+(0)(1)+(1)(0)+(2)(1)=6S_{xy} = (-2)(-2) + (-1)(0) + (0)(1) + (1)(0) + (2)(1) = 6.
  4. 4
    Find slope b1=610=0.6b_1 = \frac{6}{10} = 0.6, intercept b0=4−0.6(3)=2.2b_0 = 4 - 0.6(3) = 2.2, and correlation r=610⋅6=0.6≈0.7746r = \frac{6}{\sqrt{10 \cdot 6}} = \sqrt{0.6} \approx 0.7746.
Interactive Homework Customizer

Have this WebAssign / Canvas problem with different numbers?

Replace the numbers or functions below to match your exact assignment version, then generate a custom step-by-step derivation.

View all Statistics →