Ridge adds a quadratic penalty to least squares. It produces a unique coefficient vector even with redundant columns when all coefficients are penalized and λ>0. Its main benefit is a controlled tradeoff between bias and variance.
Thus the penalized system is positive definite regardless of the rank of X, including when p>n. In computation, solve the system rather than form its inverse.
For t>0, convexity and a strictly feasible point give the usual Lagrange-multiplier characterization. When the constraint is active, an appropriate multiplier yields a penalized solution. If the constraint is loose enough to contain an OLS minimizer, the multiplier may be zero. The relation between t and λ depends on the data; they are not the same numerical parameter.
Geometrically, squared-error contours are ellipsoids and the constraint is a ball. The constrained optimum occurs where the smallest attainable contour meets the ball, unless an unconstrained minimizer already lies inside.
Hλ is symmetric but generally not idempotent. Ridge shrinks a vector already in the fitted subspace, so it is a smoother rather than an orthogonal projection. Its residuals satisfy X⊤eλ=λβλ, not the OLS orthogonality condition.
With Gaussian errors, the estimator is multivariate normal with this mean and covariance, possibly degenerate in null-space directions. These formulas assume fixedλ; selecting it using Y makes the overall procedure adaptive.
Derive the Bias & Covariance
Write Mλ=BλX⊤, so βλ=MλY. Linearity gives its expectation and covariance. For the bias, use
The variance is no larger than OLS’s σ2/sj2, but the bias is generally nonzero. The best tradeoff depends on unknown signal strength, so prediction-based tuning is needed.
For example, with sj=0.1, σ2=1, θj=1, and λ=1, OLS MSE is 100. Ridge MSE is 1/1.01≈0.9901. This is an illustrative weak-signal direction, not a guarantee of improvement for every true coefficient or penalty.
As λ→∞, slopes approach zero and predictions approach the training mean yˉ, not zero.
Ridge depends on predictor units. Rescaling a column changes the coefficient norm required to represent the same prediction. Standardize predictors when equal treatment across scales is intended, and estimate centering/scaling using only the training portion of each validation split. Remove or otherwise handle zero-variance columns before standardization.
If the objective is n−1RSS+α∥b∥2, multiplying by n shows that the sum-scale penalty here is λ=nα.
Redundant Predictors: Stable Does Not Mean Invariant¶
Ridge remains solvable if a predictor is duplicated, but duplicating it generally changes the fit at fixed λ.