Why Least Squares Can Be Unstable
For and , ordinary least squares solves
A minimizer always exists, even when the equations are inconsistent. If is rank deficient, that minimizer may not be unique. If is nearly rank deficient, small perturbations in can cause large changes in the fitted parameters.
The singular value decomposition explains the amplification. In the minimum-norm least-squares solution, each data component is divided by its corresponding positive singular value. Zero singular values contribute zero through the pseudoinverse. A very small positive singular value therefore amplifies errors in its data direction.
Tikhonov Problem
Tikhonov regularization balances data fit against a chosen notion of plausible parameters:
For , minimize:
Here is a reference estimate, defines what should remain small or smooth, and sets how strongly the solution follows the data compared with the constraint defined by .
- penalizes distance from .
- A first-difference matrix penalizes rapid changes between neighboring parameters.
- A second-difference matrix penalizes curvature and favors smoother profiles.
The penalty adds an explicit modeling assumption about the solution and can improve the numerical conditioning of the optimization problem. The observations still contain the same information.
Augmented Least Squares Form
The regularized problem can be written as the following least-squares problem:
Differentiating this objective with respect to gives the normal equation:
This normal equation has a unique solution exactly when the following condition holds:
For standard ridge regularization with , this condition holds for every because is positive definite.
Spectral Filtering
For and , write . Then
When is much larger than , the factor is close to , so regularization changes the corresponding solution component very little. When is much smaller than , the factor is close to , so that component becomes smaller. This prevents a small measurement error from causing a large change in the fitted solution.
Worked Sensitivity Example
Consider
The second singular value is only . Changing the second observation by changes the unregularized second parameter by .
With , , and ,
The same perturbation now changes the second parameter by only . The estimate is less sensitive to this perturbation, while the penalty shrinks the second parameter toward the reference value zero. The difference from the unregularized estimate alone does not tell us which estimate is closer to the unknown true parameter.
Compare the second parameter before and after the same data change. The first parameter is unchanged by this particular perturbation.
| Method | Before | After | Change |
|---|---|---|---|
| Unregularized | |||
Choosing the Regularization Parameter
There is no universally best . It depends on the noise level, parameter scaling, penalty, and purpose of the model.
| Method | Appropriate evidence | Decision |
|---|---|---|
| Validation or cross-validation | Predictive modeling with held-out observations | Choose the value with the best out-of-sample performance |
| Discrepancy principle | A credible estimate of the observation-noise norm | Match the residual norm to the expected noise level |
| Generalized cross-validation | Linear inverse problems without a separate validation set | Minimize a predictive score computed from the fitted system |
| L-curve | Exploratory inverse-problem analysis | Inspect the corner of the residual-norm versus penalty-norm curve |
A small prioritizes fitting the data, so noise can still be amplified. A large prioritizes the penalty, which can make the fitted solution too smooth or shrink it too strongly. Scale the parameter columns and penalty rows consistently so the numerical value of has a clear meaning.
General Weights and Constraints
A diagonal matrix gives parameter-specific penalties:
Larger means stronger shrinkage toward . Choose weights from the units and prior knowledge such as each parameter's plausible scale or an expected smooth change between neighboring parameters. Difficulty in estimating a coefficient is not enough to determine its weight.
An equality such as should be modeled as an explicit equality constraint when it must hold exactly. Bounds such as require constrained least squares. An extremely large penalty can approximate an equality, but it is not a replacement for an exact constraint and can worsen numerical scaling.
Solving the Extended System Stably
Use the normal equation to derive the regularized estimator and examine how and change it. For numerical computation, avoid forming because that squares the condition number. Solve the augmented least-squares system with or instead. Report , , parameter scaling, residual norm, and penalty norm so another reader can repeat the calculation and inspect the trade-off between data fit and penalty.