A1346 of 55
0 XP
  1. Hook
  2. Problems

A13 · Problem set 9

Problem set 9: fitting, optimization and ODEs

These problems use lessons 37 to 43: least squares and curve fitting, optimization, Runge–Kutta methods, adaptive step control, and stiffness with implicit methods.

Check

Least squares with κ(A)=104.

(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 Ae−t/τ with A = 3, τ = 1.5, at t = 5.

(a)

What's ∂f/∂A?

(b)

What's ∂f/∂τ?

Check

Searching and stepping.

(a)

Golden-section evaluations to shrink a width-3 bracket below 0.001?

(b)

Gradient descent's stability limit when λmax = 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 x4−4x.

(a)

One Newton step from 1?

(b)

Where's the minimum?

Check

ODE steps.

(a)

One Euler step on y˙=−4y 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 hω = 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.

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.