A13 Numerical methods · Practice
Problem set 9: fitting, optimization and ODEs
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Check
Least squares with .
(a)
About how many digits does QR keep?
(b)
And the normal equations?
Check
The least-squares line through (0, 1), (1, 2), (2, 10).
(a)
What's its slope?
(b)
What's its intercept?
Check
Fit statistics.
(a)
A line through 8 points at x = 0, 1, ... with noise σ = 0.2: slope standard error?
(b)
That fit leaves SSR = 2. What's the estimated σ²?
Check
The model with A = 3, τ = 1.5, at t = 5.
(a)
What's ?
(b)
What's ?
Check
Searching and stepping.
(a)
Golden-section evaluations to shrink a width-3 bracket below 0.001?
(b)
Gradient descent's stability limit when = 400?
Check
A quadratic with Hessian eigenvalues from 1 to 50.
(a)
What's the best fixed gradient-descent step?
(b)
What factor per step does it achieve?
Check
Minimize .
(a)
One Newton step from 1?
(b)
Where's the minimum?
Check
ODE steps.
(a)
One Euler step on from y = 1 with h = 0.02?
(b)
An order-4 method's step is divided by 3. By what factor does its global error shrink?
Check
An undamped oscillator with = 0.2.
(a)
Euler's amplitude growth per period?
(b)
Euler's growth per step?
Check
Step control.
(a)
Order-4 error 3 × 10⁻⁷ on a 4 µs step, tolerance 1 × 10⁻⁶: next step?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
(b)
With atol = 0.0001, rtol = 1 × 10⁻⁵, what's the tolerance at y = 2?
Check
Stiff mode with τ = 1 µs and step 20 µs.
(a)
Backward Euler's factor per step?
(b)
Trapezoidal rule's factor?
Check
Explicit limits and companion models.
(a)
Fastest time constant 1 × 10⁻⁸ s: at least how many forward-Euler steps for 0.001 s?
(b)
Backward-Euler companion conductance of 47 µF with a 10 µs step?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
AB2 integrates a mode decaying at 100 s⁻¹.
(a)
Above what step does it go unstable?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
BDF2 steps a 10 nF capacitor with h = 1 ns.
(a)
What is its companion conductance?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
Shooting on with and .
(a)
What starting slope is needed?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in A13