Mathematical Foundations
The mathematical language needed to understand, implement and diagnose learning systems.
5 sections · 37 units · about 167 hours
- Proof habits and shape notation6h
- Linear maps, span, independence and change of basis4h
- The four subspaces, rank and solution sets5h
- Inner products, norms, orthogonality and Gram-Schmidt4h
- Projections, residuals and least squares5h
- Eigenvalues, symmetric and positive-semidefinite matrices6h
- SVD, pseudoinverse and low-rank approximation6h
- Batched shapes, operation costs and conditioning6h
- Limits, partial and directional derivatives, and gradients3h
- Jacobians, Hessians and Taylor approximations3h
- The chain rule and matrix derivatives4h
- Gradients of logistic, softmax cross-entropy and regularized losses3h
- Forward mode, reverse mode, JVPs, VJPs and Hessian-vector products4h
- Backpropagation through dense layers and gradient checks3h
- Probability axioms and random variables3h
- Joint, marginal and conditional distributions, and independence3h
- Expectation, variance, covariance and conditioning laws4h
- Common distribution families and transformations4h
- Bayes rule, conjugate priors and posterior predictives4h
- Laws of large numbers, CLT, concentration and Monte Carlo4h
- Entropy, cross-entropy, KL divergence and mutual information3h
- Estimands, estimators, bias, variance and consistency4h
- Maximum likelihood and MAP estimation5h
- Intervals, hypothesis tests, power and effect size6h
- Bootstrap, permutation tests and multiple comparisons6h
- Regression diagnostics, calibration and uncertainty5h
- Missingness and selection mechanisms4h
- Randomized experiment design, power and MDE5h
- Causal claims, causal graphs, adjustment and identification6h
- Convexity, optimality conditions and conditioning5h
- Gradient descent, stochastic gradients and momentum6h
- Adaptive optimizers, schedules, clipping and stopping5h
- Constraints, KKT conditions and proximal methods6h
- Newton and quasi-Newton methods4h
- Floating point, rounding, overflow and cancellation4h
- Stable log-sum-exp, online reductions and mixed precision6h
- Residuals, tolerances and iterative-solver error3h
Final project: Numerical Learning Laboratory
Build a small NumPy project that connects least squares and PCA, reverse-mode differentiation, Monte Carlo uncertainty, experiment analysis and optimizer stability. Each component must include one failure case and one independent check.
- Derivations and assumption notes
- Runnable implementation with tests and raw numerical comparisons
- A short defense of solver, estimator and tolerance choices
How it's graded · about 10 to 14 hours
Least squares and PCA
Pass: The linear-algebra project meets Pass on every criterion, with its rank-deficient case and conditioning table runnable from the suite.
Great: The README links the conditioning table to the solver choice in the defense note.
Reverse-mode differentiation
Pass: The engine and harness pass, and the planted bug fails its directional check.
Great: One command reruns the step-size sweep and the planted-bug test.
Monte Carlo uncertainty
Pass: Every simulation check in the repository reports its sample count and standard error and uses the stated acceptance rule.
Great: The heavy-tail failure and the drifting-predictive failure are both kept as tests.
Experiment analysis
Pass: The audit, the rerun and the decision memo are in the repository with the plan that preceded them.
Great: The memo stands on its own for a reader who has not seen the code.
Optimizer stability
Pass: The optimizer comparison, the divergence diagnosis and the finite-precision failure are reproduced by the suite.
Great: Each prediction sits beside its measurement in the notes.
Defense and rebuild
Pass: A short defense note justifies each solver, estimator and tolerance choice, and a README lists the commands that rebuild every reported number.
Great: Every component names one failure case and one independent check in the README.