Fundamentals / Numerical mathematics / Inverse problems and least squares

Forward maps, information and identifiability

Decide what a measurement can tell you before attempting to fit it. Separate nonuniqueness, noise sensitivity and model error.

From first principles

Decide what a measurement uniquely determines

A forward model predicts readings from a state. In a linear discretization write \(y=Ax\); row \(i\) lists the sensitivity of the \(i\)th reading to each state component. If two states give the same data, subtract their equations. Their difference must be invisible to every measurement,

\[Ax_1=Ax_2\quad\Longleftrightarrow\quad A(x_1-x_2)=0 .\]

Thus, if \(x_0\) is one solution, all exact solutions are \(x_0+h\) for \(h\) in the null space of \(A\). A reported quantity \(q=c^Tx\) can still be unique even if the full state is ambiguous: its value must be unchanged by every invisible displacement. To test this, find a weight vector \(w\) that expresses \(c\) in terms of the measurement rows. Substituting it into the quantity of interest gives

\[\begin{aligned} A^T w &= c,\\ q &= c^Tx=(A^Tw)^Tx\\ &= w^T(Ax)=w^Ty. \end{aligned}\]

This equality identifies the quantity directly from the measurements. Small but nonzero sensitivities create a different difficulty: the state can be unique in exact arithmetic while realistic measurement errors leave its numerical value uncertain.

Background · Forward operator
\[y=G(m)+\eta\]

The operator maps parameters to predicted observations. The noise and discrepancy model must use the same physical units as the readout.

An elongated band shows parameter changes compatible with a single measurement. Ellipses bound the region after a second independent measurement is added.Open full-size diagram
When does a second sensor resolve an ambiguity? The first sensor measures a + b with standard deviation 0.25. Changes along a = −b remain invisible. A second sensor observes a − b with standard deviation 0.60. For independent Gaussian errors, squared residuals in units of their respective variances add. The ellipses show sums of 1, 4 and 9, each constant along its contour. Taking a second independent reading with the first sensor alone would narrow its band by a factor of √2 while preserving its invisible direction. Copying the original reading supplies no new information.

Derivation and applications

Separate amplitude and decay rate using two observation times

A single positive reading of \(y(t)=A e^{-kt}\) admits many pairs of amplitude \(A\) and rate \(k\). Two measurements at different times can remove that ambiguity, but the spacing matters when readings are imperfect. Assume a single exponential, constant positive amplitude and positive noiseless signal, with independently calibrated times \(t_1<t_2\). Taking the ratio of the two exact data eliminates the unknown amplitude,

\[\frac{y_1}{y_2}=e^{k(t_2-t_1)},\]
\[k=\frac{\ln y_1-\ln y_2}{t_2-t_1},\]
\[A=y_1 e^{kt_1}.\]

This inversion is unique even though an individual observation cannot distinguish the two parameters. The local sensitivity of the inferred rate is obtained by differentiating both logarithms. For small errors and independently known times,

\[\delta k\simeq\frac{\delta y_1/y_1-\delta y_2/y_2}{t_2-t_1}.\]

If the measurements have independent relative standard deviations \(s_1,s_2\), squaring the coefficients and adding their variances gives

\[\operatorname{sd}(\widehat k)\simeq\frac{\sqrt{s_1^2+s_2^2}}{t_2-t_1}.\]

A shared multiplicative calibration factor cancels from the ratio exactly. A shared additive background generally does not cancel, particularly once the signal becomes small. Choosing measurements far apart helps at fixed fractional precision; under fixed absolute noise the later signal may lose sufficient precision to reverse that benefit. Two data can fit two parameters exactly and consequently do not check whether a single exponential describes intermediate times.

Worked example

Recover a decay and test an unused observation

At \(t=1\) and \(4\,\mathrm s\), a sensor reads 12 and 3 in the same units. The inferred rate is

\[\ln4/3=0.4621\,\mathrm{s^{-1}},\]
\[A=12e^{0.4621}=19.05.\]

At \(2.5\,\mathrm s\), halfway between the observations, the model predicts the geometric mean \(\sqrt{12\times3}=6\). A third reading of 7 reveals a deviation that the exact two-point fit could not show.

Second application

Specify the timing separation required for precision

For a second instrument the fractional standard deviation is 0.030 in both channels. To achieve rate standard deviation \(0.010\,\mathrm{s^{-1}}\), the separation must be at least \(\sqrt2(0.030)/0.010=4.24\,\mathrm s\) under these noise assumptions. Observations separated by only \(0.50\,\mathrm s\) give \(0.0849\,\mathrm{s^{-1}}\), even though they still determine a unique mathematical solution.

Turn a measurement protocol into an operator

Imagine reconstructing the temperatures of two adjoining cells, \(x_1,x_2\), from sensor readings. A sensor averaging both cells gives

\[y=(x_1+x_2)/2.\]

The vector \(x\) describes physical properties; the forward map predicts what this particular instrument will report. A second instrument may measure the same properties through a different map. Include spatial averaging, response time and calibration in that map if they are significant. Treating a finite-width sensor as an exact point sample can make an accurate experiment look inconsistent.

For a linear experiment write \(y=Ax+\epsilon\), separating the ideal response from data error. With the averaging sensor, \(x=(20,24)\) and \((21,23)\) both give 22. The difference is a multiple of \((1,-1)\), which \(A\) maps to zero. The data specify an affine family \(x=x_0+z\), \(z\in\ker A\). More decimal places for the very same measurement cannot select one member. A unique reported answer may therefore reflect a chosen convention such as minimum norm or smoothness instead of new physical information.

Build a ray matrix from attenuation measurements

How does a detector reading become a row of a matrix? In a simple transmission scanner, assume a narrow monochromatic beam, negligible scattering into the detector and a known incident intensity \(I_0\). Over a short path segment \(ds\), the fractional intensity loss is \(\mu(s)\,ds\) to first order. Dividing the resulting differential equation \(dI/ds=-\mu I\) by \(I\), then integrating along the ray \(\gamma_i\), gives

\[y_i=-\log(I_i/I_0)=\int_{\gamma_i}\mu(s)\,ds=\sum_j\ell_{ij}\mu_j .\]

The last equality assumes the attenuation is constant within each model cell. The coefficient \(\ell_{ij}\) is the length of the path through cell \(j\). An unvisited cell contributes zero. Model refinement changes these lengths and the number of columns. With lengths in centimetres and attenuation in inverse centimetres, each log reading is dimensionless. This construction models individual rays. A finite detector that pools their intensities requires an additional averaging step in the forward model.

Background · Why does a logarithm change the statistical weight of a ray?

Photon transmission with a known incident mean \(I_0\) produces a mean outgoing count \(\mu=I_0 e^{-a^Tx}\). Geometry becomes linear in optical depth after taking a logarithm. The resulting noise is no longer constant across rays. If the detected count \(N\) is Poisson and reasonably large, its variance is \(\mu\). Linearising \(y=-\log(N/I_0)\) therefore gives

\[\operatorname{Var}(y)\simeq\left(\frac{-1}{\mu}\right)^2\mu=\frac{1}{\mu}.\]

A ray with 100 expected counts has an optical-depth standard deviation near 0.10, compared with roughly 0.01 for 10,000 counts. Equal weights in the log-transformed fit give these readings equal influence despite their different precision. At very low intensities, zero counts make the logarithm undefined; fitting a count likelihood preserves those observations.

Which extra direction resolves a four-cell ambiguity?

Arrange four square cells of side \(1\) cm in two rows and list them in row-major order. Two horizontal and two vertical centre rays have log readings \(0.4,0.6,0.5,0.5\). Each traversed cell contributes one centimetre. The sum of the two horizontal readings equals the sum of the vertical readings, leaving three independent equations. If the top-left attenuation is \(t\), successive substitutions give the family

\[(\mu_1,\mu_2,\mu_3,\mu_4)=(t,\,0.4-t,\,0.5-t,\,0.1+t)\quad{\rm cm}^{-1}.\]

Even positivity admits \(0\le t\le0.4\). The vector \((1,-1,-1,1)\) describes a checkerboard change invisible to the original views. Add a diagonal ray joining the outer corners through cells 1 and 4. Each diagonal chord is \(\sqrt2\) cm. If the reading is \(0.3\sqrt2\), division by \(\sqrt2\) gives \(2t+0.1=0.3\), so \(t=0.1\). The field is \((0.1,0.3,0.4,0.2)\) in inverse centimetres. The extra row acts on the previous null vector by \(2\sqrt2\). Its orientation supplies the missing information. Repeating any original ray could improve its measurement precision but would preserve the checkerboard ambiguity.

Practise on sheet 1 · A detector that pools two unresolved rays. Further reading · Technical University of Denmark · Scientific Computing for X-Ray Computed Tomography · Discretization of CT Problems, slides 7, 9–10 and 16, Intersection of Line and Pixel, The Line Model and The System Matrix.

Find the observable combinations

Every row of \(A\) is a measured linear combination. Every vector in its null space is orthogonal to all those rows. Thus a derived linear quantity \(c^\mathsf{T}x\) is uniquely determined by ideal data exactly when \(c\) lies in the row space. If \(c=A^\mathsf{T}w\), compute it as \(w^\mathsf{T}y\). Conversely, any component of \(c\) along a null direction changes the quantity while leaving the data unchanged. This test can rescue a useful question from an underdetermined experiment. Both temperatures may be ambiguous while their mean is measured precisely.

Take a second reading \((x_1+x_2)/2+\eta(x_1-x_2)/2\). Subtract the first reading to isolate the contrast,

\[x_1-x_2=2(y_2-y_1)/\eta.\]

With \(\eta\ne0\) both temperatures are identifiable in exact arithmetic. At \(\eta=0.01\), a difference error of just 0.02 K changes the recovered contrast by 4 K. Algebraic rank has improved, but the measurement has barely separated the two states. Changing the second sensor's spatial weighting can be much more effective than repeating its reading.

Translate a nonlinear ambiguity into an experiment

For a decay \(y(t)=A e^{-kt}\), an observation at \(t=0\) identifies \(A\) and says nothing about \(k\). A single later observation allows the continuum \(A=y(t)e^{kt}\). Two exact positive observations at distinct times yield

\[k=\ln[y(t_1)/y(t_2)]/(t_2-t_1).\]

This identifies both parameters under the assumed model. When the times are almost equal the denominator is small, which makes the slope sensitive to measurement noise. Late measurements can also be difficult when responses approach the instrument's noise floor.

Always state the admissible parameter set. A power reading \(y=p^2\) determines \(|p|\); if physics requires \(p\ge0\), the sign ambiguity disappears, though sensitivity near zero still needs attention. In later chapters we will assess local sensitivity with derivatives. A full-rank local derivative distinguishes sufficiently close parameters under suitable regularity; widely separated alternatives can remain.

Establish a baseline for a reconstruction

Write down the unknowns with units, the controlled inputs, the measurements and their precision. Predict what changes when one unknown increases with all others fixed. Look for symmetries and parameter combinations that move predictions together. Finally name a second measurement able to separate them. This sequence gives a reason for the later numerical choices: least squares reconciles inconsistent data, while regularisation controls amplification or deliberately selects among weakly distinguished solutions.

Characterise an identifiable output without reconstructing the state

Suppose an experiment provides exact linear observations \(Ax=y\) and a scientist wants a scalar \(Q=c^Tx\). Any two compatible states differ by a vector \(v\) satisfying \(Av=0\). Their outputs differ by \(c^Tv\). Consequently the output is identifiable for every compatible data set precisely when \(c\) is orthogonal to the nullspace. This condition can be checked entirely from the design, before taking a measurement. If it fails, arbitrarily precise measurements with the same operator cannot answer the scientific question unless other assumptions restrict the states.

There is a constructive version. Every row of \(A\) is orthogonal to every null vector. The row space has dimension equal to the rank, whereas the nullspace dimension is the number of columns minus the rank. These dimension counts show that all vectors orthogonal to the nullspace lie in the row space. Hence the test is equivalent to solving \(A^Tw=c\) for observation weights \(w\). When the test succeeds, \(Q=w^TAx=w^Ty\). The weights specify exactly which combination of instrument readings answers the question without requiring a particular choice of unobserved coordinates.

Recover one observable from overlapping measurements

Three masses sit on a support. One instrument reports \(x_1+x_2=7\) kg and another reports \(x_2+x_3=9\) kg. Subtracting gives \(x_3-x_1=2\) kg. In matrix language the target \(c=(-1,0,1)^T\) equals the second measurement row minus the first, so \(w=(-1,1)^T\). Independently parameterise all solutions by \(x=(7-t,t,9-t)^T\). Every admissible value of \(t\) produces the same difference. In contrast the total mass is \(16-t\), so even requiring all masses to be nonnegative leaves totals ranging from 9 to 16 kg. A convenient equal-mass assumption would select a value by adding external information.

Now give the two readings independent measurement errors of standard deviation 0.20 and 0.30 kg. The same weighted difference has variance \(0.20^2+0.30^2=0.13\) kg² and standard deviation about 0.361 kg. It remains an unbiased estimate of the mass difference. A shared additive zero-offset error cancels in this difference, whereas it would affect an output using the sum. This is a second design question: identifiability determines whether suitable weights exist, while the error covariance determines whether applying those weights yields useful precision.

A third instrument measuring \(x_2\) alone would remove the remaining ambiguity. Measuring the first overlapping pair again would tighten one known sum but retain the null direction \((-1,1,-1)^T\). When choosing the next measurement, evaluate its dot product with that unresolved direction. A nonzero product measures some of the missing information; a very small product makes the newly identifiable quantity fragile under noise.

For example a reading of \(x_1+2x_2+x_3\) merely adds the two original readings. It has nonzero sensitivity to every individual mass yet zero dot product with the missing direction. The instrument can improve precision on a known combination while leaving exactly the same continuum of compatible total masses.

How much information does a second sensor actually add?

The first measurement is the mean of two cells. The second is the same mean plus \(a(x_1-x_2)/2\). Differencing cancels the common mean and allows the contrast to be recovered. Assume independent, identically noisy readings.

How much information does a second sensor actually add?. Horizontal axis: Differential weight in second observation. Vertical axis: Contrast standard error / single-reading σ. Data follow the figure.
At a = 0.1 the contrast error is about 28 single-reading standard deviations. Repeating each condition four times cuts uncertainty in half; changing the second sensor’s weight from 0.1 to 0.4 cuts it by four.
Read values from the plot
Contrast standard error / single-reading σ at selected values of Differential weight in second observation.
Differential weight in second observationTwo independent readingsFour repeats of each reading
0.01282.84141.42
0.2610.8795.4393
0.5055.60082.8004
0.753.77121.8856
12.82841.4142

Download all 199 plotted samples (CSV)

Change parameters · How much information does a second sensor actually add?

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

Eliminate linear nuisance parameters before fitting a decay · Inferring parameters and fields from observations

A measured relaxation has an unknown rate, amplitude and background. Derive a one-dimensional profile fit without fixing the nuisance parameters, explain why short observation windows can hide the rate and test an actual numerical dataset.