A sensor's output yyy (in volts) is read at times x=0,1,2,3x = 0, 1, 2, 3x=0,1,2,3 seconds, giving y=1,3,4,4y = 1, 3, 4, 4y=1,3,4,4. Find the least-squares line y^=c0+c1x\hat y = c_0 + c_1 xy^=c0+c1x for these readings. Give the intercept c0c_0c0 (in V), the slope c1c_1c1 (in V/s) and the sum of squared residuals of the fitted line (in V²), each to two decimal places.
Unlock full course notes by signing up
Procedure for a least-squares quadratic fit
An engineer wants the least-squares quadratic y^=c0+c1x+c2x2\hat y = c_0 + c_1 x + c_2 x^2y^=c0+c1x+c2x2 for ten measured points (xi,yi)(x_i, y_i)(xi,yi). Put the steps of the procedure in the order they are carried out, from the raw data to judging the fit.
Approximating motion with a fixed zero intercept
A cart starts at a marked origin and moves approximately at constant speed. Noisy distance measurements are 2 m at 1 s, 3 m at 2 s and 9 m at 3 s.
Fit the model d^(t)=vt\hat d(t)=vtd^(t)=vt by least squares, where vvv is the fitted speed. The intercept is fixed at zero. Choose vvv to minimise the sum of squared distance residuals at the three measurement times; do not treat the origin as an additional noisy observation.
Find the fitted speed in m/s and the minimum sum of squared residuals in m². Give both answers to two decimal places.
Least-squares error of an inconsistent system
The system Ax=bA\mathbf x = \mathbf bAx=b below has no exact solution.
Find the least-squares solution x^\hat{\mathbf x}x^ and use it to compute the least-squares error ∥b−Ax^∥\|\mathbf b - A\hat{\mathbf x}\|∥b−Ax^∥, the length of the residual vector. Give the error as a plain number to three decimal places.
Geometry of the least-squares solution
Let AAA be an m×nm \times nm×n matrix, b\mathbf bb a vector in Rm\mathbb R^mRm, and x^\hat{\mathbf x}x^ a least-squares solution of Ax=bA\mathbf x = \mathbf bAx=b, so that x^\hat{\mathbf x}x^ minimises ∥b−Ax∥\|\mathbf b - A\mathbf x\|∥b−Ax∥. Which of the following statements are true? Select all that apply.
Finding the unavoidable error of a symmetric approximation
An optical scanner measures a surface height hhh at five horizontal positions xxx. Both position and height are measured in centimetres.
The approximation is restricted to h^(x)=a+bx2\hat h(x)=a+bx^2h^(x)=a+bx2, with no term proportional to xxx. Choose aaa and bbb to minimise the sum of squared height residuals over all five measurements.
Complete the result using exact numbers: the smallest possible sum of squared residuals is ________ cm², attained when a=a=a= ________ cm and b=b=b= ________ cm−1\text{cm}^{-1}cm−1.