Fundamentals / Numerical mathematics / Inverse problems and least squares

Singular systems and the amplification of noise

Identify which patterns survive a forward measurement and which become dominated by uncertainty when inverted.

From first principles

Identify the measured pattern hidden in each singular direction

A forward measurement \(y=Ax+\epsilon\) is easiest to interpret in orthonormal directions where \(A\) acts by simple scaling. For a singular triplet with positive \(\sigma_j\), \(Av_j=\sigma_ju_j\) and \(A^Tu_j=\sigma_jv_j\). Project the complete data equation onto its output direction,

\[u_j^Ty=\sigma_j v_j^Tx+u_j^T\epsilon .\]

Recovering the coefficient in the state divides the measured projection by \(\sigma_j\). Thus the reconstruction error in that direction is

\[v_j^T(\widehat x-x)=\frac{u_j^T\epsilon}{\sigma_j}.\]

When the data are whitened with unit noise covariance, the projected noise has standard deviation one and the recovered coefficient has noise standard deviation \(1/\sigma_j\). A zero singular value hides the corresponding state component completely. The numerical rank of a matrix and the set of coefficients that can be inferred at useful precision can therefore differ even for an exactly known forward model.

Derivation and applications

Derive the singular spectrum of a local averaging instrument

An instrument that averages neighbouring locations transmits broad patterns and attenuates rapid changes. Consider a periodic one-dimensional array of \(N\) equally spaced cells. At every cell the detector returns a symmetric three-point average, with response coefficient \(0\le a\le1/2\). With wraparound indices the noiseless map is

\[(Ax)_j=a x_{j-1}+(1-2a)x_j+a x_{j+1}.\]

Translation symmetry suggests using normalized Fourier patterns \(v_k(j)=e^{2\pi ikj/N}/\sqrt N\). Neighbouring samples of one mode differ only by a phase. Substitution yields its eigenvalue,

\[A v_k=\lambda_k v_k,\]
\[\lambda_k=1-2a+2a\cos(2\pi k/N)=1-4a\sin^2(\pi k/N).\]

The averaging matrix is symmetric and the Fourier modes are orthonormal, so the singular value of each mode is \(|\lambda_k|\). A negative eigenvalue reverses the measured phase of a real sinusoidal pattern but has the same noise amplification as a positive one of equal magnitude. A zero destroys the mode. For independent equal-variance data errors of variance \(s^2\), an inverse on a nonzero mode gives

\[\operatorname{E}|\delta x_k|^2=\frac{s^2}{|\lambda_k|^2}.\]

The periodic boundary assumption supplies the Fourier eigenvectors; a finite array with distinct edge rules generally has a different spectrum. Preservation of the constant mode, \(\lambda_0=1\), checks that the normalized averaging kernel conserves total signal.

Worked example

Identify an invisible checkerboard pattern

For \(N=8\) and \(a=1/4\), the alternating vector corresponds to \(k=4\) and has \(\lambda_4=0\). No improvement in readout precision can infer its coefficient from these data. The quarter-cycle mode \(k=2\) instead has \(\lambda_2=1/2\); noise of standard deviation \(0.020\) in its measured coefficient becomes \(0.040\) in the inferred amplitude.

Second application

Change the optical mixing and forecast a contrast limit

A second array has \(a=0.20\) and even \(N\), giving alternating-mode gain \(1-4(0.20)=0.20\). A true normalized contrast coefficient \(0.30\) appears as \(0.060\) in the data. At coefficient noise deviation \(0.030\) that is only a two-standard-deviation response. To infer the same state coefficient with deviation \(0.050\), the measurement deviation must fall to \(0.20(0.050)=0.010\).

OneSimulation laboratory

Find out what a temperature series identifies

Start from this chapter. Near a single temperature, changing the prefactor can mimic an activation-energy change. Narrow the experimental temperature range and check how the reported standard error changes.

Compare recorded OneSimulation runs on this page. To test your own inputs, download the notebook and model files and run the model in an activated OneSimulation environment.

Fit \(k_r\) and \(E\) simultaneously to five simulated concentration histories with a fixed noise seed. The data-generating values are \(k_r=0.001\) s⁻¹ and \(E=115\) kJ/mol. Keep the same starting guess. Predict which change most increases the standard error of \(E\): doubling noise, or moving the five temperatures closer to their common reference of 323.15 K.

OneSimulation least-squares fits. The last column is the local standard error of the fitted activation energy.
Temperature range and noise (mol/m³)Fitted E (kJ/mol)Standard error (kJ/mol)
313.15–333.15 K · noise 0.05114.03670.3636
313.15–333.15 K · noise 0.10113.06350.7228
321.15–325.15 K · noise 0.05111.14891.4300
Narrowing the temperature range raises the fitted energy’s standard error from 0.364 to 1.430 kJ/mol. With these runs that costs more precision than doubling the sensor noise.
Narrowing the temperature range raises the fitted energy’s standard error from 0.364 to 1.430 kJ/mol. With these runs that costs more precision than doubling the sensor noise.

In the wide case the five temperatures are spaced by 5 K. In the narrow case they are spaced by 1 K. Use the same 12 sampling times per experiment. Try a different random seed after checking the table. Compare the fitted error bar with the scatter of estimates across several seeds. Increasing the number of repeats probes noise; changing the temperature range also changes parameter identifiability. Inspect the model, residuals and fitting procedure.

Download experiment files (ZIP) Extract the files together and open arrhenius_parameter_estimation.ipynb in a local OneSimulation environment.

Change parameters · Change the laboratory inputs

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Problem sheet 3 · Choose between repeating and spreading measurements

Read the model setup and preparatory problems

Rotate the coordinates to expose the experiment

For a whitened matrix \(B=U\Sigma V^\mathsf{T}\), the unit vector \(v_j\) is mapped to \(\sigma_j u_j\). Parameter patterns \(v_j\) and measurement patterns \(u_j\) are orthonormal in their respective coordinates. A small singular value means a full unit change in a particular parameter combination makes only a small change in the data. This conclusion depends on scaling: metres or millimetres for one coordinate change the geometry. Scale each parameter by a physically meaningful range before interpreting a singular vector as a weak process.

For nonzero singular values the least-squares minimum-norm inverse takes the form

\[\hat x=\sum_{\sigma_j>0}\frac{u_j^\mathsf{T}b}{\sigma_j}v_j .\]

Left-singular directions orthogonal to the range contribute to the residual and cannot be fitted. Right-null directions contribute nothing to the data and are assigned zero by the minimum-norm convention. For a full-column-rank matrix the largest response of the inverse to a unit data perturbation has norm \(1/\sigma_{\min}\). A relative worst-case bound involves \(\kappa_2=\sigma_{\max}/\sigma_{\min}\); the actual perturbation direction can be far less damaging.

A blur that almost removes the contrast

Let a sensor mix two unknown levels with \(A=\left(\begin{smallmatrix}0.505&0.495\\0.495&0.505\end{smallmatrix}\right)\). It passes the average direction unchanged and attenuates the difference direction by 0.01. For \(x=(2,0)\) it predicts \(y=(1.01,0.99)\). Add the modest perturbation \((0.01,-0.01)\). Inverting the perturbed data exactly gives \((3,-1)\): a 0.01 perturbation per sensor produced a unit change in each reconstructed level. In contrast, perturbation \((0.01,0.01)\) just raises both fitted levels by 0.01. Both inversions have zero residual. Compare the recovered patterns with independently known precision to decide which interpretation is supportable.

Why finer discretisation can make an inverse problem harder

An integrating or blurring instrument smooths rapidly oscillating parameter fields. Discretising more finely introduces additional oscillatory patterns, each with very small image under the forward map. For a convolution on a periodic grid the Fourier modes themselves diagonalise the operation: the response to each frequency is the Fourier transform of the kernel there. In a Gaussian blur this multiplier falls rapidly with frequency. Formally dividing by it at every resolved frequency amplifies high-frequency noise. Finer output sampling cannot automatically recover what the original acquisition smoothed away.

Plot \(\sigma_j,\ |u_j^\mathsf{T}b|\), and their ratio against index. For recoverable modes the projected signal can be distinguished from the noise floor. When the singular values keep decreasing but the data coefficients fluctuate at roughly constant noise magnitude, division begins to generate structure from noise. The transition can be gradual and projections are random, especially in a short record. Use noise estimates or replicated observations before choosing a cutoff.

Distinguish numerical rank from usable resolution

A singular value large enough to represent in floating point may still give a parameter uncertainty too large for the scientific question. Conversely several poorly measured parameters may admit a well-measured sum. In whitened coordinates the uncertainty of a linear functional follows from how it projects onto \(v_j\). A functional orthogonal to small-singular-value directions can remain stable without the full reconstruction being stable. The next chapter makes the decision to suppress these directions explicit and quantifies the bias it creates.

Ask whether a continuum solution has finite energy

A finite matrix has only finitely many singular values, so a formally inverted vector can always be printed after zero modes have been removed. For a compact smoothing operator on a space of square-integrable functions, there can be infinitely many positive singular values tending to zero. Write the data coefficients as \(b_j\) in the left singular basis, with no data component orthogonal to the closure of the range. Solving mode by mode forces the state coefficients to be \(x_j=b_j/\sigma_j\). Orthogonality gives

\[\|x\|^2=\sum_j |b_j/\sigma_j|^2.\]

A square-integrable solution exists exactly when that last series converges; an arbitrary additional nullspace component can then be added if the operator is not injective.

This range condition explains why diminishing data amplitudes are insufficient evidence of a reconstructible state. They must diminish sufficiently fast relative to the strength with which the instrument transmits each mode. The converse is constructive: if the squared quotient series converges then the partial reconstructed states converge in norm, and continuity of the forward operator takes their limit to the original compatible data. A finite truncation conceals failure of this condition because every partial sum is finite.

Follow two spectra as the reconstruction grid grows

Take singular values \(\sigma_j=1/j\), and compare data sets with coefficients \(j^{-2}\) and \(j^{-3/2}\), respectively. Both data sets have finite squared norm. In the first, the reconstructed coefficients are \(1/j\) and the squared state norm is \(\sum j^{-2}\), which converges. Beyond a cutoff \(N\), its tail is bounded by \(\int_N^\infty x^{-2}dx=1/N\). Keeping 100 modes therefore leaves state error at most 0.10 in this particular normalisation. A corresponding forward residual can be much smaller because applying the operator divides each tail term by an additional \(j\).

In the second data set, the state coefficients are \(1/\sqrt j\). Their squared norm through mode \(N\) is the harmonic sum. From 100 to 200 retained modes it increases by about \(\log 2\), and the same approximate increase recurs on every doubling. Meanwhile the squared data discrepancy after truncation is \(\sum_{j>N}j^{-3}\), bounded by \(1/(2N^2)\). At 100 modes the data residual is at most 0.0071. The residual can become arbitrarily small although no finite-energy exact state exists for this idealised data set.

In a measured spectrum, only finitely many coefficients are observed and their far tail includes instrument noise. Exact membership in an infinite-dimensional range cannot be proven by drawing a straight line through a short log plot. The continuum calculation instead suggests two independent checks during refinement: inspect whether reconstruction norms stabilise, and compare data coefficients to an independently estimated noise floor before dividing them by small singular values.

For the first sequence even an excellent forward residual is a relatively optimistic diagnostic: the squared forward tail behaves like \(N^{-3}\), while the squared state tail behaves only like \(N^{-1}\). Comparing norms without specifying whether the operator has already smoothed the discrepancy makes the two convergence rates appear contradictory.

Change parameters · Singular systems and the amplification of noise

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Study the full derivation

Recovering sparse coefficients without hiding amplitude bias · Inferring parameters and fields from observations

A sensor records a linear mixture of a few active components. Derive the soft-threshold map, use it in an iterative reconstruction and decide when correlated response columns make an apparently sharp sparse answer ambiguous.