Linear Regression Statistics Example 2

Follow the full solution, then compare it with the other examples linked below.

Example 2

hard
Using y^=10+3x\hat{y} = 10 + 3x, predict yy when x=5x = 5. Is it appropriate to predict for x=50x = 50 if the data ranged from x=1x = 1 to x=10x = 10?

Solution

  1. 1
    Step 1: y^=10+3(5)=25\hat{y} = 10 + 3(5) = 25.
  2. 2
    Step 2: Predicting for x=50x = 50 would be extrapolation, since 50 is far outside the data range (1โ€“10).
  3. 3
    Step 3: Extrapolation is unreliable because we have no evidence the linear pattern continues beyond the observed data.

Answer

y^=25\hat{y} = 25 for x=5x = 5. Predicting at x=50x = 50 is inappropriate extrapolation.
Regression models should only be used for interpolation (within the data range). Extrapolation assumes the pattern continues unchanged, which is often unjustified.

About Linear Regression

Linear regression is a statistical method for modeling the relationship between a dependent variable and one or more independent variables by fitting a straight line that minimizes the sum of squared distances from data points to the line (least squares method).

Learn more about Linear Regression โ†’

More Linear Regression Examples