Mathematical Foundations

The mathematical language needed to understand, implement and diagnose learning systems.

5 sections · 37 units · about 167 hours

0/37
Start hereProof habits and shape notation
1Linear Algebra & Proof0 of 8 passed · project: Least squares and PCA with rank and conditioning failures
  1. Proof habits and shape notation6h
  2. Linear maps, span, independence and change of basis4h
  3. The four subspaces, rank and solution sets5h
  4. Inner products, norms, orthogonality and Gram-Schmidt4h
  5. Projections, residuals and least squares5h
  6. Eigenvalues, symmetric and positive-semidefinite matrices6h
  7. SVD, pseudoinverse and low-rank approximation6h
  8. Batched shapes, operation costs and conditioning6h
2Calculus & Automatic Differentiation0 of 6 passed · project: A small reverse-mode engine and a matrix-calculus gradient-check harness
  1. Limits, partial and directional derivatives, and gradients3h
  2. Jacobians, Hessians and Taylor approximations3h
  3. The chain rule and matrix derivatives4h
  4. Gradients of logistic, softmax cross-entropy and regularized losses3h
  5. Forward mode, reverse mode, JVPs, VJPs and Hessian-vector products4h
  6. Backpropagation through dense layers and gradient checks3h
3Probability, Information & Bayesian Reasoning0 of 7 passed · project: A Monte Carlo verifier for conditional probability, posterior predictives and information
  1. Probability axioms and random variables3h
  2. Joint, marginal and conditional distributions, and independence3h
  3. Expectation, variance, covariance and conditioning laws4h
  4. Common distribution families and transformations4h
  5. Bayes rule, conjugate priors and posterior predictives4h
  6. Laws of large numbers, CLT, concentration and Monte Carlo4h
  7. Entropy, cross-entropy, KL divergence and mutual information3h
4Statistics, Experimentation & Causality0 of 8 passed · project: A statistical audit harness and the memo for a flattering experiment
  1. Estimands, estimators, bias, variance and consistency4h
  2. Maximum likelihood and MAP estimation5h
  3. Intervals, hypothesis tests, power and effect size6h
  4. Bootstrap, permutation tests and multiple comparisons6h
  5. Regression diagnostics, calibration and uncertainty5h
  6. Missingness and selection mechanisms4h
  7. Randomized experiment design, power and MDE5h
  8. Causal claims, causal graphs, adjustment and identification6h
5Optimization & Numerical Methods0 of 8 passed · project: An optimizer and numerics test bench
  1. Convexity, optimality conditions and conditioning5h
  2. Gradient descent, stochastic gradients and momentum6h
  3. Adaptive optimizers, schedules, clipping and stopping5h
  4. Constraints, KKT conditions and proximal methods6h
  5. Newton and quasi-Newton methods4h
  6. Floating point, rounding, overflow and cancellation4h
  7. Stable log-sum-exp, online reductions and mixed precision6h
  8. 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.