Why Coefficient Standard Errors Matter
An estimated regression coefficient is calculated from a particular sample. A different sample of responses, even at the same predictor values, would generally produce a different estimated slope and intercept. A coefficient’s standard error measures the estimated sampling variability of that coefficient: it is an estimate of the standard deviation of the coefficient estimator across repeated samples under the model.
In simple linear regression, the standard error of the slope reflects how precisely the data determine the change in the mean response per unit increase in the predictor. The intercept standard error reflects the precision of the fitted mean response at \(x=0\). The two standard errors depend on the error variation and on the arrangement of the predictor values, but in different ways.
Formulas for the Two Standard Errors
Write \(\bar{x}=\sum_{i=1}^n x_i/n\) and \(S_{xx}=\sum_{i=1}^n(x_i-\bar{x})^2\). Provided \(S_{xx}>0\), the ordinary least-squares (OLS) slope and intercept estimates are
The coefficient variances involve the unknown \(\sigma^2\). In practice, estimate it using the residual sum of squares \(\mathrm{SSE}=\sum_{i=1}^n(Y_i-b_0-b_1x_i)^2\). The residual variance estimate is \(s^2=\mathrm{SSE}/(n-2)\), and the residual standard error is \(s=\sqrt{s^2}\). The two degrees of freedom are used because the fitted line estimates two coefficients.
Here \(\operatorname{Var}(b_0)\) and \(\operatorname{Var}(b_1)\) are the theoretical variances under the model, while the standard errors replace the unknown \(\sigma\) with its estimate \(s\). They are not the same as the residual standard error: \(s\) estimates the scale of the observation-level errors, whereas each coefficient standard error describes the estimated variability of a particular coefficient.
Why Predictor Spread and Location Matter
The slope formula contains \(S_{xx}\) in the denominator. When the predictor values are more spread out around their mean, \(S_{xx}\) is larger, so the slope standard error is smaller if the residual standard error remains unchanged. A wider range of predictor values provides more information about the rate of change in the fitted line.
The intercept standard error has two components. The \(1/n\) component reflects the contribution of estimating an average response. The additional \(\bar{x}^2/S_{xx}\) component reflects how far \(x=0\) is from the center of the observed predictors relative to their spread. If \(\bar{x}=0\), the observed predictor values are centered at zero and the intercept standard error is \(s/\sqrt{n}\). If zero is far from \(\bar{x}\), the standard error is larger. This is because the intercept is the fitted response at \(x=0\), which may be far from the center of the data.
The formulas follow directly by expressing each estimator in terms of the errors. Since \(Y_i=\beta_0+\beta_1x_i+\varepsilon_i\), the slope estimator can be written as
The errors have common variance \(\sigma^2\) and zero covariances, so the variance of this weighted sum is the sum of the squared weights times \(\sigma^2\). Thus
For the intercept, use \(b_0=\bar{Y}-b_1\bar{x}\). Substituting the model into \(\bar{Y}\) gives
The coefficient of \(\varepsilon_i\) in this expression is \(1/n-\bar{x}(x_i-\bar{x})/S_{xx}\). Squaring and summing these coefficients, then multiplying by \(\sigma^2\), gives the variance. The cross-product term is zero because \(\sum_{i=1}^n(x_i-\bar{x})=0\); the remaining terms are
Replacing \(\sigma\) by \(s\) in the square roots gives the estimated standard errors.
Worked Example: Calculating Both Standard Errors from Summary Values
A hypothetical study relates a monthly service-cost index \(Y\) to a workload measure \(x\). There are \(n=8\) observations, with \(\bar{x}=10\), \(S_{xx}=56\), and \(\mathrm{SSE}=24\). The fitted coefficients are \(b_0=18\) and \(b_1=1.5\). Calculate both coefficient standard errors and interpret them.
Method. First estimate the error variance, then substitute into each standard-error formula. The residual degrees of freedom are \(n-2=8-2=6\), so
For the slope,
For the intercept, first calculate the terms inside the square root:
Therefore,
Rounded to four decimal places, the slope standard error is \(0.2673\) and the intercept standard error is \(2.7646\). The fitted slope is \(1.5\), with estimated standard deviation \(0.2673\) across repeated samples under the model. The intercept’s standard error is larger in part because the mean predictor value, 10, is not close to zero. The common mistake avoided here is using \(s\) itself as either coefficient’s standard error.
Worked Example: Comparing Slope Precision Across Predictor Spreads
Two hypothetical workload studies each have \(n=10\) observations and the same residual standard error, \(s=3\). Study A has \(S_{xx}=25\), while Study B has \(S_{xx}=100\). Calculate the slope standard error in each study and compare them.
Method. Use \(\operatorname{SE}(b_1)=s/\sqrt{S_{xx}}\). For Study A,
For Study B,
Study B’s predictor spread, as measured by \(S_{xx}\), is four times as large. Its slope standard error is half as large, because taking the square root of the fourfold increase gives a twofold increase in the denominator. The slope is therefore estimated more precisely in Study B under the stated assumptions. This comparison holds the residual standard error fixed; if the error variation changed between studies, the comparison would need to account for that as well.
Worked Example: How Centering Changes the Intercept Standard Error
A hypothetical model has \(n=5\), \(\bar{x}=4\), \(S_{xx}=10\), and \(\mathrm{SSE}=12\). Calculate the slope and intercept standard errors. Then recenter the predictor using \(z=x-4\) and calculate the standard error of the intercept in the recentered model.
Estimate the residual standard error. There are \(5-2=3\) residual degrees of freedom:
The slope standard error in the original model is
The original intercept standard error is
After centering, \(\bar{z}=\bar{x}-4=0\), and the centered predictor has the same \(S_{zz}=10\), since subtracting a constant does not change deviations from the mean. The recentered intercept is the fitted response at \(z=0\), corresponding to the original predictor value \(x=4\). Its standard error is
Rounded to four decimal places, the slope standard error is \(0.6325\), the original intercept standard error is \(2.6833\), and the recentered intercept standard error is \(0.8944\). Centering does not change the fitted line or slope standard error; it changes which point on that line is represented by the intercept. The smaller recentered intercept standard error is consistent with estimating the response at the center of the observed predictor values rather than at \(x=0\).
Common Mistake: Treating the Intercept Like the Slope
A frequent error is to use \(s/\sqrt{n}\) as the intercept standard error in every regression. That formula applies to the intercept only when \(\bar{x}=0\). In the first worked example, this incorrect calculation would give
But the predictor mean is 10, not zero. The correct calculation includes the location term:
The incorrect result is too small because it omits the contribution from estimating the fitted response at \(x=0\), away from the center of these predictor values. A second common error is using \(n\), rather than \(n-2\), to estimate the residual variance. Always calculate \(s^2=\mathrm{SSE}/(n-2)\) before calculating either coefficient standard error.
Interpreting the Formulas Carefully
The formulas quantify precision under the stated model; they do not establish that the model is suitable for a particular data set. They also do not, by themselves, provide a probability statement about a coefficient. For example, calculating \(\operatorname{SE}(b_1)\) does not imply that a fixed proportion of future estimates will lie within one standard error of \(\beta_1\). Such claims require additional distributional results and conditions.
When comparing coefficient precision, check all relevant quantities. More observations can reduce standard errors, but the formulas also depend on residual variation and predictor spread. For the intercept, the predictor mean matters as well as its spread. Thus, a large slope standard error may reflect a small \(S_{xx}\), a large \(s\), or both; a large intercept standard error may additionally reflect a predictor center far from zero.
Check Your Understanding
For each problem, calculate the requested standard error using the model assumptions stated above. Round numerical results to four decimal places.
- A hypothetical study has \(n=9\), \(\bar{x}=2\), \(S_{xx}=18\), and \(\mathrm{SSE}=28\). Find \(s\), \(\operatorname{SE}(b_1)\), and \(\operatorname{SE}(b_0)\). (Answer: \(s=2\), \(\operatorname{SE}(b_1)=0.4714\), \(\operatorname{SE}(b_0)=1.1547\).)
- For a hypothetical centered predictor, \(n=8\), \(\bar{x}=0\), \(S_{xx}=32\), and \(\mathrm{SSE}=54\). Find both coefficient standard errors. (Answer: \(\operatorname{SE}(b_1)=0.5303\), \(\operatorname{SE}(b_0)=1.0607\).)
- A model has \(n=10\), \(\bar{x}=6\), \(S_{xx}=45\), and \(\mathrm{SSE}=64\). Calculate \(s\) and both coefficient standard errors. (Answer: \(s=2.8284\), \(\operatorname{SE}(b_1)=0.4216\), \(\operatorname{SE}(b_0)=2.6833\).)
- A study has \(n=5\), \(\bar{x}=3\), \(S_{xx}=8\), and \(\mathrm{SSE}=27\). Find the slope and intercept standard errors. (Answer: \(\operatorname{SE}(b_1)=1.0607\), \(\operatorname{SE}(b_0)=3.4533\).)
- Two hypothetical studies have the same \(n=12\) and the same SSE of 20. Their predictor sums of squares are \(S_{xx}=20\) and \(S_{xx}=80\), respectively. What is the ratio of the first study’s slope standard error to the second study’s? (Answer: \(2\); the first study’s slope standard error is twice the second’s.)