
Derivatives of Random Functions
MIT instructors Alan Edelman and Steven G. Johnson continue their matrix calculus course (18.S096, Matrix Calculus for Machine Learning and Beyond) with a lecture on differentiating stochastic functions. They show how a function containing random numbers can still have a well defined derivative on average, where the expectation of the derivative equals the derivative of the expectation. The lecture connects this idea directly to stochastic gradient descent, the optimization method underlying most machine learning training, explaining why taking noisy gradient estimates still produces reliable convergence. As with the rest of the series, the session builds on prior matrix calculus foundations and works through the reasoning on the board rather than through slides, aimed at students who already have some linear algebra and calculus background and want to understand the math behind modern machine learning optimization techniques.