Dinesh/ Blog

Article series · 7 lessons

Math for computing

Make the mathematics behind programs and models concrete with small worked examples.

Start this series

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
Loading this browser’s progress…

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

  1. 01beginner · 28 min

    Discrete Math — Sets, Logic, Combinatorics, Graphs

    Apply sets, logic, counting and graph invariants with explicit quantifier, SQL and finite-domain boundaries.

  2. 02beginner · 25 min

    Linear Algebra I — Vectors, Dot Product, Geometry

    Compute real-vector norms, dot products, angles and projections; distinguish geometric scores from measured semantic retrieval quality.

  3. 03beginner · 28 min

    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.

  4. 04beginner · 26 min

    Calculus I — Derivatives & Chain Rule

    Derive derivatives and chain-rule paths, compare finite differences with automatic differentiation, and test numerical and domain limits.

  5. 05beginner · 27 min

    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.

  6. 06beginner · 27 min

    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.

  7. 07beginner · 27 min

    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.