Track 9 · Correlation and Regression · Lesson 8 of 15

Inference for regression

Test and estimate a regression slope with its standard error, and choose between a confidence interval for a mean response and a prediction interval for a new observation.

35 minAdvanced8 graded exercisesMembers

A brand manager wants to know two different things from last year's data: how precisely the sales gain per thousand SAR of TV spend is known, and what range of sales to plan for in a week with 60 thousand SAR of TV advertising. The first is a question about a slope; the second is about one future week — and the second interval is always much wider.

The fitted slope b1b_1 is an estimate of the population slope β1\beta_1 in the model y=β0+β1x+εy = \beta_0 + \beta_1 x + \varepsilon. A different sample of weeks would give a different line, so b1b_1 has a sampling distribution. Under the LINE assumptions (see Residual analysis) its standard error, test and interval follow the familiar tt pattern with n−2n - 2 degrees of freedom.

Included with a Formula Quest membership

It has 8 graded exercises with feedback, hints and worked solutions. After it you will be able to:

  • Compute the standard error, t statistic and confidence interval of a slope
  • Explain why a spread-out predictor gives a more precise slope
  • Choose between a confidence interval for a mean response and a prediction interval for one observation
  • Explain why prediction intervals stay wide with more data and fail outside the data