StatisticsLinear Regression

Least-squares regression line for advertising spend (thousand dollars) vs sales (units)

Homework Question

For the data x=(2,4,6,8,10,12)x = (2, 4, 6, 8, 10, 12) and y=(15,22,26,35,38,47)y = (15, 22, 26, 35, 38, 47) (advertising spend (thousand dollars) vs sales (units)), find the least-squares regression line y^=b0+b1x\hat{y} = b_0 + b_1 x, the correlation rr, and predict yy at x=9x = 9.

Verified Final Answer
y^=8.800+3.100x\hat{y} = 8.800 + 3.100x, r≈0.9935r \approx 0.9935, y^(9)≈36.70\hat{y}(9) \approx 36.70

Key Formula & Principle

b1=∑(x−xˉ)(y−yˉ)∑(x−xˉ)2,b0=yˉ−b1xˉb_1 = \frac{\sum (x - \bar{x})(y - \bar{y})}{\sum (x - \bar{x})^2}, \quad b_0 = \bar{y} - b_1\bar{x}

Step-by-Step Solution

  1. 1
    Means: xˉ=7\bar{x} = 7, yˉ=30.5\bar{y} = 30.5.
  2. 2
    ∑(x−xˉ)(y−yˉ)=217\sum (x - \bar{x})(y - \bar{y}) = 217 and ∑(x−xˉ)2=70\sum (x - \bar{x})^2 = 70.
  3. 3
    Slope: b1=21770=3.1000b_1 = \frac{217}{70} = 3.1000; intercept: b0=30.5−(3.1000)(7)=8.8000b_0 = 30.5 - (3.1000)(7) = 8.8000.
  4. 4
    Correlation r≈0.9935r \approx 0.9935 (TI-84: LinReg(a+bx) with DiagnosticOn).
  5. 5
    Prediction: y^(9)=8.8000+3.1000(9)≈36.70\hat{y}(9) = 8.8000 + 3.1000(9) \approx 36.70.
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 →