PHYSICS · Multi-part · Fermi University Physics · Scientific Practice & Experimental Methods · Mathematical Methods for Physics · Data analysis and model fitting in the laboratory
Error, Chance and the Machine, Ch Linear systems, least squares and the singular value decomposition
Problem
A sensor reads y (in mV) at the times t=1000.0, 1000.5 and 1001.0s, and the three readings lie exactly on a line y=c0+c1t. The line is fitted by least squares with the design matrix A=[1t], whose columns hold the number 1 and the value of t in seconds. Use binary64, with u=2−53=1.11×10−16, and the first-order error estimates of Section 2.5.
((a)) Show that det(ATA)=1.5 and tr(ATA)=3003004.25. Use σ12σ22=det and σ12+σ22=tr to find κ(A) and κ(ATA).
((b)) The data are exact, so the residual is zero. Estimate the relative error of (c0,c1) when the fit is solved by QR and when it is solved by the normal equations, and the number of correct significant digits each keeps, taken as −log10 of the error.
((c)) Now use the variable t′=t−1000.5s. Show that the columns of the new design matrix are orthogonal, find its condition number, and repeat the estimates of part 2. Say what the new intercept c0′ means and how c0 follows from it.
((d)) The three readings are taken instead at t=T, T+0.5 and T+1s. Show that det(ATA) is still 1.5, that κ(A)≈2.45T2 for T≫1s, and find the values of T at which the estimated error of the normal equations, and that of QR, reach 1 (no correct digit left).