
Finite-Difference Approximations
Alan Edelman and Steven G. Johnson continue MIT's 18.S096, Matrix Calculus for Machine Learning and Beyond, with a session on finite-difference approximations. The lecture covers how numerical derivative estimates are constructed by perturbing inputs and measuring output changes, and why these approximations are useful for checking analytical derivatives computed by hand or by automatic differentiation. The core of the talk moves into numerical analysis, examining the two competing sources of error: truncation error from the finite step size and roundoff error from floating-point precision limits. Edelman and Johnson work through how these errors trade off against each other as step size shrinks, explaining why there is an optimal step size rather than simply choosing the smallest possible one. The session is part of MIT's IAP 2023 offering of 18.S096, a course built around the matrix calculus underlying machine learning algorithms, and assumes familiarity with earlier lectures on derivatives and differentials.