Glossary: Mathematics
Every term Mathematics defines, from A to Z, with the section that teaches it. A section that uses a term from elsewhere, in this book or another, also lists it under “Concepts from other sections” at the top of the page.
569 terms
- Absolute discounting: subtracting a fixed from each seen count and giving the freed mass to a backoff distribution. Taught in 13.3 MLE, Laplace, absolute discounting
- Absorption: a small addend vanishing entirely because it is below half the gap of a large running sum. Taught in 15.8 Problem set A: representation, rounding, and cancellation
- Acceptance probability: , the chance a draft token is kept. Taught in 13.7 Rejection sampling and residual distributions
- Acceptance ratio: ; the draft token is kept with probability . Taught in 13.7 Rejection sampling and residual distributions
- Activation checkpointing: saving only some layer inputs in the forward pass and recomputing the rest during backward. Taught in 14.4 Hessian-vector products and the recompute-versus-memory schedule
- activation function: a nonlinear function applied elementwise between linear layers. Taught in 7.3 Activation Functions and Their Derivatives
- Activations: values saved during the forward pass for use in the backward pass. Taught in 11.1 Counting: parameters, FLOPs, KV bytes, and memory plans
- Active parameters: the parameters a single token touches; in an MoE model, the total minus the experts the token is not routed to. Taught in 11.1 Counting: parameters, FLOPs, KV bytes, and memory plans
- Adam with L2: weight decay added to the gradient, so it passes through the normalization. Taught in 16.3 Adam and AdamW: bias correction and decoupled weight decay
- Add-alpha (Laplace) smoothing: adding a pseudo-count to every word of the vocabulary before normalizing. Taught in 13.3 MLE, Laplace, absolute discounting
- Adjoint: , the sensitivity of the final output to a node, stored in
v.grad. Taught in 14.2 Scalar reverse mode: the Value graph - Alias table: equal columns, each holding at most two ids, that allow categorical draws. Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Aliasing: detail finer than a grid can hold reappearing as false low-frequency patterns after sampling. Taught in 18.3 Resampling and interpolation
- Aliasing: a tone above the Nyquist frequency producing the same samples as a tone at . Taught in 18.5 Sampling, Nyquist, windows, and the STFT
- ALiBi slope: the per-head factor by which ALiBi penalizes query-key distance. Taught in 6.3 Sequences, geometric series, and frequency ladders
- Alternating series test: if decreases to 0, the series converges, even when does not. Taught in Chapter 8: Calculus 2
- Angle addition: , equivalently the formulas for and . Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Antialiasing: low-pass filtering before sampling; for resizing, stretching the kernel by . Taught in 18.3 Resampling and interpolation
- Antiderivative: a function with ; by the fundamental theorem of calculus, for any antiderivative of . Taught in Chapter 7: Calculus 1
- Arc length: the length of a curve, for , or for a parametric curve: the integral of speed. Taught in Chapter 8: Calculus 2
- Arena: storing nodes in parallel lists indexed by integers instead of as linked objects. Taught in 12.2 Trees and tries, longest-prefix match
- Arithmetic coding: a compression method that encodes a whole message as a single number in , narrowing the interval by each symbol’s probability; it approaches the entropy on long sequences, and driven by a language model it turns bits per byte into a compression rate. Taught in Chapter 17: Information Theory
- Armijo condition: the sufficient-decrease test . Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- AUC: the area under the ROC curve, equal to the probability that a random positive outscores a random negative, ties counting half. Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Automatic differentiation / autodiff: computing exact derivatives of a program by applying the chain rule to each primitive operation it executes, in forward mode (Jacobian-vector products) or reverse mode (vector-Jacobian products); it is how neural networks get their gradients, with no step size and no symbolic formula. Taught in Chapter 14: Matrix Calculus and Autodiff
- Backoff distribution: a simpler model that receives the probability mass freed by discounting. Taught in 13.3 MLE, Laplace, absolute discounting
- Backtracking line search: trying until the Armijo condition holds. Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- Backward error: how far the input must move for the computed output to be the exact answer. Taught in 15.3 Error analysis, condition numbers, and tolerance budgets
- Backward stable: the computed answer is the exact answer to a slightly perturbed problem, with a small multiple of . Taught in 9.2 Gaussian elimination and LU with partial pivoting
- Balanced split: , , so both factors carry the same scale. Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Basis: a linearly independent set that spans the space; every vector is exactly one combination of basis vectors, and the number of them is the dimension. Taught in Chapter 9: Linear Algebra
- Bayes’ rule: , which inverts a conditional using the base rate. Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- Bessel’s correction: dividing the sum of squared deviations by rather than . Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Bezout’s identity: for any integers and there are integers and with ; the extended Euclidean algorithm finds them. Taught in Chapter 12: Discrete Math 2
- Bias correction: dividing by its weight total so the zero start no longer pulls the average toward 0. Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Bias correction: dividing and by and to undo the zero initialization. Taught in 16.3 Adam and AdamW: bias correction and decoupled weight decay
- Biased exponent: the stored exponent field , equal to the true exponent plus a bias (127 in float32, 15 in float16) so it can be stored unsigned. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- Bijection: a function that is both injective and surjective, and so has an inverse. Taught in 11.3.4 Relations, functions, and validation
- Bijective: both injective and surjective; exactly the functions that have an inverse. Taught in 11.2 Injective, surjective, bijective: the GPT-2 byte map
- Binade: the interval , inside which a format’s values are equally spaced. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- Binade: an interval within which floats are equally spaced. Taught in 15.8 Problem set A: representation, rounding, and cancellation
- Binary symmetric channel: a channel that flips each transmitted bit independently with probability ; its capacity is , where is the binary entropy. Taught in Chapter 17: Information Theory
- Binomial coefficient: , the number of -element subsets of an -element set. Taught in 11.3.4 Relations, functions, and validation
- Binomial distribution: the number of successes in independent trials that each succeed with probability , with , mean , and variance ; a single trial is a Bernoulli variable. Taught in Chapter 13: Probability and Statistics
- Binomial theorem: , because each term picks from of the factors, which can be done in ways. Taught in Chapter 11: Discrete Math 1
- Bipartite graph: a graph whose vertices split into two sets with every edge running between the sets; it has no odd cycles, so in particular no triangles. Taught in Chapter 12: Discrete Math 2
- Birthday bound: the observation that keys in buckets start to collide at . Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Bit: the unit of information for base 2; one bit is nats. Taught in 6.1 Exponents, logarithms, and units of information
- Bit view: reinterpreting the bytes of an array as another dtype without changing any bit, as opposed to a value cast. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- Bits per byte: a text’s total negative log-likelihood in nats divided by ; independent of the tokenizer. Taught in 6.1 Exponents, logarithms, and units of information
- Bits per byte (bpb): , total information divided by the UTF-8 length; comparable across tokenizers. Taught in 17.2 Perplexity, bits per byte, NLL accumulator
- Bloom filter: a bit array with hashes per key that never misses an inserted key and has a tunable false-positive rate. Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Box-Muller: the transform , that turns two uniforms into two independent standard normals. Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- Box-Muller transform: a map from two independent uniforms to two independent standard normals via a radius and angle . Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- Byte map: GPT-2’s fixed bijection from the 256 byte values to 256 visible, non-whitespace characters. Taught in 11.2 Injective, surjective, bijective: the GPT-2 byte map
- Calibration: the property that predictions made with confidence are correct a fraction of the time. Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Cancellation: the loss of significant digits when subtracting two nearly equal rounded numbers. Taught in 6.3 Sequences, geometric series, and frequency ladders
- Cancellation: the loss of significant digits when subtracting nearly equal numbers that already carry rounding error. Taught in 15.8 Problem set A: representation, rounding, and cancellation
- Cantor’s theorem: for every set , because no function from onto its power set exists; it shows there are different sizes of infinity. Taught in Chapter 11: Discrete Math 1
- Cartesian product: , the set of all ordered pairs, with ; relations and functions are subsets of it. Taught in Chapter 11: Discrete Math 1
- Catastrophic cancellation: losing most significant digits by subtracting two nearly equal rounded numbers. Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Catastrophic cancellation: loss of significant digits when large terms of opposite sign nearly cancel. Taught in 8.1 Taylor series, remainder bounds, and range reduction
- Catastrophic cancellation: the loss of all significant digits when two large, nearly equal floating-point numbers are subtracted. Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- central difference: , a second-order approximation of . Taught in 7.1 Derivatives and Finite Differences
- Central difference: , whose even-order error terms cancel, leaving . Taught in 14.4 Hessian-vector products and the recompute-versus-memory schedule
- Central limit theorem: the standardized sample mean tends to for any distribution with finite variance. Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Central limit theorem: the standardized sample mean is approximately standard normal for large , whatever the distribution of each draw. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- chain rule: . Taught in 7.5 Calculus 1 Problem Set
- Chain rule: . Taught in 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- Chain rule for entropy: ; the joint entropy of a sequence is the sum of each symbol’s entropy given the ones before it, which is how an autoregressive language model’s loss adds up. Taught in Chapter 17: Information Theory
- Change of base: the identity , which makes every logarithm a natural log divided by a constant. Taught in 6.1 Exponents, logarithms, and units of information
- Change of basis: rewriting a matrix in new coordinates as ; the transformation is the same, only its description changes. Taught in Chapter 9: Linear Algebra
- Change of variables (multiple integrals): for a substitution , , where is the Jacobian determinant of ; it measures how stretches area, and it gives the in polar and the in spherical coordinates. Taught in Chapter 10: Calculus 3
- Channel capacity: , the highest rate in bits per channel use at which data can be sent reliably over a noisy channel. Taught in Chapter 17: Information Theory
- Channels last (NHWC): a memory order in which the channel is the fastest axis; the logical shape can stay NCHW. Taught in 18.2 Image tensors and layouts
- Characteristic equation (recurrences): for a linear recurrence , the equation ; with distinct roots the closed form is . Taught in Chapter 12: Discrete Math 2
- Characteristic polynomial: , whose roots are the eigenvalues of . Taught in Chapter 9: Linear Algebra
- Chebyshev nodes: the zeros of , which minimize the maximum of the interpolation node product on . Taught in 15.9 Problem set B: condition numbers, error bounds, Newton, polynomial approximation, and low precision
- Chebyshev’s inequality: , a distribution-free tail bound derived from Markov’s inequality. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- chord method: Newton with the derivative frozen at ; it converges only linearly. Taught in 7.2 Newton’s Method
- Chromatic number: , the fewest colours needed to colour the vertices of so that no two adjacent vertices share a colour; it models register allocation and scheduling, and it is at most 4 for planar graphs. Taught in Chapter 12: Discrete Math 2
- Clairaut’s theorem: if the mixed partials and are continuous, they are equal, so the order of differentiation does not matter and the Hessian is symmetric. Taught in Chapter 10: Calculus 3
- Cody and Waite split: representing as a short high part, whose products with are exact, plus a small low part. Taught in 15.6 Polynomial approximation and range reduction: expf in C
- Cody-Waite reduction: subtracting as two pieces, a short exact high part and a tiny low part, so is accurate to the last bit. Taught in 8.1 Taylor series, remainder bounds, and range reduction
- Coefficient of determination: , the fraction of the variance in that a regression explains; for simple linear regression it equals the squared correlation . Taught in Chapter 13: Probability and Statistics
- col2im: the adjoint of im2col, which sums column entries back into the pixels they came from. Taught in 18.1 Convolution as a linear map
- COLA / NOLA: constant (or nonzero) overlap-add of the squared window, the conditions for exact (or possible) inversion. Taught in 18.5 Sampling, Nyquist, windows, and the STFT
- Combinatorial proof / double counting: proving an identity by showing that both sides count the same set in two different ways, with no algebra; Vandermonde’s identity and are classic examples. Taught in Chapter 12: Discrete Math 2
- Comparison test: a series of nonnegative terms converges if it is bounded term by term by a known convergent series, such as a geometric or -series, and diverges if it bounds a known divergent one. Taught in Chapter 8: Calculus 2
- Compensated (Kahan) summation: summation that carries the rounding error of each addition into the next, with first-order error independent of . Taught in 15.2 Stable numerics: logsumexp, softmax, and compensated sums
- Compensated summation: keeping a second float that accumulates the rounding error of each addition (Kahan, Neumaier). Taught in 17.2 Perplexity, bits per byte, NLL accumulator
- Complex number: a point of the plane with the multiplication defined by . Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Composition: , applying first. Taught in 6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
- Computation graph: a graph with one node per value and an edge from each value to the values it was computed from. Taught in 12.1 Graphs, DAGs, and an iterative topological sort
- Condition number: of a positive definite matrix, which sets how slowly gradient descent converges. Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Condition number: how much the exact answer of a problem moves relative to a change in its input. Taught in 15.3 Error analysis, condition numbers, and tolerance budgets
- Condition number : the ratio ; for a quadratic, of the Hessian. Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- Conditional entropy: , the uncertainty that remains about once is known; conditioning never increases entropy on average, so . Taught in Chapter 17: Information Theory
- Conditional probability: , probability restricted to and renormalized. Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- Confidence interval: a procedure that, over repeated samples, produces intervals covering the fixed true parameter at the stated rate. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- Congruence: when and have the same remainder mod . Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- Congruence modulo : when divides . Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Conjugate symmetry: for real input, which lets
rfftkeep only bins. Taught in 18.4 DFT and FFT - Connected graph: a graph with a path (a sequence of distinct vertices, each joined to the next by an edge) between every pair of vertices; a tree is a connected graph with no cycles. Taught in Chapter 12: Discrete Math 2
- Conservative vector field: a field that is the gradient of a scalar potential, ; its line integrals depend only on the endpoints, and its integral around any closed curve is zero. Taught in Chapter 10: Calculus 3
- Constraint: a condition a plan must satisfy, written as an equation or an inequality. Taught in Chapter 3: Vectors and constraints
- Context distribution smoothing: raising context counts to and renormalizing over contexts, which lowers PMI for rare contexts. Taught in 17.3 Mutual information, PMI, and PPMI
- Continuous function / continuity: is continuous at when , so the graph has no jump or hole there; many theorems of calculus, such as the intermediate value theorem, require it. Taught in Chapter 7: Calculus 1
- Contraction: a map with near its fixed point, whose iteration converges linearly. Taught in 15.5 Fixed-point iteration and fast inverse square root in C
- Contrapositive: , logically equivalent to . Taught in 11.3.4 Relations, functions, and validation
- Convergence: the partial sums settle on a finite limit; otherwise the series diverges. Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Convex function: a function whose chords lie above its graph; every stationary point is a global minimum. Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- Correlation coefficient: , covariance rescaled to lie in ; it measures the strength of linear association, and zero correlation does not imply independence. Taught in Chapter 13: Probability and Statistics
- Cosine decay: half a cosine period from to over a fixed horizon . Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Cosine similarity: the inner product divided by both lengths; depends only on direction. Taught in 9.6 Inner products, projections, cosine similarity, and top-k
- Cotangent: a weighting of the outputs, pulled back through a function by a VJP. Taught in 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- Count of counts: , the number of outcomes seen exactly times. Taught in 13.3 MLE, Laplace, absolute discounting
- Coupled weight decay: adding to the gradient before the momentum buffer; the gradient of an L2 penalty. Taught in 16.2 The Optimizer protocol: SGD, momentum, Nesterov, weight decay
- Covariance: , a measure of linear co-movement; zero does not imply independence. Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- Cramer’s rule: , solving by ratios of determinants; useful by hand, far too slow for large systems. Taught in Chapter 9: Linear Algebra
- critical point: a point where , a candidate for an interior optimum. Taught in 7.5 Calculus 1 Problem Set
- Cross product: for vectors in 3D, is perpendicular to both, with magnitude , the area of the parallelogram they span; it gives normals to planes. Taught in Chapter 10: Calculus 3
- Cross-correlation: sliding a kernel over a signal and taking a dot product at each position, with no flip; what deep learning calls convolution. Taught in 18.1 Convolution as a linear map
- Cross-entropy: , the average surprise when data from are predicted with . Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Cumulative distribution function (CDF): , defined for every random variable, discrete or continuous; it rises from 0 to 1, and for a continuous variable its derivative is the density. Taught in Chapter 13: Probability and Statistics
- DAG: a directed graph with no directed cycle. Taught in 12.1 Graphs, DAGs, and an iterative topological sort
- DAG: a directed graph with no directed cycle; every computation graph is one. Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Data processing inequality: for any function ; processing data, deterministically or randomly, cannot create information about the source. Taught in Chapter 17: Information Theory
- DCT-II: the cosine transform ; orthonormal with the scales . Taught in 18.4 DFT and FFT
- De Morgan’s laws: and , and likewise ; negation swaps union with intersection and OR with AND. Taught in Chapter 11: Discrete Math 1
- Decibel: of a power ratio (or of an amplitude ratio). Taught in 18.6 Mel scale and filterbanks
- Decoupled weight decay: shrinking the weights outside the gradient path, as in SGDW and AdamW. Taught in 16.2 The Optimizer protocol: SGD, momentum, Nesterov, weight decay
- Decoupled weight decay (AdamW): multiplying the weights by outside the gradient path. Taught in 16.3 Adam and AdamW: bias correction and decoupled weight decay
- definite integral: the limit of Riemann sums, the signed area between and the axis. Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- derivative: the limit of the difference quotient as ; the slope of the tangent line. Taught in 7.1 Derivatives and Finite Differences
- Descent direction: a direction with . Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- Determinant: a single number for a square matrix: the factor by which scales signed volume. It is zero exactly when squashes space flat and so cannot be inverted, and . Taught in Chapter 9: Linear Algebra
- DFT: multiplication by , writing samples as coefficients of complex sinusoids. Taught in 18.4 DFT and FFT
- Differential: , an arbitrary small change of ; the first-order change of the loss is . Taught in 14.3 Matrix differentials, the trace trick, and closed-form VJPs
- Dilation: spacing a kernel’s taps samples apart, so a size- kernel spans samples. Taught in 18.1 Convolution as a linear map
- Direct proof: a proof of that assumes , unpacks the definitions, and reasons forward with known results until it reaches . Taught in Chapter 11: Discrete Math 1
- Directed graph: a set of vertices and a set of ordered pairs of vertices called edges. Taught in 12.1 Graphs, DAGs, and an iterative topological sort
- Directional derivative: , the rate of change of along a unit vector . Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Discriminant: , whose sign decides whether a quadratic has two, one, or no real roots. Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Disk method / shell method: formulas for the volume of a solid of revolution; the disk method slices perpendicular to the axis of rotation, and the shell method wraps cylinders around the axis. Taught in Chapter 7: Calculus 1
- Divergence test: if , then diverges; terms shrinking to zero is necessary for convergence but not sufficient. Taught in Chapter 8: Calculus 2
- Divergence theorem: ; the outward flux through a closed surface equals the total divergence inside, so what flows out must be produced within. Taught in Chapter 10: Calculus 3
- Domain and range: the inputs where a function is defined, and the outputs it actually takes. Taught in 6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
- Dot product: ; it measures how much two vectors point the same way, and it is zero exactly when they are perpendicular. Taught in Chapter 10: Calculus 3
- Doubly block Toeplitz matrix: the matrix of a 2-D convolution, with . Taught in 18.1 Convolution as a linear map
- Dual number: a pair with , whose tangent propagates derivatives through arithmetic. Taught in 14.1 Dual numbers and forward-mode autodiff
- E2M1 (FP4): a 4-bit float whose only magnitudes are . Taught in 15.4 FP8 and microscaling formats
- E4M3: an 8-bit float with 4 exponent bits (bias 7) and 3 fraction bits, no infinity, largest finite value 448. Taught in 15.4 FP8 and microscaling formats
- E5M2: an 8-bit float with 5 exponent bits (bias 15) and 2 fraction bits, IEEE-style infinities and NaNs, largest finite value 57344. Taught in 15.4 FP8 and microscaling formats
- E8M0: an 8-bit unsigned power-of-two scale with bias 127, used as the shared scale of an MX block. Taught in 15.4 FP8 and microscaling formats
- ECE: expected calibration error, the count-weighted mean gap between accuracy and confidence over confidence bins. Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Eckart-Young theorem: the truncated SVD is the closest rank- matrix in spectral and Frobenius norm. Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Effective window: , roughly how many recent steps the EMA reflects. Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Eigenvector / eigenvalue: a non-zero and scalar with . Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- EM: expectation-maximization; replace hidden counts by expected counts under the current model, then take the MLE, and repeat. Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- Entropy: , the average surprise of a distribution. Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Envelope: a constant with for all ; von Neumann’s sampler needs one, and its mean cost is tries. Taught in 13.7 Rejection sampling and residual distributions
- Equivalence class: for an equivalence relation on , the set of everything equivalent to ; the classes partition , and every partition defines an equivalence relation. Taught in Chapter 11: Discrete Math 1
- Equivalence relation: a reflexive, symmetric, transitive relation; its classes partition the set. Taught in 11.3.4 Relations, functions, and validation
- Euclidean algorithm / extended Euclidean algorithm: computes by repeating until the remainder is 0; the extended version also returns with , which gives modular inverses. Taught in Chapter 12: Discrete Math 2
- Euler path / Euler circuit: a walk that uses every edge exactly once, closed for a circuit; a connected graph has an Euler circuit exactly when every vertex has even degree, and an Euler path exactly when zero or two vertices have odd degree. Taught in Chapter 12: Discrete Math 2
- Euler’s formula: ; multiplying by it rotates by . Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Exact permutation p-value: the fraction of equally likely relabellings under whose statistic is at least as extreme as observed. Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- Exact top-: scoring every candidate and returning the best, ties to the lowest index. Taught in 9.6 Inner products, projections, cosine similarity, and top-k
- Expectation: the probability-weighted mean of a random variable’s values. Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- Expected value: the average outcome across many repetitions of a situation under the model. Taught in Chapter 4: Uncertainty and evidence
- Exponent: the power in ; zero, negative, and fractional exponents are defined by requiring . Taught in 6.1 Exponents, logarithms, and units of information
- Exponential distribution: the waiting-time distribution with . Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Exponential growth: change by multiplying by the same factor at each step. Taught in Chapter 2: Change and growth
- Exponential moving average: , whose weights are a geometric sequence summing to . Taught in 6.3 Sequences, geometric series, and frequency ladders
- Exponential moving average (EMA): the recursion , a weighted sum with geometric weights. Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Exponential moving average (EMA): a recursive average whose weights decay geometrically with age. Taught in 16.3 Adam and AdamW: bias correction and decoupled weight decay
- Family-wise error rate: the probability of at least one false rejection in a family of tests. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Fan-in / fan-out: the number of inputs feeding one output, and the number of outputs fed by one input. Taught in 13.4 Variance propagation and initialization
- Feasible plan: a plan that satisfies every constraint at once. Taught in Chapter 3: Vectors and constraints
- Fermat’s little theorem: if is prime and does not divide , then ; it reduces large exponents modulo and underlies primality tests and RSA. Taught in Chapter 12: Discrete Math 2
- First derivative test: a critical point is a local maximum if changes from positive to negative at and a local minimum if it changes from negative to positive. Taught in Chapter 7: Calculus 1
- First moment (,
exp_avg): the EMA of the gradient. Taught in 16.3 Adam and AdamW: bias correction and decoupled weight decay - Fisher-Yates shuffle: the uniform shuffle that swaps position with a uniform . Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- Fisher-Yates shuffle: the swap-from-the-end algorithm that produces each of the orders with equal probability. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Fixed point: a value with . Taught in 15.5 Fixed-point iteration and fast inverse square root in C
- Fixed point (of a codec): a code that decodes and re-encodes to the same bits. Taught in 15.7 Low-precision conversions in C
- Floating-point contraction: the compiler fusing
a * b + cinto a single fused multiply-add with one rounding. Taught in 15.6 Polynomial approximation and range reduction: expf in C - FLOPs per token: for the matmul parameters touched plus the parameter-free attention term; three times that for a training step. Taught in 11.1 Counting: parameters, FLOPs, KV bytes, and memory plans
- FNV-1a: a byte hash that xors each byte in and then multiplies by a fixed prime mod . Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- forward difference: , a first-order approximation of . Taught in 7.1 Derivatives and Finite Differences
- Forward mode: automatic differentiation that carries tangents alongside values, costing one pass per input direction. Taught in 14.1 Dual numbers and forward-mode autodiff
- Frobenius norm: , the square root of the sum of squared entries. Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Fubini’s theorem: for continuous on a rectangle, the double integral equals either iterated integral, so you can integrate over first or first and get the same answer. Taught in Chapter 10: Calculus 3
- Full binary tree: a rooted tree in which every node has 0 or 2 children; it has one fewer internal node than leaves. Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Fully masked row: a row of all , defined to give softmax zeros and LSE . Taught in 15.2 Stable numerics: logsumexp, softmax, and compensated sums
- Function: a rule that gives exactly one output for each allowed input. Taught in Chapter 1: Quantities and relationships
- Function: a rule assigning exactly one output to each input in its domain. Taught in 6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
- Fundamental theorem for line integrals: if , then for any path from to , the analogue of the fundamental theorem of calculus for gradient fields. Taught in Chapter 10: Calculus 3
- fundamental theorem of calculus: if , then . Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- fundamental theorem of calculus: for , and . Taught in 7.5 Calculus 1 Problem Set
- Fused cross-entropy: the gradient computed directly from logits. Taught in 14.3 Matrix differentials, the trace trick, and closed-form VJPs
- Gain: a factor on the standard deviation that corrects the initialization for a particular activation. Taught in 13.4 Variance propagation and initialization
- : , a rigorous bound on the relative error accumulated over roundings, valid for . Taught in 15.3 Error analysis, condition numbers, and tolerance budgets
- : , the bound on the relative error accumulated over roundings. Taught in 15.9 Problem set B: condition numbers, error bounds, Newton, polynomial approximation, and low precision
- Gauss-Markov theorem: under linearity, independence, constant error variance, and no perfect multicollinearity, the least-squares estimators have the smallest variance among all linear unbiased estimators. Taught in Chapter 13: Probability and Statistics
- GELU: , the input weighted by the standard normal CDF; its tanh approximation is a different function. Taught in 7.3 Activation Functions and Their Derivatives
- Generating function: the power series whose coefficients are a sequence; algebra on solves counting problems and recurrences. Taught in Chapter 12: Discrete Math 2
- Geometric sequence: a sequence that multiplies by the same ratio at every step, . Taught in 6.3 Sequences, geometric series, and frequency ladders
- Geometric series: , with partial sum and limit for . Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Geometric sum: the sum of the first terms, for and for . Taught in 6.3 Sequences, geometric series, and frequency ladders
- Gibbs’ inequality: , with equality if and only if ; coding data from with a code built for always costs extra bits, so cross-entropy is never below entropy. Taught in Chapter 17: Information Theory
- Global norm: the Euclidean length of all gradients concatenated into one vector. Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Gradient: the collection of all partial derivatives of a scalar function, one per input element, arranged in the input’s shape. Taught in 10.1 Partial derivatives, gradients, and gradcheck
- Gradient: the vector of partial derivatives of a scalar function; it points in the direction of steepest ascent. Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Gradient check: a comparison of an analytic gradient against the numerical one that reports pass or fail and the element furthest past its allowance. Taught in 10.1 Partial derivatives, gradients, and gradcheck
- Gradient clipping: rescaling all gradients by one factor when their global norm exceeds a limit. Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Graph isomorphism: a bijection between the vertex sets of two graphs that preserves adjacency; isomorphic graphs are the same graph drawn or labelled differently. Taught in Chapter 12: Discrete Math 2
- Greatest common divisor (GCD): , the largest integer dividing both and ; has a multiplicative inverse modulo exactly when . Taught in Chapter 12: Discrete Math 2
- Green’s theorem: ; the circulation around a closed plane curve equals the total curl inside the region it bounds. Taught in Chapter 10: Calculus 3
- Groups: splitting input and output channels into blocks that are convolved independently; is depthwise convolution. Taught in 18.1 Convolution as a linear map
- Gumbel distribution: the distribution of , with CDF . Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Gumbel-max trick: sampling from by taking the argmax of logits plus independent Gumbel noise. Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Haar measure: the uniform distribution over orthogonal matrices. Taught in 9.3 Orthogonality, Householder QR, and orthogonal initialization
- Hamilton path / Hamilton circuit: a path that visits every vertex exactly once, closed for a circuit; unlike Euler paths, no simple degree test decides whether one exists. Taught in Chapter 12: Discrete Math 2
- Hamming code: a linear error-correcting code over GF(2); the code adds 3 parity bits to 4 data bits and corrects any single-bit error, as in ECC memory. Taught in Chapter 17: Information Theory
- Hamming distance: the number of positions in which two equal-length codewords differ; a code whose minimum distance is can correct errors. Taught in Chapter 17: Information Theory
- Handshaking lemma: the degrees of a graph’s vertices sum to , because each edge adds 1 to the degree of each endpoint; it follows that the number of odd-degree vertices is even. Taught in Chapter 12: Discrete Math 2
- Heavy-ball momentum: the update , . Taught in 16.2 The Optimizer protocol: SGD, momentum, Nesterov, weight decay
- Hessian: the symmetric matrix of second partial derivatives, whose eigenvalues classify a critical point. Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Hessian-vector product: , the derivative of the gradient along , computed without forming . Taught in 14.4 Hessian-vector products and the recompute-versus-memory schedule
- Holm’s method: a step-down correction that controls the FWER and rejects at least as much as Bonferroni. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Holm’s procedure: a step-down correction that compares the sorted p-values with and stops at the first failure. Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- Horner’s rule: evaluating from the inside out, with multiplications and additions. Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Horner’s rule: evaluating a polynomial as nested multiply-adds from the innermost coefficient out. Taught in 15.6 Polynomial approximation and range reduction: expf in C
- Householder reflection: with , which maps to and fixes the hyperplane orthogonal to . Taught in 9.3 Orthogonality, Householder QR, and orthogonal initialization
- Identity matrix: the square matrix with ones on the diagonal and zeros elsewhere; for every , so it is the “do nothing” transformation and . Taught in Chapter 9: Linear Algebra
- im2col: copying every receptive field into a column, ordered , so a convolution becomes one matmul. Taught in 18.1 Convolution as a linear map
- Image: the set of outputs that actually occur, . Taught in 11.2 Injective, surjective, bijective: the GPT-2 byte map
- Implicit differentiation: differentiating both sides of an equation in and , treating as a function of , then solving for ; it gives slopes of curves such as that are not written as . Taught in Chapter 7: Calculus 1
- Implicit leading bit: the 1 in front of the fraction of a normal float, which is not stored. Taught in 15.8 Problem set A: representation, rounding, and cancellation
- In-degree, out-degree: the number of edges into and out of a node. Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Inclusion-exclusion: counting a union by alternately adding and subtracting the sizes of intersections. Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Independence: two events are independent when knowing one happened does not change the probability of the other. Taught in Chapter 4: Uncertainty and evidence
- indeterminate form: an expression such as or that signals a limit must be rewritten. Taught in 7.5 Calculus 1 Problem Set
- Induction hypothesis: the assumption used to prove . Taught in 11.3.4 Relations, functions, and validation
- Inflection point: a point where changes sign, so the graph switches between curving up (concave up) and curving down (concave down). Taught in Chapter 7: Calculus 1
- Injective: no two inputs share an output; for a dict, no value appears twice. Taught in 11.2 Injective, surjective, bijective: the GPT-2 byte map
- Inner product: . Taught in 9.6 Inner products, projections, cosine similarity, and top-k
- Integer significand: the float32 magnitude written as with an integer . Taught in 15.7 Low-precision conversions in C
- Integral test: if is positive, continuous, and decreasing with , then and converge or diverge together. Taught in Chapter 8: Calculus 2
- Integrating factor: the multiplier that turns the first-order linear ODE into , which can be integrated directly. Taught in Chapter 8: Calculus 2
- Integration by parts: , the product rule in reverse; it integrates products of two kinds of function, such as , and LIATE is a heuristic for choosing . Taught in Chapter 8: Calculus 2
- Integration by substitution / u-substitution: the chain rule in reverse, with ; it turns an integral of a composition into a simpler one, with the bounds changed to and . Taught in Chapter 7: Calculus 1
- Interleaved layout: pairing coordinates as , as in RoFormer and Meta’s Llama code, in contrast to the half layout . Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Intermediate value theorem: if is continuous on and lies between and , then for some in ; a continuous function cannot jump over a value, which is why bisection finds roots. Taught in Chapter 7: Calculus 1
- Interpolation kernel: a function , 1 at 0 and 0 at other integers, that turns samples into a continuous signal via . Taught in 18.3 Resampling and interpolation
- Interquartile range (IQR): , the spread of the middle half of the data between the 25th and 75th percentiles; points more than beyond the quartiles are flagged as outliers in a box plot. Taught in Chapter 13: Probability and Statistics
- Inverse CDF sampling: returning the first id whose cumulative probability exceeds a uniform draw. Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Inverse frequency: RoPE’s rotation speed for pair , in radians per position. Taught in 6.3 Sequences, geometric series, and frequency ladders
- Inverse function: with and . Taught in 6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
- Inverse iteration: power iteration on , finding the eigenvalue nearest the shift . Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- Inverse matrix / invertible matrix: undoes , with ; it exists exactly when , and in practice you solve with a factorization instead of forming it. Taught in Chapter 9: Linear Algebra
- Inverse-CDF sampling: , which turns one uniform into a draw from . Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- IRLS: iteratively reweighted least squares, Newton’s method on the logistic loss, where each step is a weighted least-squares solve with weights . Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Jaccard similarity: . Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Jacobian: the matrix of partial derivatives of a function . Taught in 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- Jacobian: the matrix of partial derivatives of a vector-valued function, . Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Jacobian-vector product (JVP): , the directional derivative of a vector function, computed by one forward-mode pass. Taught in 14.1 Dual numbers and forward-mode autodiff
- Jensen-Shannon divergence: the average KL of and to their mixture; symmetric and bounded by . Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Joint distribution: the table over pairs of values; it determines marginals and conditionals. Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- Joint entropy: , the uncertainty of a pair of random variables taken together; it is at most , with equality when they are independent. Taught in Chapter 17: Information Theory
- JVP (Jacobian-vector product): , the rate of change of the output along ; what forward mode computes. Taught in 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- k3 estimator: with , an unbiased, nonnegative per-sample estimate of . Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Kahn’s algorithm: repeatedly output a node of in-degree 0 and decrement its successors’ in-degrees. Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Kaiming (He) initialization: weight variance (or ), compensating for ReLU zeroing half its inputs. Taught in 13.4 Variance propagation and initialization
- Keys bicubic: the piecewise cubic kernel with parameter ; Pillow uses , PyTorch . Taught in 18.3 Resampling and interpolation
- KL divergence: , the excess cost of predicting with ; nonnegative and asymmetric. Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Kraft’s inequality: the codeword lengths of any prefix-free (or uniquely decodable) binary code satisfy , and any lengths that satisfy it can be realized by a prefix-free code. Taught in Chapter 17: Information Theory
- KV cache: the stored keys and values of earlier tokens, bytes per token. Taught in 11.1 Counting: parameters, FLOPs, KV bytes, and memory plans
- -smooth: having an -Lipschitz gradient, so the function lies below a parabola of curvature (the descent lemma). Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- L’Hôpital’s rule: for or forms, when the latter exists. Taught in 7.5 Calculus 1 Problem Set
- Lagrange multiplier: the scalar in at a constrained optimum. Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Lagrange remainder: the exact error of a Taylor polynomial, for some unknown between and . Taught in 8.1 Taylor series, remainder bounds, and range reduction
- Lanczos3: the windowed sinc on . Taught in 18.3 Resampling and interpolation
- Laplace smoothing: adding one pseudo-count per vocabulary entry, . Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- Law of large numbers: the sample mean converges to the true mean as grows. Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Law of total probability: for a partition of the sample space; it computes a probability by adding up the mutually exclusive ways the event can happen, and it supplies the denominator in Bayes’ rule. Taught in Chapter 13: Probability and Statistics
- LCG: a generator that steps . Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- Leaf: a node with no inputs, such as a parameter or a constant. Taught in 14.2 Scalar reverse mode: the Value graph
- Learning-rate schedule: a function from the step number to the learning rate. Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Least-squares regression: fitting the line that minimizes the sum of squared residuals , with ; it is orthogonal projection onto the column space. Taught in Chapter 13: Probability and Statistics
- Lempel-Ziv compression (LZ77): a family of universal, dictionary-based compressors that replace repeated strings with references to earlier occurrences, adapting to the source without knowing its statistics; it underlies gzip and PNG. Taught in Chapter 17: Information Theory
- Likelihood: , the probability of the observed data as a function of the parameter. Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- limit: the value that approaches as approaches , defined by and . Taught in 7.5 Calculus 1 Problem Set
- Line integral: an integral along a curve ; for a vector field, is the work done by along . Taught in Chapter 10: Calculus 3
- Linear convergence: the error shrinks by a constant factor each step. Taught in 15.9 Problem set B: condition numbers, error bounds, Newton, polynomial approximation, and low precision
- Linear growth: change by adding the same amount at each step. Taught in Chapter 2: Change and growth
- Linear independence: vectors are linearly independent when the only combination equal to zero has every , so none is redundant. Taught in Chapter 9: Linear Algebra
- Linear map: a function between vector spaces with ; once bases are chosen, every linear map is a matrix. Taught in Chapter 9: Linear Algebra
- Linearity of expectation: , which holds even when and are dependent; it is the main tool for analysing randomized algorithms, such as the coupon collector’s expected draws. Taught in Chapter 13: Probability and Statistics
- Little’s law: for any stable system. Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- Load factor: , the average chain length of a hash table. Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- local convergence: convergence guaranteed only from starting points close enough to the root. Taught in 7.2 Newton’s Method
- Log odds ratio: a logistic coefficient; increasing its feature by one multiplies the odds by . Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- Log-likelihood: , the log probability of the observed counts under a distribution . Taught in 13.3 MLE, Laplace, absolute discounting
- Log-mel: Whisper’s features, of the mel spectrogram with a floor, an 8-unit clip, and the map . Taught in 18.6 Mel scale and filterbanks
- Log-sum-exp (LSE): , computed stably as . Taught in 15.2 Stable numerics: logsumexp, softmax, and compensated sums
- log1p: a library function computing accurately for tiny . Taught in 7.3 Activation Functions and Their Derivatives
log1p/expm1: and , computed accurately for small arguments. Taught in 6.3 Sequences, geometric series, and frequency ladders- Logarithm: the inverse of the exponential, exactly when . Taught in 6.1 Exponents, logarithms, and units of information
- Logistic regression: a model in which the log-odds are linear in the features. Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Longest-prefix match: finding the longest key that is a prefix of the text at a given position. Taught in 12.2 Trees and tries, longest-prefix match
- Loop invariant: a statement that holds before a loop, survives each iteration, and with the exit condition implies the result. Taught in 11.3.4 Relations, functions, and validation
- LSH banding: splitting a signature into bands of rows so that pairs agreeing on some whole band become candidates. Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Luma: the weighted sum used as grayscale; Pillow computes it in 16-bit fixed point. Taught in 18.2 Image tensors and layouts
- machine epsilon: , the gap between 1 and the next float64. Taught in 7.1 Derivatives and Finite Differences
- Magic constant:
0x5F3759DF, the offset that turns the bit-pattern logarithm into a first guess for within 3.44%. Taught in 15.5 Fixed-point iteration and fast inverse square root in C - Marginal: the distribution of one variable, obtained by summing the joint over the other. Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- Marginal: a row or column sum of the joint table, normalized to a distribution. Taught in 17.3 Mutual information, PMI, and PPMI
- Mask selection: choosing counted entries with
x[mask]instead of multiplying by the mask. Taught in 17.2 Perplexity, bits per byte, NLL accumulator - Master copy: an fp32 copy of 16-bit weights kept so small updates are not rounded away. Taught in 11.1 Counting: parameters, FLOPs, KV bytes, and memory plans
- Master theorem: for divide-and-conquer recurrences , comparing with gives as , , or , depending on whether the leaves, every level, or the root dominates. Taught in Chapter 12: Discrete Math 2
- Maximal munch: greedy segmentation by repeated longest-prefix match. Taught in 12.2 Trees and tries, longest-prefix match
- Maximum-likelihood estimate: the parameter value that maximizes the (log-)likelihood. Taught in 13.10 Probability problem set, part b: joint distributions, covariance, MLE
- Maximum-likelihood estimate (MLE): the distribution that maximizes the log-likelihood; for counts, the frequency . Taught in 13.3 MLE, Laplace, absolute discounting
- McNemar test: an exact binomial test on the discordant pairs of two classifiers evaluated on the same examples. Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- McNemar’s test: an exact binomial test on the examples two classifiers disagree on. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Mean value theorem: if is continuous on and differentiable on , then for some in ; somewhere the instantaneous rate equals the average rate. Taught in Chapter 7: Calculus 1
- Mel filterbank: a matrix of triangular filters on mel-spaced edges that pools an rfft power spectrum into bands. Taught in 18.6 Mel scale and filterbanks
- Mel scale: a perceptual pitch scale; Slaney’s is linear below 1000 Hz and logarithmic above, HTK’s is . Taught in 18.6 Mel scale and filterbanks
- Memoryless property: , so the remaining wait does not depend on how long you have already waited; the exponential distribution is the only continuous distribution with it, and the geometric the only discrete one. Taught in Chapter 13: Probability and Statistics
- Microscaling (MX): a block format in which a fixed number of low-precision elements share one power-of-two scale. Taught in 15.4 FP8 and microscaling formats
- MinHash: estimating Jaccard similarity by how often the minima of random permutations agree. Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Minimax polynomial: the polynomial of a given degree that minimizes the worst-case error on an interval. Taught in 15.6 Polynomial approximation and range reduction: expf in C
- Mixed tolerance: the pass rule , absolute near zero and relative for large values. Taught in 10.1 Partial derivatives, gradients, and gradcheck
- Model: a simplified description of a situation that keeps the parts needed for a decision and leaves the rest out. Taught in Chapter 1: Quantities and relationships
- -strongly convex: lying above a parabola of curvature at every point. Taught in 16.1 Convexity, smoothness, gradient descent, and Armijo line search
- Multiplication principle: if one task has outcomes and a second has for each of them, the sequence has outcomes; with the addition principle for mutually exclusive cases, it is the basis of all counting. Taught in Chapter 11: Discrete Math 1
- Multiplicative inverse: an with , which exists exactly when . Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Multiplier: the factor applied at each step; a 10 percent increase is a multiplier of 1.1. Taught in Chapter 2: Change and growth
- Multiplier: , the amount of the pivot row subtracted from row ; stored in . Taught in 9.2 Gaussian elimination and LU with partial pivoting
- Mutual information: , the nats that knowing one variable saves about the other. Taught in 17.3 Mutual information, PMI, and PPMI
- MX block scale: a shared power of two that places a block’s largest magnitude in the element format’s top binade. Taught in 15.9 Problem set B: condition numbers, error bounds, Newton, polynomial approximation, and low precision
- Nat: the unit of information for base ; one nat is bits. Taught in 6.1 Exponents, logarithms, and units of information
- Nat: the unit of information with natural logs; one bit is nats. Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Negative log-likelihood (NLL): , the surprise of the true token under the model, in nats. Taught in 17.2 Perplexity, bits per byte, NLL accumulator
- Nesterov momentum: momentum with a look-ahead, stepping along . Taught in 16.2 The Optimizer protocol: SGD, momentum, Nesterov, weight decay
- Newton’s method: the iteration , jumping to the zero of the tangent line. Taught in 7.2 Newton’s Method
- Ney’s discount: the estimate of the absolute discount. Taught in 13.3 MLE, Laplace, absolute discounting
- Noam schedule: , linear rise then inverse-square-root decay. Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Noisy-channel coding theorem: Shannon’s result that for any rate below the channel capacity there exist codes with arbitrarily small error probability, and above capacity there are none; it sets the limit every error-correcting code is measured against. Taught in Chapter 17: Information Theory
- Normal distribution / Gaussian distribution: the bell-shaped density with mean and variance ; about 68%, 95%, and 99.7% of its mass lies within one, two, and three standard deviations of the mean, and the central limit theorem makes it the limit of sample means. Taught in Chapter 13: Probability and Statistics
- Normal equations: , the least-squares optimality condition, which squares the condition number if solved directly. Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Normalization: dividing a vector by its length to get a unit vector. Taught in 9.6 Inner products, projections, cosine similarity, and top-k
- Null hypothesis: the precise “no difference” claim a test tries to reject, here that labels are exchangeable. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Null space / kernel: the vectors a matrix sends to zero, ; a nonzero null space means the map loses information. Taught in Chapter 9: Linear Algebra
- Numerical gradient: an approximation of the gradient by one central difference per element, costing evaluations of . Taught in 10.1 Partial derivatives, gradients, and gradcheck
- Nyquist frequency: , the highest frequency a sample rate can represent. Taught in 18.5 Sampling, Nyquist, windows, and the STFT
- One-sided Jacobi: an SVD algorithm that rotates pairs of columns until all are mutually orthogonal. Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- One-sided limit: or , the limit as approaches from the right or the left only; the two-sided limit exists exactly when both one-sided limits exist and agree. Taught in Chapter 7: Calculus 1
- One-to-one: different inputs always give different outputs; exactly the functions with an inverse. Taught in 6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
op(B): the right operand as the product sees it, eitherBor , selected by a flag rather than a copy. Taught in 9.1 Vectors, matrices, row-major layout, and matmul- Optimal finite-difference step: the step that balances truncation error against rounding error. Taught in 15.3 Error analysis, condition numbers, and tolerance budgets
- Optimizer protocol: the four methods
step,zero_grad,state_dict, andload_state_dictthat every optimizer exposes. Taught in 16.2 The Optimizer protocol: SGD, momentum, Nesterov, weight decay - Ordinary differential equation (ODE): an equation relating a function of one variable to its derivatives, such as ; it models how a system changes, and gradient descent is Euler’s method applied to one. Taught in Chapter 8: Calculus 2
- Orthogonal: having inner product zero. Taught in 9.6 Inner products, projections, cosine similarity, and top-k
- Orthogonal matrix: a square with ; its inverse is its transpose. Taught in 9.3 Orthogonality, Householder QR, and orthogonal initialization
- Orthogonal projection: , the closest point to on the line through . Taught in 9.6 Inner products, projections, cosine similarity, and top-k
- Orthonormal: a set of unit-length vectors that are pairwise orthogonal. Taught in 9.3 Orthogonality, Householder QR, and orthogonal initialization
- Overwrite rule: the convention that
beta == 0means the old output is never read. Taught in 9.1 Vectors, matrices, row-major layout, and matmul
- p-series / harmonic series: , which converges if and only if ; the harmonic series is the case and diverges, growing like , which is why it appears in hashing and coupon-collector analyses. Taught in Chapter 8: Calculus 2
- p-value: the probability under the null of a statistic at least as extreme as the one observed. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Pairwise summation: recursive halving of a sum, with error growing like . Taught in 15.2 Stable numerics: logsumexp, softmax, and compensated sums
- Parametric curve: a curve given by , in terms of a parameter , with slope ; it describes paths that are not graphs of a function. Taught in Chapter 8: Calculus 2
- Parseval’s identity: , a consequence of being unitary. Taught in 18.4 DFT and FFT
- Partial derivative: the ordinary derivative of along one coordinate with every other coordinate frozen. Taught in 10.1 Partial derivatives, gradients, and gradcheck
- Partial fractions: decomposing a rational function with into a sum of simpler fractions over the factors of , each of which integrates to a logarithm or an arctangent. Taught in Chapter 8: Calculus 2
- Partial order: a relation that is reflexive, antisymmetric ( and imply ), and transitive, such as or “is a subset of”; some pairs may be incomparable, which is why dependency graphs need a topological sort. Taught in Chapter 11: Discrete Math 1
- Partial pivoting: swapping the row with the largest absolute entry (among rows and below) into the pivot position before eliminating. Taught in 9.2 Gaussian elimination and LU with partial pivoting
- Patchify: cutting an image into squares, each flattened into a vector of numbers. Taught in 18.2 Image tensors and layouts
- PCG32: an LCG whose output is a permutation (xorshift, then a state-chosen rotation) of the old state. Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- Peak memory: , the most saved layer inputs held at once under a schedule. Taught in 14.4 Hessian-vector products and the recompute-versus-memory schedule
- Pearlmutter’s -operator: forward mode applied over reverse mode, giving an exact at the cost of about two gradients. Taught in 14.4 Hessian-vector products and the recompute-versus-memory schedule
- Percentile bootstrap: an interval from the quantiles of a statistic recomputed on resamples drawn with replacement. Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Perfect secrecy: a cipher has it when , so the ciphertext reveals nothing about the message; the one-time pad achieves it, and Shannon showed it requires a key at least as long as the message. Taught in Chapter 17: Information Theory
- Periodic Hann window: , one period of a cosine of the DFT length. Taught in 18.5 Sampling, Nyquist, windows, and the STFT
- Permutation matrix: the identity with its rows reordered; orthogonal, with . Taught in 9.2 Gaussian elimination and LU with partial pivoting
- Permutation test: a test whose null distribution comes from relabelling the data in ways the null says are harmless. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Perplexity: , the geometric mean of ; the effective number of choices per token. Taught in 17.2 Perplexity, bits per byte, NLL accumulator
- Pigeonhole principle: inputs cannot produce more than distinct outputs, so for equal sizes injective and surjective coincide. Taught in 11.2 Injective, surjective, bijective: the GPT-2 byte map
- Pivot: the diagonal entry that elimination divides by in column . Taught in 9.2 Gaussian elimination and LU with partial pivoting
- Planar graph: a graph that can be drawn in the plane with no edges crossing; connected planar graphs satisfy Euler’s formula , which bounds their edges by . Taught in Chapter 12: Discrete Math 2
- Pointwise mutual information (PMI): for a single pair; positive above chance, for unseen pairs. Taught in 17.3 Mutual information, PMI, and PPMI
- Poisson distribution: the count of events in a fixed interval when they occur independently at rate , with and mean and variance both ; it models arrivals at queues and servers. Taught in Chapter 13: Probability and Statistics
- Poisson process: events with independent exponential gaps; the count in a window of length is Poisson with mean . Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Polar coordinates: describing a point by its distance from the origin and angle , with and ; a polar curve sweeps area . Taught in Chapter 8: Calculus 2
- Polynomial: , stored in this book as its coefficient list in ascending order of power. Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Polyphase filter bank: one filter per output phase, applied with a stride equal to the input period. Taught in 18.3 Resampling and interpolation
- Post-order: the order in which a depth-first search finishes vertices. Taught in 12.1 Graphs, DAGs, and an iterative topological sort
- Power: the probability of rejecting the null when the effect is real. Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Power iteration: repeated multiplication and normalization, converging to the dominant eigenvector. Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- Power of two choices: sampling two bins and joining the emptier, which cuts the maximum load from to . Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- Power rule: , the derivative of a power, and with linearity the derivative of any polynomial. Taught in Chapter 7: Calculus 1
- Power series: a series in powers of ; it converges for less than its radius of convergence and can diverge beyond it. Taught in Chapter 8: Calculus 2
- Power set: the set of all subsets of ; it has elements because each element is independently in or out of a subset. Taught in Chapter 11: Discrete Math 1
- PPMI: , a finite, sparse, non-negative matrix suitable for SVD. Taught in 17.3 Mutual information, PMI, and PPMI
- Precision: , the fraction of flags that are right; unlike sensitivity it depends on the base rate. Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- Probability: a number between 0 and 1 describing how likely an outcome is under a model. Taught in Chapter 4: Uncertainty and evidence
- Probability axioms: non-negativity, , and countable additivity over disjoint events; every other rule is derived from them. Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- Probability density function (PDF): for a continuous random variable, a function that integrates to 1, with ; a density value is not itself a probability. Taught in Chapter 13: Probability and Statistics
- Probability mass function (PMF): for a discrete random variable, the function giving the probability of each value; the values are nonnegative and sum to 1. Taught in Chapter 13: Probability and Statistics
- Product rule / quotient rule: and , the rules for differentiating a product or a ratio of two functions. Taught in Chapter 7: Calculus 1
- Proof by contradiction: a proof that assumes the statement is false and derives an impossibility, so the statement must be true; it is the standard route to results such as the irrationality of . Taught in Chapter 11: Discrete Math 1
- QR algorithm: the iteration , converging to block upper triangular (real Schur) form. Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- quadratic convergence: , so correct digits double each step. Taught in 7.2 Newton’s Method
- Quadratic convergence: convergence in which the error is squared each step, so correct digits double; it happens when . Taught in 15.5 Fixed-point iteration and fast inverse square root in C
- Quadratic convergence: the error is proportional to the square of the previous error, so correct digits double. Taught in 15.9 Problem set B: condition numbers, error bounds, Newton, polynomial approximation, and low precision
- quadrature: numerical computation of a definite integral. Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- Quantity: something you can measure or count, together with its unit. Taught in Chapter 1: Quantities and relationships
- Quantum: the spacing between adjacent representable values of the destination format in the binade of the input. Taught in 15.7 Low-precision conversions in C
- Radian: the measure of an angle as the distance walked along the unit circle; a full turn is . Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Radix: the factor by which one FFT level splits the length. Taught in 18.4 DFT and FFT
- Random variable: a number assigned to each outcome of a random experiment; a discrete one is a table of values and probabilities. Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- Range reduction: rewriting so the polynomial only ever sees a small argument . Taught in 8.1 Taylor series, remainder bounds, and range reduction
- Range reduction: rewriting so that the polynomial only needs to be accurate on a small interval around 0. Taught in 15.6 Polynomial approximation and range reduction: expf in C
- Rank-nullity theorem: ; every input dimension either collapses to zero or survives. Taught in Chapter 9: Linear Algebra
- Rate of change: how much the output changes per unit change in the input; for it is 4 per person. Taught in Chapter 2: Change and growth
- Rate-distortion function: , the fewest bits per symbol needed to describe a source when the reconstruction may have average distortion up to ; it frames lossy compression and the bits-for-error tradeoff of quantization. Taught in Chapter 17: Information Theory
- Ratio test: if successive term ratios eventually stay below some , the series converges. Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Rayleigh quotient: for a unit vector ; the signed eigenvalue estimate. Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- Recurrence: a definition of a sequence in terms of its earlier terms. Taught in 12.5 Discrete math 2 problem set, part b: trees, birthday bounds, MinHash and LSH, Bloom filters, recurrences
- Reduced QR: with of shape and of shape , . Taught in 9.3 Orthogonality, Householder QR, and orthogonal initialization
- Reflected operator: a method such as
__rsub__that Python calls when the left operand does not handle the operation. Taught in 14.1 Dual numbers and forward-mode autodiff - Rejection sampling: discarding draws below so that
r % nis unbiased. Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python - Rejection sampling: drawing from a proposal and accepting each draw with a probability chosen so that accepted draws follow the target . Taught in 13.7 Rejection sampling and residual distributions
- related rates: rates of change tied together by differentiating a constraint in time. Taught in 7.5 Calculus 1 Problem Set
- relative accuracy: the number of correct significant digits, which subtraction of nearly equal numbers destroys. Taught in 7.3 Activation Functions and Their Derivatives
- Relative condition number: , the factor by which amplifies relative input errors. Taught in 15.9 Problem set B: condition numbers, error bounds, Newton, polynomial approximation, and low precision
- relative stopping test: . Taught in 7.2 Newton’s Method
- Residual distribution: , the normalized mass that acceptance leaves missing from . Taught in 13.7 Rejection sampling and residual distributions
- Residual stream: the running sum a Transformer block adds its attention and MLP outputs to. Taught in 13.4 Variance propagation and initialization
- Reverse mode: automatic differentiation that records the computation and walks it backward once from the output, pushing adjoints into inputs. Taught in 14.2 Scalar reverse mode: the Value graph
- Reverse topological order: an ordering in which every node comes before the nodes it was computed from. Taught in 14.2 Scalar reverse mode: the Value graph
- Richardson extrapolation: combining differences at with weights to cancel successive even powers of . Taught in 7.1 Derivatives and Finite Differences
- Riemann sum: , the sum of thin rectangles under . Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- ROC curve: the staircase of (FPR, TPR) pairs traced as the decision threshold falls through every distinct score. Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Romberg integration: repeated Richardson extrapolation of the trapezoid rule. Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- Root: a number with ; by the factor theorem, then divides . Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- root: a number with . Taught in 7.2 Newton’s Method
- Root, parent, child, leaf: the chosen start node, the next node toward the root, the nodes a node is parent of, and a node with no children. Taught in 12.2 Trees and tries, longest-prefix match
- Rotation: a shift that moves the bits falling off one end back in at the other. Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Rotation matrix: , whose columns are the images of the basis vectors. Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Round to nearest, ties to even: IEEE 754’s default rounding, which breaks exact ties toward the code whose last kept bit is 0. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- rounding error: the error from floating-point rounding, about in a difference quotient. Taught in 7.1 Derivatives and Finite Differences
- Row-major layout: storage in which each row of a matrix is contiguous in memory. Taught in 9.1 Vectors, matrices, row-major layout, and matmul
- RSA: a public-key cryptosystem with modulus for primes , public exponent , and private exponent ; encryption is and decryption , and its security rests on the difficulty of factoring . Taught in Chapter 12: Discrete Math 2
rstd: the saved reciprocal standard deviation of a row, reused by the normalization VJPs. Taught in 14.3 Matrix differentials, the trace trick, and closed-form VJPs
- Sample space: the set of all possible outcomes of an experiment; an event is a subset of , and probability assigns each event a number between 0 and 1. Taught in Chapter 13: Probability and Statistics
- Saturation: mapping finite overflow to the largest finite code instead of infinity or NaN. Taught in 15.4 FP8 and microscaling formats
- Saturation: clamping finite overflow to the largest finite code, as both FP8 formats do. Taught in 15.7 Low-precision conversions in C
- Schröder-Bernstein theorem: if there are injections and , there is a bijection between and ; if each set fits inside the other, they have the same size. Taught in Chapter 11: Discrete Math 1
- Second derivative test: at a critical point with , means a local maximum and a local minimum; when the test is inconclusive. Taught in Chapter 7: Calculus 1
- Second derivative test (two variables): at a critical point, , the determinant of the Hessian, gives a local minimum if and , a local maximum if and , and a saddle if . Taught in Chapter 10: Calculus 3
- Second moment (,
exp_avg_sq): the EMA of the elementwise squared gradient. Taught in 16.3 Adam and AdamW: bias correction and decoupled weight decay - Seed: the tangent given to the inputs before evaluation (1 for a derivative, for a JVP). Taught in 14.1 Dual numbers and forward-mode autodiff
- Seed: the initial adjoint set on the output before the walk. Taught in 14.2 Scalar reverse mode: the Value graph
- Segment: a run of consecutive layers that is recomputed from its saved input during backward. Taught in 14.4 Hessian-vector products and the recompute-versus-memory schedule
- Separable differential equation: an ODE of the form , solved by moving all terms to one side, , and integrating both sides. Taught in Chapter 8: Calculus 2
- Series: the sequence of partial sums of a sequence. Taught in 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Set: an unordered collection of distinct elements. Taught in 11.3.4 Relations, functions, and validation
- Shift invariance: softmax is unchanged when the same constant is added to every logit. Taught in 15.2 Stable numerics: logsumexp, softmax, and compensated sums
- sigmoid: , mapping the real line into , with . Taught in 7.3 Activation Functions and Their Derivatives
- Sign rule: flipping signs so that , which makes the factorization unique. Taught in 9.3 Orthogonality, Householder QR, and orthogonal initialization
- SiLU (swish): , the gate inside SwiGLU. Taught in 7.3 Activation Functions and Their Derivatives
- Similarity transform: for orthogonal , which preserves eigenvalues. Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- simple root: a root where , so the graph crosses zero at an angle. Taught in 7.2 Newton’s Method
- Simpson’s rule: fitting a parabola through each three points; fourth order, exact on cubics, needs an even number of steps. Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- Singular value decomposition: with orthonormal , and non-negative descending . Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Slaney normalization: scaling each triangle by so it has unit area in Hz. Taught in 18.6 Mel scale and filterbanks
- softplus: , a smooth relu whose derivative is . Taught in 7.3 Activation Functions and Their Derivatives
- Source coding theorem: the average length of an optimal uniquely decodable code satisfies , so entropy is the limit of lossless compression. Taught in Chapter 17: Information Theory
- Spectral leakage: energy from a tone spreading into many DFT bins because the frame does not hold a whole number of periods. Taught in 18.5 Sampling, Nyquist, windows, and the STFT
- Spectral norm: , the largest stretch of a unit vector. Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Spectral radius: . Taught in 9.4 Eigenvalues, power iteration, and the spectral radius
- SplitMix64: the mixer used to derive child seeds that depend only on the seed and the purpose. Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- Squeeze theorem: if near and , then ; it settles limits such as that substitution cannot. Taught in Chapter 7: Calculus 1
- Stable quadratic formula: with roots and , which never subtracts nearly equal numbers. Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Standard deviation: , the typical distance of a random variable from its mean, in the same units as the variable itself. Taught in Chapter 13: Probability and Statistics
- Standard error: , the estimated standard deviation of the sample mean. Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Standard error: , the standard deviation of a sample mean. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- Standard normal: the distribution with density . Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- Stars and bars: the number of ways to distribute identical objects into distinct bins is , counted as arrangements of stars and dividers in a row. Taught in Chapter 11: Discrete Math 1
- Sterbenz’s lemma: if two floats are within a factor of 2 of each other, their difference is exact. Taught in 15.6 Polynomial approximation and range reduction: expf in C
- STFT: the DFT of overlapping windowed frames, giving a spectrum per time step. Taught in 18.5 Sampling, Nyquist, windows, and the STFT
- Stochastic gradient: a minibatch estimate of the full-loss gradient, unbiased for the average. Taught in 16.2 The Optimizer protocol: SGD, momentum, Nesterov, weight decay
- Stokes’ theorem: ; the circulation of around a closed curve equals the flux of its curl through any surface bounded by that curve, generalizing Green’s theorem to 3D. Taught in Chapter 10: Calculus 3
- Stream: one of sequences selected by the odd increment
inc. Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python - Strict aliasing: the C rule that forbids reading an object through a pointer of an unrelated type;
memcpyis the defined way to view a float’s bits. Taught in 15.5 Fixed-point iteration and fast inverse square root in C - Strictly monotonic: always increasing or always decreasing, and therefore one-to-one. Taught in 6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
- Stride: the number of bytes between consecutive elements along one axis of an array view; the row stride can exceed
k * itemsize. Taught in 9.1 Vectors, matrices, row-major layout, and matmul - Stride: the number of bytes to step in memory to advance one index along an axis. Taught in 18.2 Image tensors and layouts
- Strong induction: induction in which the step assumes for every from the base case up to , not just , before proving ; it fits claims where a case depends on several earlier ones. Taught in Chapter 11: Discrete Math 1
- Structural induction: induction over a recursively defined structure such as a list, tree, or formula: prove the property for the base structures, then show that each construction rule preserves it. Taught in Chapter 11: Discrete Math 1
- Student’s t distribution: the distribution of for normal data, with degrees of freedom. Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Subnormal: a value with exponent field 0, no implicit leading 1, and a fixed exponent , filling the gap between zero and the smallest normal. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- Substitution: using one equation to replace a quantity in another, such as . Taught in Chapter 3: Vectors and constraints
- Surjective onto : every element of is the output of some input; the image equals . Taught in 11.2 Injective, surjective, bijective: the GPT-2 byte map
- Surprisal (information content): , the information carried by an outcome of probability . Taught in 6.1 Exponents, logarithms, and units of information
- Surprise: , the information carried by an outcome of probability . Taught in 17.1 Entropy, cross-entropy, KL, JS, and the k3 estimator
- Sweep: one pass of Jacobi rotations over every column pair . Taught in 9.5 SVD, Eckart-Young low rank, and least squares
- Tail bound: an upper bound on the sum of the omitted terms of a series, here a geometric series. Taught in 8.1 Taylor series, remainder bounds, and range reduction
- Tangent: a direction in input space along which the input is moved. Taught in 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- Tangent: the coefficient of a dual number; the derivative of the value along the seeded direction. Taught in 14.1 Dual numbers and forward-mode autodiff
- Tangent plane: the plane that best approximates the surface near a point, the two-variable analogue of the tangent line. Taught in Chapter 10: Calculus 3
- Taylor polynomial: the degree- polynomial whose value and first derivatives at a point match those of . Taught in 8.1 Taylor series, remainder bounds, and range reduction
- Taylor series: the power series built from the derivatives of at ; truncating it gives the polynomials that libraries use to compute , , and . Taught in Chapter 8: Calculus 2
- Temperature scaling: dividing logits by one fitted scalar to fix over- or underconfidence without changing the argmax. Taught in 13.8 Logistic regression (IRLS), ROC-AUC, calibration (ECE)
- Terminal node: a trie node whose string is a key; it stores the key’s value. Taught in 12.2 Trees and tries, longest-prefix match
- Tied embeddings: a model whose lm_head reuses the token embedding matrix, storing no extra parameters but still doing the product. Taught in 11.1 Counting: parameters, FLOPs, KV bytes, and memory plans
- Tolerance budget: a test allowance that sums every deliberate perturbation and the rounding bound, and nothing else. Taught in 15.3 Error analysis, condition numbers, and tolerance budgets
- top_db: the dynamic range kept below the maximum; quieter values are raised to the maximum minus
top_db. Taught in 18.6 Mel scale and filterbanks - Topological order: a list of the vertices in which every edge points from an earlier vertex to a later one. Taught in 12.1 Graphs, DAGs, and an iterative topological sort
- Topological order: a listing of the nodes in which every edge goes forward. Taught in 12.4 Discrete math 2 problem set, part a: DAGs, modular arithmetic, hashing
- Total variation distance: ; it satisfies . Taught in 13.7 Rejection sampling and residual distributions
- Trace trick: rewriting with the cyclic property of the trace until it reads . Taught in 14.3 Matrix differentials, the trace trick, and closed-form VJPs
- trapezoid rule: joining neighboring points by straight lines; second order, exact on lines. Taught in 7.4 Definite Integrals: Trapezoid and Simpson
- Tree: a connected graph with no cycle; with nodes it has edges. Taught in 12.2 Trees and tries, longest-prefix match
- Trie: a rooted tree whose edges carry characters so that each node spells the string on its path. Taught in 12.2 Trees and tries, longest-prefix match
- Trigonometric substitution: replacing by , , or to remove a square root of the form , , or from an integrand. Taught in Chapter 8: Calculus 2
- truncation error: the error from dropping the higher terms of the Taylor series. Taught in 7.1 Derivatives and Finite Differences
- Twiddle factor: the phase that aligns subsequence transforms before the final size- DFT. Taught in 18.4 DFT and FFT
- Two-pass variance: computing the mean first, then the weighted sum of squared deviations from it. Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- Type 7 quantile: linear interpolation at position of the sorted data, numpy’s default. Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Type 7 quantile: the linearly interpolated quantile with , numpy’s default. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- Type-I error: rejecting a true null hypothesis; a valid test does so at rate at most . Taught in 13.6 Hypothesis tests: paired and two-sample permutation, McNemar, Holm
- Type-II error: failing to reject a null hypothesis that is false; its probability is , and is the power of the test. Taught in Chapter 13: Probability and Statistics
- ulp: unit in the last place, the gap from to the next larger representable magnitude. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- Unbroadcast: summing a gradient over the axes along which the forward pass broadcast an input, to recover that input’s shape. Taught in 14.3 Matrix differentials, the trace trick, and closed-form VJPs
- Unit circle: the circle of radius 1 about the origin; the point at angle is . Taught in 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Unit lower triangular: lower triangular with ones on the diagonal. Taught in 9.2 Gaussian elimination and LU with partial pivoting
- Unit roundoff: , the largest relative error of a single round-to-nearest. Taught in 15.1 IEEE 754 anatomy, ulps, and round to nearest even
- Unit roundoff: , the largest relative error of one rounding; half of machine epsilon. Taught in 15.3 Error analysis, condition numbers, and tolerance budgets
- Unit roundoff: the largest relative error of one rounding, half the gap at 1. Taught in 15.8 Problem set A: representation, rounding, and cancellation
- Universal family: a random choice of hash function under which any two distinct keys collide with probability at most . Taught in 12.3 Modular arithmetic, hashing, and PCG32 in Python
- Universal quantifier / existential quantifier: asserts for every in the domain, and for at least one; negating a statement flips each quantifier, . Taught in Chapter 11: Discrete Math 1
- Upstream gradient: , the gradient arriving at an op’s output. Taught in 14.3 Matrix differentials, the trace trick, and closed-form VJPs
- Utilization: , the fraction of time a server is busy. Taught in 13.12 Probability problem set, part d: hypothesis tests, regression, queueing, balls into bins
- Variance: the expected squared distance from the mean; its square root is the standard deviation. Taught in 13.1 Random variables, expectation, variance, and normal draws by Box-Muller
- Variance: ; it scales by and adds over independent sums. Taught in 13.9 Probability problem set, part a: axioms, Bayes, random variables, Box-Muller
- Variance propagation: tracking how carries a signal’s size from layer to layer. Taught in 13.4 Variance propagation and initialization
- Vector: an ordered collection of numbers, such as . Taught in Chapter 3: Vectors and constraints
- Vector field: a function that assigns a vector to every point, such as a velocity or force field; the gradient of a scalar function is one. Taught in Chapter 10: Calculus 3
- Vector-Jacobian product (VJP): , one step of reverse-mode differentiation. Taught in 10.3 Calculus 3 problem set: vectors, gradients, the chain rule, Hessians, multiple integrals, Lagrange
- Vector-Jacobian product (VJP): , what one backward pass from leaves in the leaves. Taught in 14.2 Scalar reverse mode: the Value graph
- Vector-valued function: a function that traces a curve in space; its derivative is the tangent (velocity) vector, and is arc length. Taught in Chapter 10: Calculus 3
- Vieta’s formulas: and . Taught in 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- View: an array that shares storage with another, reinterpreted through its own shape and strides. Taught in 9.1 Vectors, matrices, row-major layout, and matmul
- View: an array that shares memory with another and differs only in shape, strides, or offset. Taught in 18.2 Image tensors and layouts
- VJP (vector-Jacobian product): , the gradient of ; what reverse mode computes. Taught in 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- Vose’s algorithm: an construction of the alias table using small and large worklists. Taught in 13.2 Categorical sampling: inverse CDF, Gumbel-max, alias method
- Warmup: a linear ramp from 0 to the peak rate over the first steps. Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Warmup-stable-decay (WSD): warmup, a long constant phase at the peak, and a short final decay. Taught in 16.4 Learning-rate schedules (cosine, WSD, Noam) and gradient clipping
- Weak law of large numbers: the sample mean converges in probability to the true mean. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- Well-ordering principle: every nonempty set of natural numbers has a least element; it is logically equivalent to induction, since a failed induction would have a smallest counterexample. Taught in Chapter 11: Discrete Math 1
- White, gray, black: the DFS states not seen, on the current path, and finished; meeting a gray vertex means a cycle. Taught in 12.1 Graphs, DAGs, and an iterative topological sort
- Wilson interval: a proportion interval obtained by inverting the normal test, never empty and always inside . Taught in 13.5 LLN, CLT, confidence intervals, bootstrap
- Wilson interval: a confidence interval for a proportion that stays sensible at 0 or successes. Taught in 13.11 Probability problem set, part c: limit theorems and confidence intervals
- Xavier (Glorot) initialization: weight variance , for activations that are linear near 0. Taught in 13.4 Variance propagation and initialization