Quiz: Iterative Solvers for Calibration Problems

Module 5 of 5 · Hard

Quick Quiz

1. For a symmetric positive definite (SPD) n×nn \times n matrix AA with condition number κ=λmax/λmin\kappa = \lambda_\text{max}/\lambda_\text{min}, the conjugate gradient (CG) method satisfies ekA2(κ1κ+1)ke0A\|e_k\|_A \leq 2\left(\frac{\sqrt{\kappa}-1}{\sqrt{\kappa}+1}\right)^k \|e_0\|_A, while steepest descent satisfies ek+1A(κ1κ+1)2ekA\|e_{k+1}\|_A \leq \left(\frac{\kappa-1}{\kappa+1}\right)^2 \|e_k\|_A. For κ=400\kappa = 400, approximately how many iterations does each method require to reduce the A-norm error by a factor of 10410^4?

2. In the CG algorithm, the search direction update is pk+1=rk+1+βkpkp_{k+1} = r_{k+1} + \beta_k p_k with βk=rk+1rk+1/rkrk\beta_k = r_{k+1}^\top r_{k+1} / r_k^\top r_k. Which property does this update enforce, and why is it essential?

3. A Crank-Nicolson pricer for a 1D Black-Scholes PDE has N=1000N = 1000 spatial nodes and runs for M=252M = 252 time steps. Each time step requires solving Ax=bAx = b where AA is tridiagonal. Comparing the Thomas algorithm vs LU factorisation for each solve, and assuming the LU factorisation is recomputed at every step, what are the approximate total flop counts?

4. The preconditioned CG (PCG) method for Ax=bAx = b applies a preconditioner MAM \approx A. Which statement correctly describes the trade-off in choosing MM?

5. An analyst applies CG to solve Ax=bAx = b where AA is a 500×500500 \times 500 SPD matrix with eigenvalues: 100 copies of λ=1\lambda = 1, 100 copies of λ=2\lambda = 2, 100 copies of λ=3\lambda = 3, 100 copies of λ=4\lambda = 4, 100 copies of λ=100\lambda = 100. The condition number is κ2=100\kappa_2 = 100. How many CG iterations are needed to reach machine precision?

6. LSQR solves minAxb2\min \|Ax - b\|_2 iteratively without forming AAA^\top A. Compared to solving the normal equations AAx=AbA^\top A x = A^\top b directly via Cholesky, what is the key numerical advantage of LSQR?

7. A quant calibrates a 3-factor short-rate model to 50 swap rates using Levenberg-Marquardt. After 20 LM iterations, the residual is 10510^{-5} and barely decreasing. The stopping tolerance was set to 101210^{-12}. What is the most likely cause and the correct remediation?

8. The Thomas algorithm solves a tridiagonal system aixi1+bixi+1+cixi+1=dia_i x_{i-1} + b_i x_{i+1} + c_i x_{i+1} = d_i in two passes. Under what condition is it numerically stable without pivoting?