A weakly observed parameter direction can magnify a small data perturbation. Ridge regularization changes that transfer by penalizing coefficient size. It does so by shrinking the fitted response as well, even when the data contain no noise. Stability and bias must therefore be examined together.

Consider a dimensionless, two-coordinate surrogate for a robot calibration problem. The construction is invented, with no measured sensor record or identified robot. Its diagonal matrix makes every filtering step explicit so that a favorable numerical outcome cannot be mistaken for a general guarantee.

Declare the penalty convention

Minimize J(x) = norm(Ax minus b) squared + lambda norm(x) squared, with lambda strictly positive and the ordinary Euclidean norm. There is no fitted intercept in this model. The stationary equations are (A transpose A + lambda I)x = A transpose b.

The coefficient of the squared penalty is lambda itself. Some texts instead write lambda squared in the objective. Their numerical parameter is then the square root of ours. Cornell's cited notes use that squared convention, whereas scikit-learn's Ridge documentation labels the direct penalty multiplier alpha.

Confusing these names changes the calculation substantially. Our lambda = 0.0001 corresponds to a Cornell-style parameter of 0.01 and to alpha = 0.0001 in the stated unnormalized objective. A package that averages the data loss by sample count would need its own conversion.

Move into singular coordinates

Write A = U Sigma V transpose. Along a singular direction with value sigma, ordinary least squares transfers the projected data by a factor 1/sigma when sigma is nonzero. Ridge instead uses g(sigma) = sigma/(sigma squared + lambda).

For noiseless data b = A x_true, the corresponding true coefficient is multiplied by f(sigma) = sigma squared/(sigma squared + lambda). This factor lies below one for positive lambda and finite positive sigma. The coefficient shrinks toward zero, regardless of whether zero is physically plausible.

The same factor f describes how much of a projected data component is reproduced by the fitted prediction Ax. Coefficient transfer g and prediction shrinkage f answer different questions. A modest fitted residual need not imply a well-determined unpenalized coefficient in a weak singular direction.

Calculate one perturbed example

Take A = diag(1,0.01), x_true = (1,1), and hence ideal b = (1,0.01). Add the invented perturbation (0,0.01), making the observed data (1,0.02). Ordinary least squares returns (1,2): the second coefficient error is one.

With lambda = 0.0001, ridge returns (1/1.0001, 0.0002/0.0002), approximately (0.99990001,1). For this particular perturbation, shrinkage happens to return the second true coefficient exactly. That coincidence is not an estimator property that survives arbitrary data changes.

Use the ideal noiseless data with the same penalty instead. Ridge's second coefficient becomes 0.0001/0.0002 = 0.5. It is now wrong by one half, while unregularized least squares would recover one exactly in exact arithmetic.

The noisy ridge fit predicts approximately (0.99990001,0.01), leaving an observed-data residual near (minus 0.00009999, minus 0.01). Least squares fits the two observed coordinates exactly. Accepting a residual is part of the regularized objective, not evidence that the regularized numerical solve failed.

Bound perturbation gain separately

Differentiating g over nonnegative sigma gives g'(sigma) = (lambda minus sigma squared)/(sigma squared + lambda) squared. Its maximum occurs at sigma = square root of lambda, where g = 1/(2 square root of lambda).

For our parameter this maximum is fifty. The second singular value, 0.01, attains it. Unregularized transfer in that coordinate is one hundred. An additional second-data perturbation of 0.001 therefore changes the ridge coefficient by 0.05, compared with 0.1 for unregularized least squares.

These numbers measure sensitivity to a change in b with A and lambda held fixed. They exclude uncertainty in A, model mismatch, and any procedure that selects lambda from the same data. They also do not bound total estimation error, because bias remains when the perturbation is zero.

Build an explicit ensemble comparison

For the second coordinate, let data noise have mean zero and variance 0.0001. Keep x_true equal to one. Ridge has mean coefficient 0.5 and noise gain fifty, so its squared bias is 0.25 and its coefficient variance is 2500 times 0.0001 = 0.25.

Its mean squared coefficient error is consequently 0.5. Unregularized least squares is unbiased in this declared model, with variance 10000 times 0.0001 = one. The improvement concerns this expectation and these assumptions, not every realization of noise.

A different true coefficient or noise variance changes the preferred balance. For example, reducing the noise variance to zero removes the variance benefit while leaving ridge's squared bias. A bounded gain alone cannot identify a universally best penalty.

Respect coordinates and unobserved directions

The identity penalty treats coefficient coordinates according to their chosen scales. Changing a parameter from one unit convention to another and retaining the same identity penalty generally changes the modeling preference. Nondimensionalization or an expressly transformed weighting matrix is needed before comparing penalty strengths across parameterizations.

When sigma is zero, ridge returns zero in that singular direction. This produces a unique penalized minimizer but does not create information about the true unobserved coefficient. For a fixed matrix, letting lambda approach zero recovers the minimum-norm least-squares solution, rather than every possible true solution in a null space.

Cornell's notes supply the singular-value filtering formulation, and the official Ridge documentation specifies its objective and solver conventions. The hand calculations here do not benchmark that software. Practical systems should solve the regularized problem with suitable factorizations and justify their penalty using the intended prediction or parameter-error criterion.

Sources checked October 24, 2026

https://www.cs.cornell.edu/courses/cs4220/2026sp/lec/2026-02-25.html

https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Ridge.html

Concept illustration: A wired fixture on a metal worktable beside a waveform display provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.