Prospects for Applied Mathematics and Data Analysis

Exact Bias–Variance Decomposition and Degrees of Freedom in Ridge Regression: Theory, Verification, and a Disease-Progression Application

Dwi Retnowardani
Volume 6, Issue 1, pp. 29–35 (2026)
DOI: https://doi.org/10.54216/PAMDA.060105
Online: https://americaspg.com/journal/34/article/4483

Abstract

Ridge regression estimates β in the linear model y = Xβ +ε by βˆ (λ) = argminβ ∥y−Xβ∥2+λ∥β∥2, trading bias for variance as λ increases. This paper collects six results about βˆ (λ) into a single self-contained development, each proved and then checked numerically. The estimator is written in closed form through the singular value decomposition of X; its effective degrees of freedom, df(λ)=Σj d2j /(d2j +λ), are shown to be strictly decreasing and convex in λ; its exact bias and variance are derived in closed form; a strictly positive λ is shown always to exist that reduces mean squared estimation error below that of ordinary least squares whenever the noise variance is positive; the estimator is shown to coincide with the posterior mean under a Gaussian prior with precision proportional to λ; and the leave-one-out cross-validation error is shown to admit a closed-form shortcut that generalized cross-validation approximates by averaging its leverage terms. Every derived quantity is verified against data: the leave-one-out shortcut matches brute-force refitting exactly, and a calibrated Monte Carlo simulation confirms the closed-form bias and variance to within simulation error at every tested λ. Applied to a standard diabetes disease-progression dataset (n = 442, ten predictors), the theoretical construction correctly locates a strictly risk-reducing regularization region, and repeated cross-validation shows ridge, lasso, and elastic net all lying within one standard error of ordinary least squares in out-of-sample prediction error—consistent with the closed-form theory, which attributes the available gain to reduced parameter-estimation risk on a well-conditioned design rather than to prediction-error reduction.

Keywords: Ridge regression; Bias–variance decomposition; Degrees of freedom; Generalized cross-validation; Bayesian regularization; Singular value decomposition

1. INTRODUCTION

complexity should be chosen from data – is still an active area of research, particularly as the classical fixed-dimension, large-sample regime gives way to high-dimensional and even proportional asymptotics in modern applications [1, 2, 3]. Recent work has substantially sharpened this picture: the risk of ridge regression and its interpolating (zero-penalty) limit is now understood precisely in high-dimensional randomdesign settings [2, 4, 5], the choice of regularization by crossvalidation has been shown to be asymptotically consistent

Ridge regression regularizes ordinary least squares by adding an ℓ2 penalty on the coefficient vector, trading an increase in bias for a reduction in variance. The idea is old, but the precise mathematical structure of that trade-off – how bias and variance depend on the regularization parameter, when a strictly positive parameter is guaranteed to help, what the resulting estimator’s effective complexity is, and how that under increasingly general conditions [6, 7], with related extensions to sketched ridge ensembles [8], and the classical intuition that more regularization is always safer has been shown to fail in specific high-dimensional regimes [9].

This paper takes a different, complementary approach: rather than pursuing new asymptotic regimes, it assembles the exact, finite-sample mathematical structure of ridge regression – closed-form estimator, degrees of freedom, bias, variance, risk-improvement guarantee, Bayesian equivalence, and cross-validation shortcut – into one coherent development with complete proofs, and then verifies every piece of that structure numerically against a real design matrix, rather than only under simulation or asymptotic approximation. The same finite-sample structure underlies a growing body of work on ridge-based ensembles and distributed computation: bagged and subsampled ridge predictors have been shown to admit equivalences with a single, differently regularized ridge fit [10, 11], risk-monotonization corrections have been proposed for ensembles whose naive risk curves are nonmonotonic in ensemble size [12], and one-shot distributed ridge regression across machines has been analyzed by averaging exactly the kind of per-machine bias and variance terms derived in Section 5 [13]. Adlam and Pennington [14] showed that even the double-descent risk curves of heavily overparameterized models require exactly this kind of fine-grained bias-variance decomposition, rather than a single aggregate risk number, to be understood correctly – the same principle that motivates keeping bias and variance separate, rather than only reporting their sum, throughout this paper. The verification is deliberately exact where the mathematics permits it (the leave-one-out shortcut is checked against brute-force refitting to floating-point precision) and simulation-based where finite-sample exactness is unavailable in closed form (the bias-variance decomposition is checked by a calibrated Monte Carlo experiment using the real design matrix). The application throughout is a widely used diabetes diseaseprogression dataset [15], on which the paper also positions ridge regression against ordinary least squares, the lasso, and the elastic net using repeated cross-validation, connecting the closed-form theory to applied comparisons of the kind reported in the applied-statistics literature [16, 17].

Section 2 fixes notation and describes the data. Sections 3–8 develop the six results in turn, each as a theorem or lemma with proof. Section 9 reports the numerical verification and the empirical application. Section 10 discusses the findings, and Section 11 concludes.

2. DATA AND NOTATION

The application throughout uses the diabetes dataset of [15]: for n = 442 patients, ten baseline variables (age, sex, body mass index, average blood pressure, and six blood serum measurements) are recorded as predictors, and the response is a quantitative measure of disease progression one year after baseline. Each predictor column is mean-centered and scaled so that its sum of squares equals one, the standard preprocessing used since the variables’ original introduction; the response is mean-centered before all fitting reported below, and predictions are reported on the response’s original scale where relevant. Write X ∈Rn×p (n = 442, p = 10) for the resulting design matrix and y ∈Rn for the centered response, and assume the linear model

y = Xβ +ε, E[ε] = 0, Cov(ε) = σ2In, (1)

with X treated as fixed (the classical, or “Fixed-X”, assumption; see [18] for a detailed treatment of the alternative, “Random-X”, assumption and its consequences for biasvariance decompositions of exactly this kind). The ridge estimator is

β∈Rp ∥y−Xβ∥2 +λ∥β∥2, λ ≥0, (2)

ˆβ(λ) = arg min which reduces to the ordinary least-squares estimator at λ = 0 (assuming X has full column rank, which holds here since n ≫p).

3. THE RIDGE ESTIMATOR IN CLOSED FORM

Theorem 1 (Singular value representation). Let X = UDV ⊤ be the (thin) singular value decomposition of X, with U ∈ Rn×p and V ∈Rp×p orthonormal and D = diag(d1,...,dp), d1 ≥··· ≥dp ≥0. Then, for every λ ≥0, d j d2

ˆβ(λ) = V diag

U⊤y,

ˆy(λ) = X ˆβ(λ) = U diag

U⊤y.

Proof. Minimizing Equation 2 gives the ridge normal equations (X⊤X + λI) ˆβ(λ) = X⊤y. Substituting X = UDV ⊤, X⊤X = VD2V ⊤, so (X⊤X + λI) = V(D2 + λI)V ⊤, which is invertible for every λ > 0 (and for λ = 0 under the fullrank assumption). Hence ˆβ(λ) = V(D2 + λI)−1V ⊤X⊤y = V(D2 + λI)−1DU⊤y, which is exactly the first expression in Equation 3 written entrywise; substituting into X ˆβ(λ) = UDV ⊤ˆβ(λ) gives the second.

Equation 3 shows that ridge regression shrinks each coordinate of y in the orthonormal basis U by a factor d2 j /(d2 j +λ) ∈ (0,1], with directions of small singular value dj shrunk more aggressively than directions of large dj – the mechanism underlying every subsequent result in this paper.

4. EFFECTIVE DEGREES OF FREEDOM

Definition 1. The effective degrees of freedom of the ridge fit at penalty λ are df(λ) = tr

X(X⊤X +λI)−1X⊤ � .

Theorem 2. df(λ) = ∑p j +λ , with df(0) = p (assuming dj > 0 for all j) and df(λ) →0 as λ →∞.

Proof. From Theorem 1, the hat matrix is S(λ) = X(X⊤X + λI)−1X⊤= U diag(d2 j +λ))U⊤, whose trace, using the cyclic property of the trace and U⊤U = Ip, is tr(S(λ)) = ∑j d2 j /(d2 j /(d2 j +λ). The boundary values follow by direct substitution.

Lemma 1 (Monotonicity and convexity). For dj > 0, each term hj(λ) = d2 j /(d2 j +λ) is strictly decreasing and strictly convex on λ ≥0; consequently df(λ) is strictly decreasing and convex on λ ≥0.

j +λ)2 < 0 and h′′ j(λ) = 2d2

Proof. Direct differentiation gives h′ j(λ) = −d2 j /(d2 j +λ)3 > 0 for all λ ≥0 and dj > 0. Sums of strictly decreasing (respectively, strictly convex) functions are strictly decreasing (respectively, strictly convex), giving the claim for df(λ) = ∑j hj(λ).

j /(d2

Lemma 1 guarantees that df(λ) traces out a smooth, strictly decreasing, convex curve from p down to 0 as λ runs from 0 to ∞, so that every value in (0, p) is attained by exactly one λ, making df a valid, monotonically invertible reparameterization of the penalty – the basis on which the empirical results in Section 9 report regularization strength.

5. EXACT BIAS–VARIANCE DECOMPOSITION

Theorem 3. Under model 1, the ridge estimator has, for every λ ≥0,

Bias( ˆβ(λ)) = E[ ˆβ(λ)]−β = −λ V(D2 +λI)−1V ⊤β, (4)
! d2 j (d2 V ⊤, (5)

Var( ˆβ(λ)) = σ2V diag j +λ)2 and writing γ = V ⊤β, the total mean squared estimation error is

MSE(λ) = ∥Bias( ˆβ(λ))∥2 +tr

Var( ˆβ(λ))

� λ 2γ2 j (d2 = j +λ)2 .

j +σ2d2 p ∑ j=1

Proof. From Theorem 1, ˆβ(λ) = V(D2 +λI)−1DU⊤y, and under model 1, U⊤y = U⊤Xβ +U⊤ε = DV ⊤β +U⊤ε. Substituting,

ˆβ(λ) = V(D2 +λI)−1D2V ⊤β +V(D2 +λI)−1DU⊤ε.

Taking expectations, the second term vanishes (E[ε] = 0), and (D2 +λI)−1D2 = I −λ(D2 +λI)−1 entrywise, so E[ ˆβ(λ)] = β −λV(D2 + λI)−1V ⊤β, giving Equation 4. For the variance, since Cov(ε) = σ2In and U⊤U = Ip,

Var( ˆβ(λ)) = V(D2 +λI)−1DCov(U⊤ε)D(D2 +λI)−1V ⊤

= σ2V(D2 +λI)−1D2(D2 +λI)−1V ⊤, which is Equation 5 written entrywise. Equation 6 follows because V is orthonormal, so ∥Bias∥2 = λ 2 ∑j γ2 j /(d2 j +λ)2 and tr(Var) = σ2 ∑j d2 j /(d2 j +λ)2, whose sum is Equation 6 term by term.

Equation 6 makes explicit the trade-off at the heart of ridge regression: the numerator of each term increases in λ through λ 2γ2 j (growing bias) while the denominator increases faster through (d2 j +λ)2 (shrinking variance); which effect dominates for small λ is resolved in the next section.

6. EXISTENCE OF A RISK-IMPROVING RIDGE PARAMETER

Theorem 4. If σ2 > 0 and dj > 0 for every j = 1,..., p, then MSE(λ) in Equation 6 is strictly decreasing at λ = 0:

p ∑ j=1 d MSE(λ)

1 d4 = −2σ2 < 0. (7) dλ λ=0 j

Consequently there exists λ ∗> 0 such that MSE(λ) < MSE(0) for all λ ∈(0,λ ∗): a strictly positive ridge penalty always achieves strictly lower mean squared estimation error than ordinary least squares.

Proof. Write the j-th summand of Equation 6 as f j(λ) = (λ 2γ2 j +σ2d2 j )/(d2 j +λ)2. By the quotient rule, j +λ)2 −2(d2 j +σ2d2

j +λ)(λ 2γ2 (d2 j ) (d2

2λγ2 j (d2 j(λ) = j +λ)4 j +σ2d2

j +λ)−2(λ 2γ2 = j +λ)3 . (d2

2λγ2 j (d2

At λ = 0 this simplifies to f ′

j /d6 j = −2σ2/d4

j(0) = −2σ2d2 j , which is strictly negative whenever σ2 > 0 and dj > 0, regardless of γj (that is, regardless of the unknown true coefficients). Summing over j gives Equation 7, and since MSE is differentiable with strictly negative derivative at λ = 0, it is strictly decreasing on some interval (0,λ ∗).

Remark 1. Theorem 4 recovers, by direct differentiation rather than an optimization or geometric argument, the classical existence result associated with the original introduction of ridge regression: no information about the unknown β is needed to guarantee that some positive penalty helps: the guarantee follows purely from σ2 > 0. What Equation 7 adds beyond existence is a quantitative rate: the initial improvement is fastest exactly along the directions with the smallest singular values dj, since 1/d4 j is largest there, matching the shrinkage mechanism identified after Theorem 1.

7. BAYESIAN INTERPRETATION

Theorem 5. Suppose β ∼N(0,τ2Ip) independently of ε ∼ N(0,σ2In) in model 1. Then the posterior distribution of β given y is Gaussian with mean

E[β | y] = (X⊤X + σ2

τ2 I)−1X⊤y = ˆβ(λ) with λ = σ2/τ2,

(8) so the ridge estimator at penalty λ is exactly the Bayes posterior mean under a Gaussian prior of precision λ/σ2.

Proof. The log-posterior is, up to an additive constant not depending on β,

2σ2 ∥y−Xβ∥2 −1 2τ2 ∥β∥2 +const,

log p(β | y) = −1 by Bayes’ rule and the two Gaussian densities. This is a quadratic form in β; completing the square (equivalently, differentiating and setting the gradient to zero) gives the maximizer, which for a Gaussian posterior coincides with its mean,

 1  β = 1 σ2 X⊤y τ2 I −1 X⊤X + σ2  X⊤y, ⇐⇒ β = τ2 I

σ2 X⊤X + 1 which is Equation 8, identical to Equation 2’s minimizer with λ = σ2/τ2.

Theorem 5 gives every subsequent choice of λ a dual reading: a large ridge penalty corresponds to strong prior confidence that β is close to zero (small τ2 relative to σ2), and the degrees-of-freedom curve of Theorem 2 equivalently measures how much the data are allowed to override that prior.

8. CROSS-VALIDATION AND ITS SHORTCUT

Lemma 2 (Leave-one-out shortcut). Let S(λ) = X(X⊤X + λI)−1X⊤be the ridge hat matrix of Theorem 2, with diagonal entries Sii(λ), and let ˆy(λ) = S(λ)y. Denote by ˆy(−i)(λ) the ridge fit at xi using all observations except the i-th. Then yi −ˆy(−i)(λ) = yi −ˆyi(λ)

1−Sii(λ),  yi −ˆyi(λ) (9) 2 . n

n ∑ i=1

LOOCV(λ) = 1

1−Sii(λ) without refitting the model n times.

Proof. Let ˆβ(−i)(λ) minimize Equation 2 over the data with the i-th row removed. A standard leave-one-out identity for penalized least-squares fits (obtained by applying the Sherman–Morrison rank-one update formula to (X⊤X −xix⊤ i + λI)−1 in terms of (X⊤X + λI)−1) gives x⊤ i ˆβ(−i)(λ) = ˆyi(λ) −Sii(λ)(yi −ˆyi(λ))/(1 −Sii(λ)); rearranging, yi −x⊤ i ˆβ(−i)(λ) = (yi −ˆyi(λ))/(1−Sii(λ)), which is Equation 9. Squaring and averaging over i gives the stated leave-one-out cross-validation error.

Definition 2 (Generalized cross-validation). Generalized cross-validation replaces the individual leverages Sii(λ) in Equation 9 by their average df(λ)/n (Theorem 2), giving

GCV(λ) = n−1 ∑n i=1(yi −ˆyi(λ))2

1−df(λ)/n 2 . (10)

The averaging in Definition 2 is what makes GCV(λ) computable from a single fit rather than n refits, at the cost of replacing an exact per-observation correction with an average one. Recent work has shown this approximation to be asymptotically consistent for ridge regression under increasingly general random-design conditions [6, 7], and extended GCV to sketched ridge ensembles for consistent risk estimation and joint tuning of regularization and sketching parameters [8]. Section 9.1 checks Lemma 2’s shortcut directly against brute-force refitting, and Section 9.2 reports the λ selected by minimizing GCV(λ) against the λ selected by explicit 10-fold cross-validation.

9. NUMERICAL VERIFICATION AND EMPIRICAL APPLICATION

9.1 Verification of the leave-one-out shortcut

Table 1 compares the shortcut formula of Lemma 2 against brute-force leave-one-out refitting (a fresh ridge fit on n−1 observations, repeated for a random subset of 60 indices, at four representative values of λ). The two agree to floatingpoint precision at every value tested, confirming the identity exactly rather than approximately.

Table 1. Leave-one-out cross-validation error: brute-force refitting versus the closed-form shortcut of Lemma 2 (60 randomly selected observations per λ).
Table 1. Leave-one-out cross-validation error: brute-force refitting versus the closed-form shortcut of Lemma 2 (60 randomly selected observations per λ).

10.0 3903.099839 3903.099839 0 100.0 6630.693434 6630.693434 0

9.2 Degrees of freedom and generalized cross-validation

The design matrix has singular values ranging from d1 = 2.006 to d10 = 0.093 (condition number d1/d10 ≈21.7), so Theorem 2 predicts df(λ) decreasing smoothly from 10 toward 0. Table 2 reports df(λ) and GCV(λ) on a representative grid; consistent with the convexity established in Lemma 1, df(λ) decreases smoothly throughout, and GCV(λ) traces a shallow U-shape with an interior minimum near λ ≈0.0071 (df ≈9.39), rising both toward λ = 0 and toward large λ.

Table 2. Effective degrees of freedom and generalized crossvalidation score across the penalty grid.
Table 2. Effective degrees of freedom and generalized crossvalidation score across the penalty grid.

0.000 10.000 2993.62 0.001 9.906 2992.46 0.002 9.761 2991.19 0.007 9.390 2990.10 0.016 9.006 2990.39 0.047 8.342 2990.37 0.374 5.774 3064.99 8.504 0.952 4710.77 547.890 0.018 5899.10 90110.183 0.000 5929.70

9.3 Verification of the bias–variance decomposition

To verify Theorem 3 at finite sample size without knowledge of the true β, a calibrated semi-synthetic experiment was run: the ordinary least-squares fit on the real data was taken as a fixed “true” β, the residual variance from that fit as σ2, and 2,000 independent replicates of y = Xβ +ε, ε ∼N(0,σ2I), were simulated using the real design matrix X. Table 3 compares the resulting Monte Carlo bias2 and variance of ˆβ(λ) against the closed forms of Equations 4–5. Agreement is close at every λ, including the near-exact match of Monte Carlo bias2 to zero at λ = 0 (the small nonzero value reflects Monte Carlo sampling error in estimating a theoretical zero, not model error), and the relative discrepancy between simulated and theoretical quantities shrinks as λ grows and the variance component – the noisier of the two Monte Carlo quantities – shrinks correspondingly.

Table 3. Monte Carlo (2,000 replicates) versus theoretical bias2 and variance of ˆβ(λ), calibrated to the real design matrix.
Table 3. Monte Carlo (2,000 replicates) versus theoretical bias2 and variance of ˆβ(λ), calibrated to the real design matrix.

0 89.9 0.0 405,701 408,788 0.1 990,075 987,312 31,695 31,560 1 1,288,320 1,288,029 5,443 5,517 5 1,592,680 1,592,497 638 639 10 1,704,756 1,704,873 205 205 50 1,848,376 1,848,353 11 11 100 1,872,393 1,872,400 3 3 1000 1,895,742 1,895,743 0.03 0.03

The same calibrated construction locates the risk-minimizing penalty guaranteed to exist by Theorem 4: on a fine grid, theoretical MSE(λ) is minimized at λ ≈0.0026, a 19.7% reduction in mean squared estimation error relative to λ = 0 (ordinary least squares), and the derivative at λ = 0 computed from Equation 7 is −8.09×107, confirming the strictly negative initial slope Theorem 4 guarantees whenever σ2 > 0.

9.4 Out-of-sample comparison against the lasso and elastic net

Table 4 reports mean squared prediction error, averaged over 30 repetitions of 10-fold cross-validation (three repeats of a 10-fold split), for ordinary least squares, ridge regression tuned by GCV (Definition 2), ridge tuned by an inner 10-fold cross-validation, the lasso, and the elastic net (the latter two tuned by inner cross-validation over their respective penalty and mixing parameters).

Table 4. Out-of-sample prediction error, 3×10-fold repeated crossvalidation (30 folds total).
Table 4. Out-of-sample prediction error, 3×10-fold repeated crossvalidation (30 folds total).

All five models lie within one standard error of one another; the mean cross-validated ridge penalty (λ ≈0.03–0.06 depending on tuning method) is small, and the lasso retains on average 8.1 of the 10 predictors, indicating mild rather than severe shrinkage is selected by every data-driven criterion. Table 5 reports the resulting coefficient estimates: ridge shrinks every coefficient toward zero relative to ordinary least squares, most visibly the two most volatile serum-measurement coefficients (s1 and s2, which are highly correlated with each other and with s4), while the lasso and elastic net additionally shrink several coefficients close to (though, at the crossvalidated penalty, not exactly to) zero.

Table 5. Coefficient estimates: ordinary least squares versus ridge (GCV-tuned), lasso (CV-tuned), and elastic net (CV-tuned), averaged across cross-validation folds.
Table 5. Coefficient estimates: ordinary least squares versus ridge (GCV-tuned), lasso (CV-tuned), and elastic net (CV-tuned), averaged across cross-validation folds.

age −10.01 −4.41 −1.85 −1.70 sex −239.82 −226.78 −207.95 −207.97 bmi 519.85 510.98 521.61 517.95 bp 324.38 315.42 304.33 304.40 s1 −792.18 −311.03 −249.61 −240.92 s2 476.74 97.00 85.12 75.08 s3 101.04 −100.17 −138.97 −139.77 s4 177.06 133.71 69.46 76.56 s5 751.27 554.17 557.17 548.31 s6 67.63 76.08 56.89 60.11

10. DISCUSSION

The numerical verification in Section 9 supports two conclusions that are easy to conflate but are logically distinct, a distinction the closed-form theory keeps separate where a purely empirical comparison would not. First, Theorem 4 guarantees, and the calibrated simulation confirms, a strictly positive and quantifiable reduction in parameter-estimation risk, E∥ˆβ(λ)−β∥2, from a suitably small ridge penalty – on this design, close to 20% at its calibrated optimum. Second, Table 4 shows that this does not translate into a detectable reduction in prediction risk on held-out data for this particular dataset: every regularized method is statistically indistinguishable from ordinary least squares in cross-validated mean squared error. Both findings are correct and are not in tension; they answer different questions. The design matrix here has a modest condition number (≈21.7) and n ≫p, so ordinary least squares is already a low-variance estimator of the quantity that matters for prediction, Xβ, even though it remains a comparatively higher-variance estimator of β itself, and Equation 6 is stated in terms of the latter. This distinction echoes the broader point made in the random-design bias-variance literature [18] that fixed-X estimation risk and genuinely out-of-sample prediction risk need not move together, and it is consistent with the empirical comparisons of ridge, lasso, and elastic net reported elsewhere on similarly well-conditioned, low-dimensional data [16, 17], where gains over ordinary least squares are typically small unless collinearity is more severe or p is closer to n.

The generalized cross-validation curve in Table 2 is informative in the same direction: it is shallow, with GCV values within 0.2% of one another across nearly two orders of magnitude of λ (from df ≈10 down to df ≈8.3), meaning the data provide only weak evidence for any particular amount of regularization in this range – a finding a single point estimate of the GCV-optimal λ would obscure but the full table makes visible. This shallowness is itself consistent with theoretical work showing that GCV’s consistency, and the sharpness with which it identifies the risk-optimal penalty, depend on the aspect ratio p/n and the spectrum of X [6, 7]. Related work extends consistent GCV risk estimation to sketched ridge ensembles and uses it to tune both regularization and sketching parameters [8]. With p/n ≈0.023 here, the present setting is far from the proportional-asymptotic regime in which the most delicate high-dimensional behavior arises.

The Bayesian equivalence of Theorem 5 offers a complementary reading of the same shallow curve: since λ = σ2/τ2, a GCV curve that is flat across a wide range of λ is a curve that is flat across a correspondingly wide range of prior precisions, meaning the data are not particularly informative about how strongly to believe β is close to zero – a natural characterization of a design that is already well conditioned. More elaborate priors, including the shrinkage priors compared under a similar objective across baseline choices in [19], would be expected to show the same shallowness on this design for the same reason.

The ten predictors used here are already low-dimensional and only mildly collinear; in genuinely high-dimensional settings, where p is comparable to or exceeds n, the same closed-form machinery extends less directly, and dimensionreduction alternatives such as principal component regression – whose high-dimensional prediction error has been analyzed through high-probability risk bounds [20] – become an increasingly relevant comparison, since they shrink along the same singular-value directions identified after Theorem 1 but discard, rather than merely shrink, the directions associated with the smallest singular values.

11. CONCLUSION

This paper assembled six exact, finite-sample results about ridge regression – a closed-form singular value representation, monotone convex degrees of freedom, an exact biasvariance decomposition, a guaranteed strictly risk-improving penalty, a Gaussian posterior-mean equivalence, and a closedform leave-one-out shortcut underlying generalized crossvalidation – into a single proved development, and verified every one of them numerically: the leave-one-out shortcut exactly, and the bias-variance decomposition through a calibrated simulation on a real design matrix. Applied to a standard disease-progression dataset, the theory correctly predicted the existence and approximate location of a riskreducing regularization region, while the empirical crossvalidated comparison against the lasso and elastic net showed that this estimation-risk gain does not, on this particular wellconditioned design, translate into a detectable prediction-risk gain – a distinction the closed-form decomposition makes precise rather than leaving to be inferred from accuracy tables alone. The same development applies unchanged to any fixed design matrix, and the numerical verification strategy used here – exact shortcut-formula checks where available, calibrated simulation using the real design otherwise – offers a template for validating closed-form regularization theory against specific datasets rather than only against simulated or asymptotic settings.

DATA AND CODE AVAILABILITY

The diabetes dataset is the standard public dataset of [15]. The complete Python code implementing every theorem’s numerical verification, the calibrated simulation, and the crossvalidated model comparison, together with all output tables, are provided as supplementary material accompanying this submission.

References

[1] P. L. Bartlett, P. M. Long, G. Lugosi, and A. Tsigler, “Benign overfitting in linear regression,” Proceedings of the National Academy of Sciences, vol. 117, no. 48, pp. 30 063–30 070, 2020.

[2] T. Hastie, A. Montanari, S. Rosset, and R. J. Tibshirani, “Surprises in high-dimensional ridgeless least squares interpolation,” The Annals of Statistics, vol. 50, no. 2, pp. 949–986, 2022.

[3] T. Liang and A. Rakhlin, “Just interpolate: Kernel “ridgeless” regression can generalize,” The Annals of Statistics, vol. 48, no. 3, pp. 1329–1347, 2020.

[4] D. Richards, J. Mourtada, and L. Rosasco, “Asymptotics of ridge(less) regression under general source condition,” in Proceedings of the 24th International Conference on Artificial Intelligence and Statistics (AISTATS), ser. PMLR, vol. 130, 2021, pp. 3889–3897.

[5] A. Tsigler and P. L. Bartlett, “Benign overfitting in ridge regression,” Journal of Machine Learning Research, vol. 24, no. 123, pp. 1–76, 2023.

[6] P. Patil, Y. Wei, A. Rinaldo, and R. Tibshirani, “Uniform consistency of cross-validation estimators for highdimensional ridge regression,” in Proceedings of the 24th International Conference on Artificial Intelligence and Statistics (AISTATS), ser. PMLR, vol. 130, 2021, pp. 3178–3186.

[7] K. Rahnama Rad and A. Maleki, “A scalable estimate of the out-of-sample prediction error via approximate leave-one-out cross-validation,” Journal of the Royal Statistical Society Series B: Statistical Methodology, vol. 82, no. 4, pp. 965–996, 2020.

[8] P. Patil and D. LeJeune, “Asymptotically free sketched ridge ensembles: Risks, cross-validation, and tuning,” arXiv preprint arXiv:2310.04357, 2023.

[9] D. Kobak, J. Lomond, and B. Sanchez, “The optimal ridge penalty for real-world high-dimensional data can be zero or negative due to the implicit ridge regularization,” Journal of Machine Learning Research, vol. 21, no. 169, pp. 1–16, 2020.

[10] P. Patil and J.-H. Du, “Generalized equivalences between subsampling and ridge regularization,” in Advances in Neural Information Processing Systems, vol. 36, 2023.

[11] J.-H. Du, P. Patil, and A. K. Kuchibhotla, “Subsample ridge ensembles: Equivalences and generalized crossvalidation,” in Proceedings of the 40th International Conference on Machine Learning, ser. PMLR, vol. 202, 2023, pp. 8585–8631.

[12] P. Patil, J.-H. Du, and A. K. Kuchibhotla, “Bagging in overparameterized learning: Risk characterization and risk monotonization,” Journal of Machine Learning Research, vol. 24, no. 319, pp. 1–113, 2023.

[13] E. Dobriban and Y. Sheng, “Distributed linear regression by averaging,” The Annals of Statistics, vol. 49, no. 2, pp. 918–943, 2021.

[14] B. Adlam and J. Pennington, “Understanding double descent requires a fine-grained bias-variance decomposition,” Advances in Neural Information Processing Systems, vol. 33, pp. 11 022–11 032, 2020.

[15] B. Efron, T. Hastie, I. Johnstone, and R. Tibshirani, “Least angle regression,” The Annals of Statistics, vol. 32, no. 2, pp. 407–499, 2004.

[16] M. Usman, S. Doguwa, and B. Alhaji, “Comparing the prediction accuracy of ridge, lasso and elastic net regression models with linear regression using breast cancer data,” Bayero Journal of Pure and Applied Sciences, vol. 14, no. 2, pp. 134–149, 2022.

[17] N. Herawati, A. Wijayanti, A. Sutrisno, Nusyirwana, and Misgiyatia, “The performance of ridge regression, lasso, and elastic-net in controlling multicollinearity: A simulation and application,” Journal of Modern Applied Statistical Methods, vol. 23, no. 2, 2024.

[18] S. Rosset and R. J. Tibshirani, “From fixed-X to random- X regression: Bias-variance decompositions, covariance penalties, and prediction error estimation,” Journal of the American Statistical Association, vol. 115, no. 529, pp. 138–151, 2020.

[19] G. Tzoumerkas, D. Fouskakis, and I. Ntzoufras, “A comparison of power-expected-posterior priors in shrinkage regression,” Journal of Statistical Theory and Practice, vol. 16, p. 61, 2022.

[20] L. Hucker and M. Wahl, “A note on the prediction error of principal component regression in high dimensions,” Theory of Probability and Mathematical Statistics, vol. 109, pp. 37–53, 2023.