The slope is a random variable
A regression reports . Is the true slope different from zero, or would another sample have given 0.3? To answer, treat the estimate as what it is: a function of noisy data. Write the model as with and . Substituting into the OLS formula from Least Squares as a Projection,
so is unbiased and
The standard error of coefficient is the square root of the th diagonal entry, with replaced by its estimate , where counts every coefficient including the intercept. Dividing by fixes the same bias as the in the sample variance: the fit used up degrees of freedom.
For a simple regression the diagonal entry has a closed form:
That gives three levers: less residual noise, more spread in , more data. Because of the , halving the standard error costs four times the data.
Worked example: , residual standard error , and . Then .