Skip to content
Get started

5. Noise, scaling, and design

Return to the scalar source experiment. Conductivity and boundary temperature are known; sensor ii reads

di=b+sgi+ϵi.d_i=b+sg_i+\epsilon_i.

Suppose the measurement errors have zero mean, are independent, and have known standard deviations σi\sigma_i. A one-unit discrepancy is more surprising for a precise instrument than for a noisy one. Standardize each residual and minimize

Φ(s)=12i(b+sgidiσi)2.\Phi(s)=\frac12\sum_i\left(\frac{b+sg_i-d_i}{\sigma_i}\right)^2.

Setting its derivative to zero gives

s^=igi(dib)/σi2igi2/σi2.\widehat s= \frac{\sum_i g_i(d_i-b)/\sigma_i^2} {\sum_i g_i^2/\sigma_i^2}.

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.

Substitute di=b+sgi+ϵid_i=b+sg_i+\epsilon_i into the formula:

s^s=igiϵi/σi2igi2/σi2.\widehat s-s= \frac{\sum_i g_i\epsilon_i/\sigma_i^2} {\sum_i g_i^2/\sigma_i^2}.

Using independence to eliminate cross covariances gives

Var(s^)=1igi2/σi2.\operatorname{Var}(\widehat s)= \frac{1}{\sum_i g_i^2/\sigma_i^2}.

This result follows from the stated error model; it does not require running a Monte Carlo simulation. With known aa and bb, larger gi/σi|g_i|/\sigma_i means a more informative measurement. For equal sensor precision in the square problem, the centre has the largest source response. At the boundary gi=0g_i=0, so a boundary-temperature measurement adds no information about ss.

At the centre with a=1a=1, g=L2/(2π2)g=L^2/(2\pi^2) with L=1mL=1\,\mathrm m. A temperature standard deviation of 0.010.01 therefore gives a source-estimate standard deviation (2π2/L2)(0.01)0.1974m2(2\pi^2/L^2)(0.01)\approx0.1974\,\mathrm m^{-2}. Averaging four independent readings halves this standard deviation. Four readings with a common calibration error do not provide the same improvement.

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:

s^s=0.01igiigi2.\widehat s-s=0.01\frac{\sum_i g_i}{\sum_i g_i^2}.

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 p=(s,a,b)p=(s,a,b). They have different units and natural magnitudes. Comparing raw derivative entries can therefore be misleading. Choose meaningful scales p,j>0p_{*,j}>0 and write pj=p0,j+p,jzjp_j=p_{0,j}+p_{*,j}z_j. Then

yzj=ypjp,j.\frac{\partial y}{\partial z_j}= \frac{\partial y}{\partial p_j}p_{*,j}.

For example, choose p=(2π2,1,1)p_*=(2\pi^2,1,1) 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 zz coordinates. If observations also have unequal units or precision, scale their residuals before comparing parameter effects.

Suppose prior knowledge favours source s0s_0. Add a quadratic penalty:

Φα(s)=12iwi(b+sgidi)2+α2(ss0)2,wi=σi2.\Phi_\alpha(s)=\frac12\sum_i w_i(b+sg_i-d_i)^2 +\frac\alpha2(s-s_0)^2,\qquad w_i=\sigma_i^{-2}.

Here α\alpha has the units needed to make the penalty dimensionless, or the calculation is performed in scaled coordinates. Differentiation gives

s^α=iwigi(dib)+αs0iwigi2+α.\widehat s_\alpha= \frac{\sum_i w_i g_i(d_i-b)+\alpha s_0} {\sum_i w_i g_i^2+\alpha}.

As α\alpha grows, the estimate moves toward s0s_0. This can stabilize a noisy estimate, but it also introduces bias when s0s_0 is wrong. Regularization does not turn the indistinguishable (s,a)(s,a) 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.

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:

  1. Choose locations and write the three analytic observation equations.
  2. Explain how each observation separates a parameter or parameter combination.
  3. Assign units and uncertainty scales to the readings.
  4. Use the Poisson forward model to predict temperatures for your chosen parameters.
  5. 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 bb, a nonzero outward flux at an edge midpoint for ss, and the centre temperature for s/as/a. 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.

  1. For one sensor, derive the standard deviation of s^\widehat s directly from s^=(db)/g\widehat s=(d-b)/g.
  2. If a sensor’s standard deviation doubles, how does its contribution to igi2/σi2\sum_i g_i^2/\sigma_i^2 change?
  3. Derive dΦ/dzd\Phi/dz when p=p0+Dzp=p_0+D z for a diagonal scale matrix DD.
  4. Show the limits of s^α\widehat s_\alpha as α0\alpha\to0 and α\alpha\to\infty when the observations contain source information.
  5. Explain why changing sensor locations may help identify bb and s/as/a but cannot separate ss and aa from this temperature field alone.

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