Why a t Distribution Appears in Regression
A regression coefficient is estimated from a sample, so the estimate varies from sample to sample. If the error variance were known, a coefficient estimate could be standardized using that known variance. In practice, the variance is usually unknown and is estimated from the regression residuals. That substitution changes the standardized statistic: under the normal-error model, it follows a t distribution, not a standard normal distribution.
The reason is a specific combination of results. A centered regression coefficient estimate is normally distributed. Separately, the residual sum of squares, after division by the true error variance, has a chi-square distribution with \(n-2\) degrees of freedom. Under normal errors these two quantities are independent. Their ratio, with the chi-square quantity providing the estimated variance in the denominator, has a t distribution.
Write \(\bar{x}\) for the mean of the predictor values and \(S_{xx}=\sum_{i=1}^n(x_i-\bar{x})^2\). Let \(b_0\) and \(b_1\) be the least-squares estimates of \(\beta_0\) and \(\beta_1\). The residual for observation \(i\) is \(e_i=Y_i-(b_0+b_1x_i)\), and the residual sum of squares is \(\mathrm{SSE}=\sum_{i=1}^n e_i^2\). Because two regression coefficients have been estimated, the residual variance estimate uses \(n-2\) degrees of freedom: \(s^2=\mathrm{SSE}/(n-2)\).
The Coefficient Standard Errors and Their t Statistics
Under the stated model, the sampling variances of the least-squares estimates are \(\operatorname{Var}(b_1)=\sigma^2/S_{xx}\) and \(\operatorname{Var}(b_0)=\sigma^2(1/n+\bar{x}^2/S_{xx})\). Replacing \(\sigma\) by the residual standard deviation \(s\) gives the estimated standard errors. Thus the slope and intercept statistics, centered at their true coefficients, are
Each statistic has a \(t\) distribution with \(n-2\) degrees of freedom. More generally, the same result applies to a linear combination of the regression coefficients when its standard error is formed using \(s\) and the model-based variance of that combination. For a statistic centered at a proposed value instead of the true coefficient, the exact \(t\) statement holds when the proposed value equals the true coefficient.
Why the Ratio Has a t Distribution
The derivation makes clear why estimating the error variance matters. Let \(Y\) be the vector of responses, let \(X\) be the \(n\)-by-2 matrix whose rows are \((1,x_i)\), and let \(\boldsymbol{\beta}=(\beta_0,\beta_1)^\mathsf{T}\). The model can be written \(Y=X\boldsymbol{\beta}+\boldsymbol{\varepsilon}\). The least-squares estimate is \(\hat{\boldsymbol{\beta}}=(X^\mathsf{T}X)^{-1}X^\mathsf{T}Y\). Since it is a linear transformation of a normal error vector, \(\hat{\boldsymbol{\beta}}\) is normal with mean \(\boldsymbol{\beta}\) and covariance matrix \(\sigma^2(X^\mathsf{T}X)^{-1}\).
Let \(H=X(X^\mathsf{T}X)^{-1}X^\mathsf{T}\) be the projection matrix onto the fitted regression space. The residual vector is \((I-H)Y=(I-H)\boldsymbol{\varepsilon}\), because \((I-H)X=0\). The matrix \(I-H\) is symmetric and idempotent, and its rank is \(n-2\). A standard normal quadratic-form result therefore gives the residual sum of squares distribution shown below.
The coefficient estimate depends on the projection of the errors into the fitted space, while the residual vector depends on the projection into the orthogonal residual space. These projections have zero covariance: \(X^\mathsf{T}(I-H)=0\). They are jointly normal because they are linear transformations of the normal error vector. Jointly normal quantities with zero covariance are independent, so the coefficient estimate is independent of \(\mathrm{SSE}\), and hence of \(s^2\).
For either coefficient, its centered estimate divided by its true standard deviation is a standard normal variable \(Z\). The independent variance estimate satisfies \(s^2/\sigma^2=(\mathrm{SSE}/\sigma^2)/(n-2)\). Consequently, the coefficient statistic is the ratio of \(Z\) to the square root of an independent chi-square variable divided by its degrees of freedom. That ratio is the definition of a Student t random variable.
Worked Examples
Worked Example: The Slope Statistic With Fourteen Residual Degrees of Freedom
A hypothetical regression study has \(n=16\) fixed predictor values with \(S_{xx}=14\). Its fitted slope is \(b_1=2.2\), its residual sum of squares is \(\mathrm{SSE}=14\), and the coefficient value being centered on is \(\beta_1=1.6\). Calculate the slope statistic and state its distribution under the model.
Method. Estimate the residual variance, use it to calculate the slope standard error, and then standardize the difference between the fitted and centered slope. This avoids using the standard normal distribution when the error variance is estimated.
There are \(n-2=16-2=14\) residual degrees of freedom. Thus \(s^2=14/14=1\), so \(s=1\).
The estimated slope standard error is \(\operatorname{SE}(b_1)=1/\sqrt{14}\). The centered difference is \(b_1-\beta_1=2.2-1.6=0.6\). Therefore
The reported value is rounded to four decimal places. Under the model, the statistic centered at the true slope has a \(t_{14}\) distribution. As a check on the arithmetic, \(T_1^2=0.36(14)=5.04\), and \(2.2450^2\) is approximately \(5.0400\). The statistic is therefore consistent with the computed ratio.
Worked Example: Standardizing the Intercept Estimate
In a hypothetical study, \(n=10\), \(\bar{x}=2\), \(S_{xx}=30\), and \(\mathrm{SSE}=16\). The fitted intercept is \(b_0=5.4\). Calculate the intercept statistic centered at \(\beta_0=5.0\), and give its reference distribution under the model.
Method. Use the intercept standard-error formula, which includes both the sample size and the location of the predictor mean. A common mistake is to use the slope standard-error formula for the intercept.
The residual degrees of freedom are \(10-2=8\), so \(s^2=16/8=2\), and \(s=\sqrt{2}\). The squared factor in the intercept standard error is
It follows that \(\operatorname{SE}(b_0)=\sqrt{2}\sqrt{7/30}=\sqrt{7/15}\approx0.6831\). The difference from the centered intercept is \(5.4-5.0=0.4\), so \(T_0=0.4/\sqrt{7/15}\approx0.5855\), rounded to four decimal places.
The reference distribution is \(t_8\) when the centered value \(5.0\) is the true intercept. As a check, \(0.5855(0.6831)\approx0.4000\), recovering the original intercept difference up to rounding.
Worked Example: A Slope Statistic Centered at a Specified Value
A hypothetical regression has \(n=12\), \(S_{xx}=22\), \(\mathrm{SSE}=20\), and fitted slope \(b_1=1.5\). Calculate the statistic centered at \(\beta_1=1.0\). State exactly when this statistic has a \(t\) distribution.
Method. Form the coefficient difference divided by its estimated standard error, using the residual degrees of freedom. This distinguishes the observed numerical statistic from the distributional claim, which depends on whether the centering value is the true slope.
The residual degrees of freedom are \(12-2=10\), and \(s^2=20/10=2\). The estimated slope standard error is
The coefficient difference is \(1.5-1.0=0.5\). Therefore \(T_1=0.5\sqrt{11}\approx1.6583\), rounded to four decimal places. As a check, \(T_1^2=0.25(11)=2.75\), which agrees with \((0.5)^2/(1/11)=2.75\).
If the true slope is \(\beta_1=1.0\) and the model assumptions hold, this statistic has a \(t_{10}\) distribution. If the true slope is not \(1.0\), the statistic centered at \(1.0\) does not have that central \(t_{10}\) distribution.
What the t Result Does—and Does Not—Say
The t distribution accounts for uncertainty from estimating \(\sigma^2\). Its heavier tails, compared with a standard normal distribution, reflect that additional uncertainty. With more residual degrees of freedom, the t distribution approaches the standard normal distribution, but for a finite sample the exact result is \(t_{n-2}\) under the stated assumptions.
The exact result is conditional on the predictor values and depends on the normal-error model. If errors are not normal, the coefficient may still have useful large-sample approximations under suitable conditions, but the exact independence-and-ratio derivation above no longer establishes a t distribution. If the error variance is known rather than estimated, the denominator does not contain the independent chi-square estimate, and the corresponding standardized coefficient is normal instead.
The central idea is not that any ratio involving a regression estimate automatically has a t distribution. The exact result follows because the model makes the centered coefficient normal, makes the scaled residual sum of squares chi-square, and makes these quantities independent. Knowing which assumptions create those three properties helps identify both when the result applies and when it does not.
Check Your Understanding
For each problem, use the stated normal-error regression model and give the statistic and its degrees of freedom where requested.
- A regression has \(n=9\), \(\mathrm{SSE}=14\), \(S_{xx}=8\), fitted slope \(b_1=0.75\), and true slope \(\beta_1=0.25\). Find the slope statistic and its t degrees of freedom. (Answer: \(T_1=1.0000\), \(t_7\).)
- A regression has \(n=20\), \(\mathrm{SSE}=36\), \(S_{xx}=50\), and fitted slope \(b_1=1.3\). For a statistic centered at \(\beta_1=1.0\), calculate its value and state when it has a central t distribution. (Answer: \(T_1=1.5000\); it has a \(t_{18}\) distribution if \(\beta_1=1.0\) is the true slope.)
- A regression has \(n=15\), \(\mathrm{SSE}=26\), \(\bar{x}=3\), \(S_{xx}=30\), fitted intercept \(b_0=4.2\), and true intercept \(\beta_0=3.6\). Calculate the intercept statistic, rounded to four decimal places, and its degrees of freedom. (Answer: \(T_0\approx0.7007\), \(13\) degrees of freedom.)
- A regression has \(n=11\), \(\mathrm{SSE}=18\), \(S_{xx}=18\), fitted slope \(b_1=-0.4\), and true slope \(\beta_1=-0.9\). Calculate the slope statistic and state its distribution. (Answer: \(T_1=1.5000\), \(t_9\).)
- In a regression with \(n=14\), errors are independent with mean zero and common variance, but their distribution is not normal. Does the exact derivation here establish that the slope statistic has a \(t\) distribution with 12 degrees of freedom? (Answer: No; without normal errors, this derivation does not establish an exact \(t_{12}\) distribution.)