Section 3: Problems
University-level exam questions for Integral Calculus and Optimization.
Integration for ML
Problem 1.1
Compute the normalizing constant using the polar coordinates trick.
Difficulty: Medium
Problem 1.2
Given for , (and 0 elsewhere), compute the marginal density and the expectation .
Difficulty: Medium
Problem 1.3
Estimate using Monte Carlo integration with samples. Report the estimate and its standard error.
Difficulty: Easy
Problem 1.4
Use the change-of-variables formula to derive the density of when (i.e., derive the lognormal density).
Difficulty: Hard
Calculus of Optimization
Problem 2.1
Find and classify all critical points of using first- and second-order conditions.
Difficulty: Medium
Problem 2.2
Prove that if is twice differentiable and for all , then is convex.
Difficulty: Hard
Problem 2.3
For with symmetric positive definite, derive the gradient descent update and show that the optimal step size is where .
Difficulty: Hard
Problem 2.4
Use Lagrange multipliers to find the maximum entropy distribution subject to given mean and variance constraints.
Difficulty: Very Hard
Challenge Problems
Problem 3.1
Prove that gradient descent with step size on an -smooth convex function satisfies .
Difficulty: Very Hard
Solutions
Solutions are available in the implementation file with verification code.