, , and full-rank gives .
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.
To pool factor levels in a normal linear model, impose equality of their fitted means while retaining any needed interaction terms. Compare the resulting nested model with the full model using a nested-model F-test. For two cells each of size , pooling their fitted means adds to the residual sum of squares. If pooling two pairs separately within two other-factor levels, there are four restrictions.
With a full-column-rank design and isotropic normal errors, ordinary least squares gives , independent of the residual squared length. Orthogonal design and residual projections of the multivariate normal distribution are independent, and . The maximum likelihood variance estimate is , not the unbiased estimate .
Restricted maximum likelihood estimates covariance matrix parameters from linear combinations of the data whose distribution does not involve the fixed mean coefficients. It differs from a restricted maximum-likelihood estimator obtained by maximizing an ordinary likelihood function under a null hypothesis.
For and a full-column-rank design matrix , take with and . Then , so restricted maximum likelihood maximizes
Changing the orthonormal basis by an orthogonal matrix leaves this expression unchanged.
If and , then the posterior is normal with precision matrix and mean equal to the inverse precision times .
With independent standard-normal priors on the two coefficients, the conditional AR(2) likelihood gives precision , where , and mean . Positive definiteness holds even for a deficient design. If and the linear term is , the conditional means are and , with variances and .
Let , let the prior distribution of the precision be the shape-rate Gamma distribution , and use a constant improper prior for . Assume has zero null space. Write , , , , and . The proper joint posterior density is proportional to
Its conditional distributions are and . Its marginal precision law is . Integration of the displayed kernel gives , proving propriety despite the improper prior.
A joint maximum a posteriori estimate relative to exists exactly when , and is . If , the supremum is approached at but not attained; if , the density is unbounded there. Separate marginal maximization gives for the unknown and for the precision when . This illustrates that joint and marginal modes need not agree, and that a proper posterior distribution need not have a mode in its open parameter space.
For , with independent and , the multivariate normal distribution of the Bayesian posterior has posterior mean and covariance matrix . The singular value decomposition shows that the variance on a right singular vector of nonzero singular value is , while the variance along the null space is one. Thus, for fixed data, the mean tends to the minimum-norm least-squares solution and the covariance tends to the orthogonal projection onto the null space. Unobserved components retain their prior distribution even as the noise vanishes.
A Gaussian likelihood is a likelihood function obtained by modeling the observations conditionally with a normal distribution.
Orthogonal projections of an isotropic Gaussian vector are independent. If is an orthogonal projection of rank and , then
Linear regression models a response mean as a linear combination of predictors. Ordinary least squares chooses to minimize the sum of squared residuals.
If the true conditional mean is , the population slope from regressing on alone is , assuming a mean-zero error uncorrelated with the predictors. The omitted predictor can steepen, flatten, or reverse the pooled association. The same identity holds for fitted coefficients and empirical covariances when comparing nested ordinary least-squares fits. Adjustment changes the comparison being described; a causal interpretation requires additional assumptions.
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 diagnostics check assumptions and influential observations in a fitted regression function. Residual-versus-fitted plots can reveal omitted mean structure or nonconstant variance; a quantile-quantile plot checks a specified error distribution. Regression leverage measures unusual predictor configurations, and Cook's distance combines leverage and residual size to measure coefficient sensitivity. Independence may require checking collection order and the study design in addition to residual plots.
An influential observation substantially changes a fitted model or its predictions when removed or perturbed. In a linear regression, influence depends jointly on residual size and regression leverage. Large predictor leverage with a small residual and a large residual at ordinary leverage can have different consequences. Regression diagnostics examine this sensitivity; influence is not synonymous with an invalid observation.
A regression outlier has a response unusually far from its fitted conditional mean. A standardized regression residual adjusts for regression leverage; an externally studentized residual also estimates noise variance with the observation deleted. Selecting the largest residual among many observations changes its reference distribution. An outlier need not be an influential observation, and unusual valid data should not be discarded solely for being unusual.
A piecewise linear regression-path algorithm which starts at zero, activates a predictor with maximal absolute residual score, and moves in a direction that decreases all active absolute scores equally until another predictor ties them. With and active correlation signs , the coefficient direction is . Ordinary LAR does not drop a predictor when its coefficient crosses zero; sign compatibility of LAR and Lasso characterizes when its path also obeys the Lasso KKT conditions.
If every nonzero active coefficient has the sign of its residual score along the least angle regression path, the LAR active correlation invariant and inactive bounds give the Karush-Kuhn-Tucker conditions for the Lasso. A unique Lasso solution then equals the LAR path. Zero coefficients use a subgradient interval; literal sign equality with sign(0)=0 is not appropriate for a newly entering coefficient at a positive knot.
Each least angle regression segment starts with all active scores at magnitude . Moving with direction changes the score vector to . The first-hit rule bounds every inactive score in magnitude by . This is the key Lasso optimality link.
On a segment starting at residual-score level , an inactive score evolves as while the active level is . Solving gives distances and . The smallest positive admissible distance determines the next entry; reaching level zero ends the algorithm.
A reciprocal-predictor linear regression uses for nonzero predictor . It remains linear in its coefficients. Its flattening shape can suit a saturating response over a positive predictor range; residual checks and cross-validation must assess adequacy, and extrapolation toward zero is hazardous.
The intercept is the coefficient of the constant design column. Adding a constant to a predictor can be absorbed by changing the intercept, leaving fitted values and all slope coefficients unchanged.
A linear regression in the coefficients with a polynomial mean function . Successive degrees define nested models that can be compared by an F-test.
A polynomial regression of degree two is linear in its unknown regression coefficients despite being curved in the predictor. Its design matrix has columns ; three distinct predictor values give full column matrix rank.
In an ordinary least squares regression with an intercept and a nonconstant response, . It measures the fitted proportion of sample variation relative to an intercept-only baseline. It increases when regressors are added, even if those regressors are unhelpful for prediction. A high value does not establish the assumptions of a normal linear model or rule out a systematic regression residual pattern.
A residual-versus-fitted plot displays residuals vertically against predicted responses horizontally. Curvature suggests an incorrect conditional-mean model; a fan-shaped spread suggests heteroscedasticity, while isolated large residuals may indicate unusual observations. It does not alone measure leverage or influence: regression leverage records unusual predictor combinations, and Cook's distance combines leverage and residual size.
A scale-location plot compares the square root of the absolute standardized regression residual with the fitted values. Systematic changes in level or spread suggest heteroscedasticity. It assesses the error scale, while a residual-versus-fitted plot primarily reveals mean patterns as well as changing spread.
Analysis of variance decomposes variation into contributions associated with model terms and residual error. For nested normal linear models, differences of residual sums of squares give sequential or partial F-tests.
For an orthogonal projection matrix , a sum of squares in ANOVA is . Mutually orthogonal projections yield an additive decomposition of total squared response magnitude. Removing the grand mean gives the corrected total.
A mean square in ANOVA divides a sum of squares in ANOVA by its positive number of statistical degrees of freedom. If the corresponding residual subspace has scalar error covariance , its expectation is . Its scale depends on whether raw observations or group means were projected.
An ANOVA stratum is an orthogonal response subspace representing one level of experimental variation, such as between blocks or within blocks. In a covariance model scalar on each such subspace, its eigenvalue supplies the common variance scale for its projected coordinates. Treatment and residual sums of squares in ANOVA must be compared within appropriate strata.
The within-block ANOVA stratum contains response vectors whose coordinates sum to zero separately in every block. For blocks of size its dimension is . A shared additive block effect cancels in every vector in this subspace.
In a complete two-factor design with equal cell replication, centred factor indicator columns for different factors have zero cross-products. Consequently the two main effects in an additive normal linear model are orthogonal, and their extra sums of squares do not depend on the order in which these main effects are entered. An omitted interaction term can still require a separate adequacy check.
The Frisch–Waugh–Lovell theorem says that a regression coefficient can be obtained by residualizing both the response and its predictor against the remaining predictors and then regressing one residual on the other.
Simple linear regression uses one predictor and an intercept, .
The residual sum of squares is
Ridge regression minimizes a squared-error loss plus the quadratic penalty . Its positive penalty stabilizes inversion in collinear or high-dimensional designs.
For fixed positive ridge regression penalty, choose a unit eigenvector of with eigenvalue , and signal . The directional ridge risk is , whereas ordinary least squares has risk . Letting grow makes the ridge squared bias arbitrarily large.
For a full-rank centred design, unscaled ridge regression and zero-mean errors with covariance , put and . The ordinary-least-squares risk matrix minus the ridge risk matrix is . It is positive definite whenever , including every positive when . Thus one signal-dependent small penalty improves every nonzero-direction mean squared error.
In ridge regression, penalize slopes but ordinarily leave the regression intercept free. Centering gives and . An exactly centered predictor matrix has for every penalty. A table with a penalty-dependent intercept therefore cannot arise from exactly centered columns under this convention.
For a fixed centered design matrix , independent errors of variance , and objective , put and . The ridge regression estimator has
Thus its standard error alone does not justify centering a confidence interval for at the biased estimator. A penalty chosen from the responses also changes its sampling distribution.
For , the ridge regression objective has gradient . The matrix is positive definite, so the unique minimizer is .
In an eigenbasis of , ridge regression divides the corresponding component of by . If , its eigenvector satisfies , and hence exactly. Only positive eigenvalues contribute to the limit, giving the Moore-Penrose inverse expression for the minimum-norm least-squares solution. No full-rank or sample-size assumption is needed.
For any real design matrix and , . Multiplication by identifies the primal ridge regression fitted values with , , the kernel-ridge hat matrix for the linear kernel. No rank assumption is needed.
For , ridge regression multiplies the fitted response along the th normalized sample principal component by the shrinkage factor . Directions with variance much larger than are nearly retained, while directions with variance much smaller than are nearly removed.
Fitted values are the responses predicted at the training covariates by a fitted regression model.
A linear smoother has fitted-value vector , where the smoother matrix depends on the covariates and tuning parameters but not on the response vector.
For a linear smoother , its effective degrees of freedom are . This measures sensitivity of fitted values to responses even when is not an orthogonal projection.
The design matrix has one row for each observation and one column for each regression coefficient, so the linear predictor is .
If each level of one categorical variable belongs to exactly one level of another, indicators for the coarser levels are sums of indicators for the finer levels. Including unrestricted fixed effects for both therefore gives a rank-deficient ordinary least squares: the separate effects lack identifiability without additional constraints.
A regression coefficient is a component of measuring the change in the linear predictor associated with its design-matrix column.
If but the predictor is observed as , with independent centred errors, the population regression slope is
Measurement error in the predictor therefore shrinks the slope toward zero, while independent response noise changes its uncertainty but not its population value.
In R, lm(y ~ 1, data=d) fits an intercept-only linear model, lm(y ~ x1 + x2, data=d) adds quantitative predictors, and a factor predictor is expanded into indicator columns.
Treatment coding sets one reference level in a regression factor to zero and represents each other level by an indicator column. With two interacting factors, a main-effect coefficient compares levels at the other factor's reference level; an interaction coefficient is a difference of these contrasts. A joint nested-model F-test can be significant even when some individual coefficient tests are not.
With an intercept present, a categorical predictor having represented levels adds linearly independent indicator columns and therefore model degrees of freedom.
The hat matrix
is the orthogonal projection onto the column space of a full-rank design matrix, and the fitted response is .
For a full-rank ordinary least squares design matrix, the hat matrix and residual projection satisfy . Hence fitted values and regression residuals are perpendicular as observed vectors. Under isotropic errors their cross-covariance matrix is zero, and under a normal linear model the two vectors are independent.
With , a simultaneous confidence region for is
If is the least-squares estimate after deleting observation , Cook's distance is
It measures the deleted estimate in the same quadratic metric as the coefficient confidence ellipsoid.
Multicollinearity means that predictor columns are strongly linearly related. It inflates coefficient variances and can make individual effects imprecise even when a joint test strongly rejects that all corresponding coefficients vanish.
For a slope in a regression with an intercept, the variance inflation factor is , where comes from regressing its predictor on all the others. With one other predictor it is , quantifying the increase in conditional estimation variance.
For two centered predictors with squared norms and correlation coefficient , the ordinary least squares estimate of either partial slope has variance . Compared with the same predictor alone and the same error variance, the inflation factor is . The eigenvalues of the slope Gram matrix are and .
Ordinary least squares minimizes the unweighted sum of squared residuals between observed and fitted responses.
For a correctly specified full-rank fixed-design Gaussian linear regression with , dividing the residual sum of squares by the residual degrees of freedom gives an unbiased estimator of the noise variance. The projection removes the whole deterministic mean, so the numerator's expectation is . A misspecified subset model need not have this property.
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.
Partial regression first projects a response and a selected predictor orthogonally off the remaining design columns. Regressing the residualized response on the residualized predictor yields its coefficient in the full ordinary least squares fit.
If a design matrix has deficient rank, every ordinary least squares minimizer has the form with , where is the Moore-Penrose inverse. Hence the fitted values are unique but the coefficients are not: the minimizers form an affine subspace of dimension .
In the model without an intercept, with , the ordinary least-squares estimator is
For independent errors of common variance , it is unbiased and has variance .
In simple linear regression with a nonconstant predictor,
For a nonconstant predictor, put
The minimized residual sum of squares is
Each centered sum can be recovered in constant time from the five raw sums , , , , and .
Among linear unbiased estimators in a homoscedastic linear model, least squares has minimum variance.
Weighted least squares minimizes ; inverse-variance weights give the efficient estimator under known heteroscedasticity.
Generalized least squares minimizes for a known covariance shape .
Whitening multiplies a model by a square root of its precision matrix so that the transformed errors have identity covariance.
Least-squares differentiation gives , or its precision-weighted analogue.
Under finite moments and a nonsingular limiting design moment, laws of large numbers make least-squares estimators converge to the true coefficient.
A one-way normal model assigns each factor level its own mean while assuming independent Gaussian errors with a common variance.
A cell-means model uses one coefficient per factor level and no intercept, so each coefficient directly equals a group mean.
A linear contrast is a coefficient-weighted sum of cell means whose coefficients total zero, used to test interpretable differences among groups.
A treatment contrast is a linear contrast of cell means comparing treatment responses, with coefficients adding to zero. Pairwise differences and marginal factorial differences are examples. Its variance depends on the true allocation units and their covariance matrix.
At equally replicated quantitative treatment levels, evaluations of orthogonal polynomials generate pairwise orthogonal treatment contrasts, using the replication-weighted inner product. Five equally spaced levels give four contrast directions representing degrees one through four, besides the constant direction. This decomposes treatment variation without assuming the response has low polynomial degree.
For a vector of estimated treatment means , the variance of a treatment contrast with coefficient vector is . Averaging subsamples from a common experimental unit does not make their shared variance component disappear.
An interaction contrast compares a treatment difference across levels of another factor. A nonzero difference of differences shows that an additive representation of those cell means is inadequate. Its standard error must use the error stratum in which that interaction term is randomized.
For genotypes , full dominance of allele imposes .
With allele counts , no dominance makes the genotype mean affine in count and imposes .

Ancestors (6)

  1. Statistical modelling
  2. Statistical model
  3. Probability and statistics
  4. Area of mathematics
  5. Mathematics
  6. Home

Synonyms (2)

Discussion (0)

New discussion

There are no discussions about this article yet.

Articles by others on the same topic (0)

There are currently no matching articles.