Skip to content

Notation

The course’s sources use different symbols for the same things. Glassbox uses one notation everywhere. Hover a dotted symbol on any page for its card, or look it up here.

SymbolNameMeaningFromHow sources differ
a⊙b\mathbf{a} \odot \mathbf{b}elementwise productMultiply matching entries: (a ⊙ b)_i = a_i b_i. NumPy writes a * b.0.2
x\mathbf{x}vectorA column vector, written bold lower-case. Its i-th entry is x_i.1.1MML and UDL use bold; CS229 uses plain x.
A\mathbf{A}matrixA matrix, written bold upper-case. A_{ij} is row i, column j.1.1UDL writes weights as Ω (Omega) and biases as β; we use W and b.
A⊤\mathbf{A}^\toptransposeRows become columns: (Aᵀ)_{ij} = A_{ji}. xᵀy is the dot product.1.1
∥x∥\lVert \mathbf{x} \rVertnormEuclidean length √(xᵀx) unless a subscript says otherwise (‖x‖₁ is the sum of absolute values).1.1
det⁡(A)\det(\mathbf{A})determinantSigned factor by which A scales areas (volumes). Zero means A squashes space flat.1.1
I\mathbf{I}identityThe identity matrix: ones on the diagonal, zeros elsewhere. Ix = x.1.1
λ\lambdaeigenvalueA scalar with Av = λv for some non-zero v (the eigenvector). In Part 2, λ is also the regularization strength; context decides.1.2
∇xf\nabla_{\mathbf{x}} fgradientVector of partial derivatives ∂f/∂x_i. Same shape as x. Points in the direction of steepest increase.1.3MML treats gradients as row vectors (§5.2); we follow UDL and CS229 and use the same shape as x.
∂f∂xi\frac{\partial f}{\partial x_i}partial derivativeRate of change of f as x_i alone changes, all other inputs held fixed.1.3
J\mathbf{J}JacobianFor f: ℝⁿ → ℝᵐ, the m×n matrix of partials J_{ij} = ∂f_i/∂x_j. The best linear approximation of f near a point.1.3
Σ\boldsymbol{\Sigma}covariance matrixΣ_{ij} = Cov(x_i, x_j). Symmetric and positive semi-definite.1.4Not to be confused with the summation sign ∑, or with the diagonal matrix of singular values in the SVD A = UΣVᵀ, which shares the symbol. MML §10 writes the data covariance as S.
σ\sigmastandard deviation / singular value / sigmoidStandard deviation of a 1-D distribution (σ² is the variance). Also a singular value in SVD (1.2), and the sigmoid function σ(z) = 1/(1+e^{−z}) from 1.3 on.1.4
μ\boldsymbol{\mu}meanThe mean (expected value) of a distribution.1.4
Ex∼p[f(x)]\mathbb{E}_{x\sim p}[f(x)]expectationThe average of f(x) when x is drawn from p: ∑ p(x) f(x), or ∫ p(x) f(x) dx.1.4
N(μ,σ2)\mathcal{N}(\mu, \sigma^2)GaussianNormal distribution with mean μ and variance σ² (the second argument is a variance, not a standard deviation).1.4Some code libraries (numpy.random.normal) take the standard deviation instead.
x∼px \sim psampled fromx is a random sample drawn from the distribution p.1.4
H(p)H(p)entropy−∑ p(x) log p(x): the average surprise of p. In nats with natural log, bits with log₂.1.5
H(p,q)H(p, q)cross-entropy−∑ p(x) log q(x): average code length when data from p is coded using q. H(p, q) = H(p) + KL(p‖q).1.5
DKL(p ∥ q)D_{\mathrm{KL}}(p \,\Vert\, q)KL divergence∑ p(x) log(p(x)/q(x)) ≥ 0, zero only when p = q. Not symmetric.1.5
θ\boldsymbol{\theta}parametersAll learnable parameters of a model, collected into one vector.1.6UDL uses φ (phi) for model parameters; CS229 and most papers use θ.
L(θ)L(\boldsymbol{\theta})lossThe scalar we minimise; lower is better. Often an average over training examples.1.6
η\etalearning rateStep size in gradient descent: θ ← θ − η ∇L(θ).1.6UDL and CS229 write α for the learning rate; MML calls it the step-size γ (§7.1).
arg⁡min⁡xf(x)\arg\min_{\mathbf{x}} f(\mathbf{x})argminThe input x at which f is smallest (not the smallest value itself).1.6
{(xi,yi)}i=1n\{(\mathbf{x}_i, y_i)\}_{i=1}^{n}datasetn training pairs of an input x_i and its target y_i. Rows of X are the inputs xᵢᵀ; y stacks the targets.2.1UDL writes I pairs {xᵢ, yᵢ}; CS229 writes m examples (x⁽ⁱ⁾, y⁽ⁱ⁾).
y^=f(x;θ)\hat{y} = f(\mathbf{x}; \boldsymbol{\theta})predictionThe model's output for input x with parameters θ. The hat marks an estimate.2.1UDL writes f[x, φ] with parameters φ; CS229 writes h_θ(x).

Conventions. Vectors are columns. A gradient has the same shape as the thing it differentiates. Logs are natural (nats) unless written log₂ (bits).