Confidence Intervals for Linear Regression Slope Parameters

Constructing t-based confidence intervals for the true slope parameter β₁ of a linear regression model, using either the given standard error of the slope or the residual standard error computed from the sum of squared residuals.

Step 1 of 119%

Tutorial

Confidence Interval for the Slope

For a linear regression of YY on X,X, the population model is

Y=β0+β1X+ε.Y = \beta_0 + \beta_1 X + \varepsilon.

We estimate the true slope β1\beta_1 with the sample slope b1b_1 obtained by least squares. To quantify the uncertainty in this estimate, we use a confidence interval for β1\beta_1:

b1±tSE(b1),b_1 \pm t^* \cdot SE(b_1),

where SE(b1)SE(b_1) is the standard error of the slope estimate and tt^* is the critical value from a tt-distribution with n2n-2 degrees of freedom. Two degrees of freedom are lost because both β0\beta_0 and β1\beta_1 are estimated from the data.

For example, suppose a regression with n=15n = 15 produces b1=1.4b_1 = 1.4 and SE(b1)=0.5.SE(b_1) = 0.5. Using t=2.160t^* = 2.160 (the 95%95\% critical value for 1313 degrees of freedom),

ME=tSE(b1)=2.1600.5=1.080,\begin{align*} \text{ME} &= t^* \cdot SE(b_1) \\[3pt] &= 2.160 \cdot 0.5 \\[3pt] &= 1.080, \end{align*}

and the 95%95\% confidence interval is

1.4±1.080=(0.320,2.480).1.4 \pm 1.080 = (0.320,\, 2.480).
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle