Predictor centering 2026-10-07
Replacing a numerical predictor by preserves the fitted mean space and slope in a linear regression containing an intercept. The intercept becomes the fitted mean at . In simple linear regression, centering at the sample mean makes intercept and slope estimates uncorrelated under a normal linear model. This changes coefficient interpretation, not predictions.
Regression coefficient test power ignores nuisance coefficients Created 2026-10-05 Updated 2026-10-14
In a fixed full-rank normal linear model, the studentized estimator of one coefficient has a noncentral t-distribution with noncentrality equal to that coefficient divided by its standard deviation. The fitted and residual orthogonal projections of the Gaussian noise are independent. Therefore the statistical power of its exact Student's t-test does not depend on the other regression coefficients, with design and variance fixed.
For a fixed residual direction obtained by Square-root Lasso, its optimality condition gives . In a fixed-design normal linear model, the score equals a component plus a remainder bounded by . The direction must be fixed or independent of the response noise for that normality claim.
Residual standard error 2026-10-06
In a full-rank normal linear model with observations and mean coefficients, the residual standard error estimates the common error standard deviation. Its square is the unbiased estimator ; the square root itself is not generally unbiased. It measures unexplained response variation, whereas a regression coefficient's standard error measures uncertainty in that coefficient.
Simple linear regression Created 2026-09-24 Updated 2026-10-14
Simple linear regression uses one predictor and an intercept, , with . The regression coefficients describe a straight conditional-mean line: is its value at zero and its rate of change per unit of the predictor. When zero is outside the observed range, predictor centering can make the intercept refer to a more representative predictor value.
For fixed predictors and uncorrelated mean-zero errors of common variance , with ,
A larger predictor spread improves slope precision under this model. In the worked example and ; the estimated error variance is . A normal linear model gives the slope pivot a Student t-distribution with degrees of freedom. The distinction between a fitted line and a reliable uncertainty statement is precisely the role of the error assumptions.
Consider ordinary least squares with an intercept, one nonconstant predictor, cases, a nonconstant response, and a positive residual sum of squares. With the usual common-variance standard error, put . Then
The least-squares normal equations give zero residual sum and zero residual inner product with the centred predictor, proving the first identity and . The fitted centred sum of squares is . Dividing it by gives the one-predictor F statistic and the squared zero-slope t statistic. Dividing fitted and residual sums of squares by their total gives the last expression. If , the adjusted coefficient of determination is .
These are algebraic consistency identities for one specified fit; the mean identity needs no normal-error assumption. A normal linear model supplies the usual finite-sample t and F reference distributions. Heteroscedasticity-robust standard errors need not satisfy the displayed F=t-squared relationship to the classical sums-of-squares F statistic. Rounding can create small discrepancies, while different analysed records or a changed model can create larger ones; neither should be silently treated as the same fit.[ref]
Standardized regression residual Created 2026-10-05 Updated 2026-10-14
In a normal linear model, the th regression residual has variance , where is a diagonal entry of the hat matrix. Replacing by the residual standard deviation gives the standardized residual used in the normal Q-Q plot of R's linear-model diagnostic plots.
Statistical degrees of freedom Created 2026-10-07 Updated 2026-10-14
The number of free dimensions remaining after specified constraints often determines a reference sampling distribution. In a full-rank normal linear model with observations and mean coefficients, the residual space has dimension . A regular nested likelihood-ratio test instead uses the difference in free statistical parameter dimensions. Boundary constraints may invalidate this regular calibration.
Stepwise selection by the Akaike information criterion Created 2026-10-14 Updated 2026-10-20
Starting from a fitted model, compare admissible single-term additions and deletions within specified lower and upper scopes, retaining hierarchical lower-order terms when an interaction requires them. Select a change reducing the Akaike information criterion and repeat until no admissible change improves it. For a Gaussian normal linear model with observations and fitted mean coefficients, the criterion used by R's linear-model stepwise search is , up to constants common to the models. The search is greedy and need not find the best model in the whole scope. Ordinary coefficient tests in the selected model do not account for this model selection. The software arguments are documented in the MASS documentation.
Two-factor normal linear model Created 2026-10-06 Updated 2026-10-14
A two-factor normal linear model describes independent responses with factor-specific means and common normal error variance. The additive mean assumes no interaction term; the full mean permits the first factor effect to vary with the second. Constraints or treatment coding identify the parameters. In a balanced two-by-five design the full model has ten free cell means.
For a full-column-rank design matrix in a normal linear model, a fitted mean at covariate vector is . The covariance matrix of the least-squares estimator immediately gives the displayed variance. Replacing by the independent unbiased residual variance gives its squared standard error and a Student t confidence interval on statistical degrees of freedom. A future response instead contributes an additional error variance when its error is independent of the fitted data.