5. Noise, scaling, and design
Fitting data with unequal precision
Section titled “Fitting data with unequal precision”Return to the scalar source experiment. Conductivity and boundary temperature are known; sensor reads
Suppose the measurement errors have zero mean, are independent, and have known standard deviations . A one-unit discrepancy is more surprising for a precise instrument than for a noisy one. Standardize each residual and minimize
Setting its derivative to zero gives
For independent Gaussian errors this objective is also the negative log likelihood up to a constant. Least-squares estimation and its statistical interpretation are treated in Boyd and Vandenberghe, Convex Optimization, chapter 7, available from the authors.
Derive the noise amplification
Section titled “Derive the noise amplification”Substitute into the formula:
Using independence to eliminate cross covariances gives
This result follows from the stated error model; it does not require running a Monte Carlo simulation. With known and , larger means a more informative measurement. For equal sensor precision in the square problem, the centre has the largest source response. At the boundary , so a boundary-temperature measurement adds no information about .
At the centre with , with . A temperature standard deviation of therefore gives a source-estimate standard deviation . Averaging four independent readings halves this standard deviation. Four readings with a common calibration error do not provide the same improvement.
Add a deterministic noise experiment
Section titled “Add a deterministic noise experiment”In the Poisson script, replace the
synthetic data vector by data + 0.01 before applying the recovery formula.
This models one common positive measurement offset. Predict the parameter bias:
It is positive, because the source response is nonnegative. More readings of the same biased instrument do not force it to zero. Repeat with an alternating positive/negative perturbation and compare. A small residual alone does not identify which error process generated the observations.
Scale parameters before comparing derivatives
Section titled “Scale parameters before comparing derivatives”The script orders parameters as . They have different units and natural magnitudes. Comparing raw derivative entries can therefore be misleading. Choose meaningful scales and write . Then
For example, choose in the units of the script. A unit change in the source coordinate now means one baseline source strength. Multiply by the same scales when converting a gradient to the coordinates. If observations also have unequal units or precision, scale their residuals before comparing parameter effects.
Regularization adds a preference
Section titled “Regularization adds a preference”Suppose prior knowledge favours source . Add a quadratic penalty:
Here has the units needed to make the penalty dimensionless, or the calculation is performed in scaled coordinates. Differentiation gives
As grows, the estimate moves toward . This can stabilize a noisy estimate, but it also introduces bias when is wrong. Regularization does not turn the indistinguishable pairs from chapter 3 into different physical predictions. Its preference must be justified separately. For the broader construction, see chapter 15 of Introduction to Applied Linear Algebra.
Capstone: choose the next measurement
Section titled “Capstone: choose the next measurement”A square has an unknown source amplitude, unknown conductivity, and an unknown uniform boundary temperature. You can measure two temperatures and one boundary heat flux. Design the experiment before fitting:
- Choose locations and write the three analytic observation equations.
- Explain how each observation separates a parameter or parameter combination.
- Assign units and uncertainty scales to the readings.
- Use the Poisson forward model to predict temperatures for your chosen parameters.
- Reserve an extra interior temperature as a held-out prediction. Explain what disagreement would lead you to reconsider about the physical model.
For a nonzero source, one useful arrangement is a boundary temperature for , a nonzero outward flux at an edge midpoint for , and the centre temperature for . The derivation of the flux is in chapter 3. Before interpreting real measurements, return to the heat-transfer assumptions and the spatial-error discussion: measurement noise, model mismatch, and discretization error can all change a fitted parameter.
Exercises
Section titled “Exercises”- For one sensor, derive the standard deviation of directly from .
- If a sensor’s standard deviation doubles, how does its contribution to change?
- Derive when for a diagonal scale matrix .
- Show the limits of as and when the observations contain source information.
- Explain why changing sensor locations may help identify and but cannot separate and from this temperature field alone.
Reading
Section titled “Reading”Stephen Boyd and Lieven Vandenberghe, Convex Optimization, Cambridge University Press, 2004, chapter 7, “Statistical estimation.” Authors’ book and resources. The same authors, Introduction to Applied Linear Algebra, Cambridge University Press, 2018, chapter 15, especially estimation, inversion, and regularized fitting. Book.
Previous: Differentiating a solved model · Book map · Explore heat transfer