A13 · Problem set 8
Problem set 8: fitting and optimization
These problems use lessons 37 and 38: linear and nonlinear least squares, with their uncertainties, and minimization in one and several variables. Report fitted parameters with the precision the data supports.
Check
Fit a line to (0, 1), (1, 2), (2, 6).
(a)
What is the slope?
(b)
What is the intercept?
Check
A line is fitted to 11 points at x = 0, 1, …, 11 − 1, each with noise σ = 0.1.
(a)
What is the slope's standard error?
(b)
And the standard error of the fitted value at the middle point?
Check
A fit of 2 parameters to 20 points leaves a sum of squared residuals of 3.
(a)
What is the estimated noise variance?
Check
The model with A = 2, τ = 1.
(a)
What is the Jacobian entry at t = 2?
(b)
And ?
Check
Two measurements of the same voltage: 5.02 V ± 0.01 V, and a second that reads −0.04 V more, ± 0.04 V.
(a)
What is the weighted least-squares estimate?
(b)
What is its standard deviation?
Check
Least squares through the normal equations with .
(a)
About how many digits survive in double precision?
Check
Golden-section search shrinks a bracket by 0.618 per evaluation.
(a)
How many evaluations shrink a bracket of 1 below 1 × 10⁻⁶?
Check
A quadratic's Hessian has eigenvalues from 0.5 to 4.
(a)
Above what fixed step does gradient descent diverge?
(b)
With the best fixed step, what factor does the error shrink by per step?
Check
Minimize by Newton's method from 1.
(a)
What is the new x?
(b)
Where is the minimum?
Check
A parabola passes through , and .
(a)
Where is its minimum?
Check
A minimum is located by comparing function values in a 24-bit format.
(a)
To about what relative accuracy can its location be found?
Check
A polynomial of degree 3 is fitted to 20 points.
(a)
How many parameters does it have?
(b)
How many degrees of freedom remain for estimating noise?
Check
A Levenberg–Marquardt step with λ = 0.1 lowered the sum of squares.
(a)
What λ comes next, with the usual factor of 10?
Check
A decaying voltage reads 3.1 V at t = 0 and 1.9 V at t = 2 ms. Fit exactly through the two points.
(a)
What is τ?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Rosenbrock's function at (1, 1).
(a)
What is ?
(b)
What is ?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.