Article series · 7 lessons
Math for computing
Make the mathematics behind programs and models concrete with small worked examples.
Follow the sequence below, or pick up where you left off. Nothing is locked.
What you’ll work toward & your progress
What you’ll work toward
- Pigeonhole guarantees some collisions, not infinitely many preimages in every bucket
- Cosine is undefined for a zero vector
- Small determinant magnitude is not a scale-invariant condition-number test: εI has tiny determinant and condition number one
- Chain rule applies local sensitivities; products of Jacobians are not guaranteed stable by residual connections
Completion is stored on this device only. Nothing is locked; start where it makes sense.
Before the first lesson
These are the starting lesson’s prerequisites, not requirements for every advanced topic below.
How to practise this subject
Derive a result by hand, check a finite example in code, and find a boundary case. Explain why the numerical check supports the calculation but is not a general proof.
Lessons in order
- 01
Discrete Math — Sets, Logic, Combinatorics, Graphs
Apply sets, logic, counting and graph invariants with explicit quantifier, SQL and finite-domain boundaries.
- 02
Linear Algebra I — Vectors, Dot Product, Geometry
Compute real-vector norms, dot products, angles and projections; distinguish geometric scores from measured semantic retrieval quality.
- 03
Linear Algebra II — Matrices, Transforms, Eigenvalues
Matrices as linear transformations, matrix multiplication as function composition, and eigenvalues as the axes a transform respects — the shape of every neural net.
- 04
Calculus I — Derivatives & Chain Rule
Derive derivatives and chain-rule paths, compare finite differences with automatic differentiation, and test numerical and domain limits.
- 05
Calculus II — Gradients & Gradient Descent from Scratch
Derive gradients and quadratic step-size bounds, compare batch and stochastic updates, and test convergence and numerical assumptions.
- 06
Probability — Random Variables, Distributions, Expectation
Uncertainty, quantified: random variables, the distributions you'll actually meet (Bernoulli, binomial, normal, exponential, Poisson), expectation, variance, and Bayes' rule.
- 07
Statistics — CLT, Hypothesis Testing, Confidence Intervals
The three ideas that let you turn noisy data into defensible claims: the Central Limit Theorem, p-values, and confidence intervals — with the mistakes that get careers cancelled.