AI from scratch · Reference

Math Notation Guide

Every mathematical symbol on the path is introduced gently with pictures and concrete numbers before being used. This reference collects all of them with how they read out loud, their meaning in plain English, and where they are taught.

Symbols, Pronunciations, and Where Each Is Taught

Symbol How to read it Meaning in plain words Example Taught in
\(\sum\) "Sigma" or "sum" Add up a sequence of numbers, exactly like a for-loop accumulating a total \(\sum_{i=1}^N (y_i - \hat{y}_i)^2\) s3-math-warm-up
\(\prod\) "Pi" or "product" Multiply a sequence of numbers together \(\prod_{i=1}^N P(x_i \mid y)\) s3-math-warm-up
\(\ln\), \(\log\) "Natural log", "log" The power to which \(e\) must be raised to produce that value; turns products into sums \(\ln(e^x) = x\), \(\ln(10) \approx 2.303\) s3-math-warm-up
\(\exp\), \(e^x\) "e to the x" Continuous exponential growth; the inverse of natural log \(e^0 = 1\), \(\sigma(z) = \frac{1}{1 + e^{-z}}\) s3-math-warm-up
\(\theta, \eta, \sigma, \mu\) Greek letters Standard names for model knobs: \(\theta\) (weights), \(\eta\) (learning rate), \(\mu\) (mean), \(\sigma\) (spread) \(w \leftarrow w - \eta \nabla L\) s3-math-warm-up
\(x_i, w_{j,k}\) Subscript Index specifying which row, column, or feature is being referenced \(x_1, x_2, \dots, x_N\) s3-math-warm-up
\(\hat{y}\) "y-hat" A model's estimate or prediction, as opposed to the true label \(y\) \(\text{Error} = y - \hat{y}\) s3-math-warm-up
\(\approx\) "Approximately equal to" Rounded numerical values or asymptotic approximations \(\ln(10) \approx 2.3\), \(e \approx 2.718\) s3-math-warm-up
\(\in, \mathbb{R}\) "in", "real numbers" Set membership (\(\in\)) and the set of continuous real numbers (\(\mathbb{R}\)) \(x \in \mathbb{R}^D\) (x is a D-dimensional vector) s3-math-warm-up
\(\mathbf{A}, \begin{bmatrix} a & b \\ c & d \end{bmatrix}\) Matrix A 2D array of numbers that moves, stretches, or rotates the entire vector space \(\mathbf{y} = \mathbf{W} \mathbf{x} + \mathbf{b}\) 01-matrices-are-moves
\(\|\mathbf{x}\|\) "Norm of x" The geometric length or magnitude of a vector \(\|\mathbf{x}\|_2 = \sqrt{\sum x_i^2}\) 01-matrices-are-moves
\(\mathbf{u} \cdot \mathbf{v}\) "Dot product" Multiply matching coordinates and sum; measures directional alignment \(\mathbf{u} \cdot \mathbf{v} = \|\mathbf{u}\| \|\mathbf{v}\| \cos \theta\) 01-matrices-are-moves
\(\mathbf{A}^T\) "A transpose" Flipping a matrix across its main diagonal, swapping rows and columns \((\mathbf{A} \mathbf{B})^T = \mathbf{B}^T \mathbf{A}^T\) l1-systems-and-inverses
\(\mathbf{A}^{-1}\) "A inverse" The transformation that undoes \(\mathbf{A}\); exists only when \(\det(\mathbf{A}) \neq 0\) \(\mathbf{A}^{-1} \mathbf{A} = \mathbf{I}\) l1-systems-and-inverses
\(\frac{df}{dx}, f'(x)\) "Derivative of f with respect to x" The slope or instantaneous rate of change of a function with one input \(\frac{d}{dx} x^2 = 2x\) 02-gradients
\(\frac{\partial f}{\partial x_i}, \partial\) "Partial derivative" The slope with respect to one input while freezing all other inputs constant \(\frac{\partial}{\partial x_1} (x_1 x_2) = x_2\) 02-gradients
\(\nabla L\) "Nabla", "Gradient of L" Vector collecting all partial derivatives, pointing along steepest uphill slope \(\mathbf{w} \leftarrow \mathbf{w} - \eta \nabla L\) 02-gradients
\(P(A \mid B)\) "Probability of A given B" The likelihood of event A occurring knowing that condition B is true \(P(A \mid B) = \frac{P(B \mid A) P(A)}{P(B)}\) p1-probability-and-bayes
\(\int\) "Integral" Continuous summation adding infinitesimally small slices of area under a curve \(\int_{-\infty}^\infty p(x) dx = 1\) c4-integrals
\(\mathbb{E}[X]\) "Expectation of X" The long-run average value of a random variable weighted by its probabilities \(\mathbb{E}[X] = \sum x \cdot P(X = x)\) c4-integrals
\(\arg\max, \arg\min\) "Argument of the maximum/minimum" The input parameter value that achieves the highest (or lowest) function value \(\hat{y} = \arg\max_{c} P(y = c \mid x)\) p3-mle-and-map

Last updated