Complete-case regression under conditional missing at random Created 2026-10-07 Updated 2026-10-25
Let indicate observation of a regression response , with fully observed predictors . If and on the target support, the observed conditional density equals the full conditional density. Thus a correctly specified regression model can be fitted to observed responses under conditional missing at random. This does not justify the unadjusted complete-case mean when observation rates and outcome means both vary with , nor does it imply missing completely at random.
Fitted values Created 2026-09-24 Updated 2026-10-14
Fitted values are the predictions at the predictor values used to fit a regression model. In linear regression with an explicit regression intercept,
Here is the slope design matrix, and is the regression residual vector. The fitted values estimate the regression function at the observed predictors; they need not equal the observed responses, which may also contain random errors. Prediction at a new predictor vector uses with the same centering and scaling used in fitting. A prediction interval addresses uncertainty in a new response rather than just displaying this point prediction.
For the five constructed observations in linear regression, ordinary least squares gives fitted values . The ridge regression fit at instead gives . Both fitted vectors have sample mean because the regression intercept is unpenalized; their regression residuals differ and their residual sums of squares are and , respectively.
For ordinary least squares, the fitted values are the orthogonal projection of onto the column space of the complete design matrix, including its regression intercept column. They remain unique even in rank-deficient ordinary least squares, although the regression coefficients can be nonunique. The regression residuals are then orthogonal to every column.[ref] With centered slopes, ridge regression instead satisfies , so the regression residuals need not be orthogonal to the slope columns. Their sum is still zero because the regression intercept remains free.
For fixed predictors and scales and a fixed positive penalty, ridge regression gives a linear smoother,
For with at least one nonzero slope direction, this matrix is not an orthogonal projection matrix: applying it twice shrinks that direction again. Its effective degrees of freedom are , where are the positive singular values of ; the extra counts the free regression intercept. If the penalty is selected using , the resulting fitting rule need not be a linear smoother, since its chosen also depends on .
These describe constancy or variation of conditional error variance across observations. A homoscedastic regression model has ; a heteroscedastic model allows this variance to depend on the observation or its covariates.
Use separate randomization lists for women with and without a self-reported history of depression. Within each stratum, the central service could assign intervention and control in a ratio using randomly permuted blocks, preferably with concealed and varying block sizes. This is stratified randomization; the internet service can retain allocation concealment because the recruiting staff do not know the next assignment.
History is plausibly prognostic for the outcome. Keeping its distribution similar between arms reduces the risk of a chance imbalance in that important baseline factor and can improve precision. It also allows a comparison within each history stratum. Stratification does not guarantee balance of every other covariate, and staff must not be allowed to choose assignments. The regression model can retain history as a baseline covariate, respecting the design.
Regression analysis Created 2026-10-14 Updated 2026-10-20
Regression analysis studies how a response variable depends on explanatory variables through a regression model. It estimates that dependence and assesses uncertainty in fitted regression coefficients, predictions and model comparisons. Linear regression is one important case.