AI Base

Math glossary

441 key terms, each in one sentence, with the lesson that teaches it.

ABCDEFGHIJKLMNOPQRSTUVWXYZ

A

Absolute value
a number's distance from zero.
Rounding, Absolute Value and Modulo
Activation function
a non-linear function applied inside a network.
Functions AI Loves
Active constraint
one that holds with equality at the solution.
Constraints and Lagrange Multipliers
Adam
an optimiser with momentum and per-parameter step sizes.
Momentum and Adam
Adaptive learning rate
a step size adjusted per parameter.
Momentum and Adam
Addition rule
either-or choices add.
Counting Rules
P(A or B) = P(A) + P(B) − P(A and B).
Probability Rules
Adjacency matrix
a table showing which nodes are joined.
Graphs and Networks
Amplitude
a wave's peak height.
Sine, Cosine and the Unit Circle
Angle
a measure of turn.
Angles and Radians
the turn from one vector to the other.
Cosine Similarity
Antiderivative
a function whose derivative is the given one.
Integrals
Approximate nearest neighbour
fast, slightly inexact search.
Embeddings and Similarity Search
Arc length
the length of the curve cut off by an angle.
Angles and Radians
Area
the size of a flat region.
Areas, Volumes and Scaling
Associative
regrouping does not change the result.
Order of Operations and Properties
Asymptote
a value approached at infinity.
Limits
Attention weights
the softmax of scaled query–key dot products.
Attention as Dot Products
Average rate of change
change in output over change in input.
Rate of Change

B

Backpropagation
the chain rule applied through a network.
Chain Rule
applying the chain rule backwards through a network.
Backpropagation by Hand
Backward pass
propagating derivatives from output to inputs.
Automatic Differentiation
Base
the number being multiplied.
Exponents and Roots
the number being raised to a power.
Logarithms
Base rate
how common the hypothesis is overall.
Bayes Theorem
Basis
independent vectors that span the space.
Linear Independence and Basis
Batch
many inputs multiplied at once.
Matrix Multiplication
Batch size
the number of examples per step.
Stochastic Gradient Descent
Bayes' theorem
P(H | E) = P(E | H) P(H) / P(E).
Bayes Theorem
Bayesian
probability as a degree of belief.
Bayesian vs Frequentist
Bernoulli trial
one experiment with two outcomes.
Discrete Distributions
Bias
the average error of an estimator.
Estimation and Bias
the constant added in each layer.
A Forward Pass by Hand
the systematic error from a model that is too simple.
Bias, Variance and the Whole Picture
Bias correction
rescaling early running averages.
Momentum and Adam
Bias–variance trade-off
the tension between the two as flexibility changes.
Bias, Variance and the Whole Picture
Big-O
an upper bound on how cost grows with n.
Growth Rates and Big-O
Binary tree
each node has at most two children.
Trees and Hierarchies
Binomial coefficient
C(n, k), "n choose k".
Permutations and Combinations
Binomial distribution
the number of successes in n independent trials.
Discrete Distributions
Bit
the information in one fair yes/no answer.
Surprise and Information
a unit of information (log base 2).
Entropy
Bonferroni correction
dividing α by the number of tests.
Common Test Mistakes
Both sides
the rule that any move must apply to each side.
Equations and Solving
Box plot
a picture of the quartiles and outliers.
Data Distributions and Outliers
Broadcasting
stretching size-1 dimensions to fit.
Tensors and Shapes

C

Catastrophic cancellation
losing digits by subtracting nearly equal numbers.
Numerical Stability
Causation
one thing bringing about another.
Correlation vs Causation
Central limit theorem
sample means become normal as n grows.
Central Limit Theorem
Chain rule
the derivative of a composition is a product of derivatives.
Chain Rule
H(X, Y) = H(X) + H(Y | X).
Joint and Conditional Entropy
Chain rule of probability
P(x, y) = P(x) P(y | x).
Joint and Marginal Distributions
Change of base
converting between logarithm bases.
Logarithms
Characteristic equation
det(A − λI) = 0.
Eigenvalues and Eigenvectors
Closed-form solution
an exact formula for the best parameters.
Linear Regression End to End
Coefficient
the number multiplying a variable.
Variables and Expressions
the scalar multiplying a vector.
Linear Combinations and Span
Coefficient matrix
the matrix A in A x = b.
Solving Linear Systems
Column
where a basis vector lands.
Matrices as Transformations
Combination
an unordered selection.
Permutations and Combinations
Combinatorial explosion
counts growing too fast to enumerate.
Counting Rules
exponential growth in the number of options.
Growth Rates and Big-O
Common difference / ratio
the fixed step or factor.
Sequences and Series
Commutative
the order of two operands does not change the result.
Order of Operations and Properties
Complement
elements not in the set.
Sets and Operations
the event that A does not happen.
Probability Rules
Component
one number in a vector.
Scalars and Vectors
Composite function
a function built by chaining others.
Chain Rule
Composition
applying one function after another, g(f(x)).
Composition and Inverses
Computational graph
operations and values drawn as a graph.
Automatic Differentiation
Concave up / down
curving like a bowl / a hill.
Higher Derivatives and Curvature
Concentration of distances
distances between points becoming nearly equal.
Geometry in Many Dimensions
Condition / given
what is assumed to have happened.
Conditional Probability
Condition number
the ratio of largest to smallest eigenvalue.
Hessian
Condition number (κ)
the ratio of largest to smallest stretch of a matrix.
Conditioning
Conditional distribution
a variable's distribution given another's value.
Joint and Marginal Distributions
Conditional entropy
the uncertainty left in one after knowing another.
Joint and Conditional Entropy
Conditional probability
P(A | B), the probability of A given B.
Conditional Probability
Confidence interval
a range from a procedure that captures the truth a stated share of the time.
Confidence Intervals
Confidence level
that share, such as 95%.
Confidence Intervals
Confounder
a hidden common cause.
Correlation vs Causation
Conjugate prior
a prior that keeps the posterior in the same family (Beta for coins).
Bayesian vs Frequentist
Connective
AND, OR, NOT, XOR or IF-THEN.
Logic and Truth Tables
Consistent / inconsistent
having / lacking a solution.
Solving Linear Systems
Constraint
a condition the solution must satisfy.
Constraints and Lagrange Multipliers
Continuous
no jump or hole at the point.
Continuity
Contour line
a path of constant function value.
Gradients
Convergence
getting arbitrarily close.
Law of Large Numbers
settling near a minimum.
Gradient Descent
Convex function
a chord never lies below the curve.
Convex vs Non-Convex
Coordinates
numbers locating a point.
Coordinates and Distance
the coefficients of a vector in a basis.
Linear Independence and Basis
Corner
a point of sudden slope change.
Continuity
Correlation
a tendency to move together.
Correlation vs Causation
Correlation coefficient (r)
covariance scaled to −1 to 1.
Covariance and Correlation
Cosine similarity
the cosine of the angle between two vectors.
Cosine Similarity
Counterexample
a case that breaks a "for all" claim.
Reading Proofs and Quantifiers
Covariance
the average product of the two variables' deviations.
Covariance and Correlation
Covariance matrix
a table of all pairwise covariances.
Covariance and Correlation
Critical point
a point where the derivative is zero.
Derivatives
where the gradient is zero.
Gradients
Cross-entropy
the average surprise using prediction q when reality is p.
Cross-Entropy
Cross-entropy loss
the negative log of the true class's probability.
Softmax and Cross-Entropy in Practice
Cross-validation
rotating the held-out part.
Overfitting in Statistics
Curse of dimensionality
the problems that arise as dimension grows.
Geometry in Many Dimensions
Curvature
how quickly the slope changes.
Higher Derivatives and Curvature

D

De Morgan's laws
the rules for negating AND and OR.
Logic and Truth Tables
Decimal
a number written with digits after a point.
Fractions, Ratios and Percentages
Decision boundary
where the predicted probability is 0.5.
Logistic Regression and the Sigmoid
Degree
1/360 of a full turn.
Angles and Radians
the number of edges at a node.
Graphs and Networks
Density
a curve whose area gives probability.
Continuous Distributions
Dependent
not independent.
Independence
Depth
the number of edges from the root.
Trees and Hierarchies
Derivative
the instantaneous rate of change; the slope of the tangent.
Derivatives
Determinant
the signed factor by which a matrix scales area or volume.
Determinant
Determined
fixed exactly by another variable.
Joint and Conditional Entropy
Difference vector
the arrow from one point to another.
Vector Operations
Dimension
the number of coordinates describing a point.
Geometry in Many Dimensions
the number of components.
Scalars and Vectors
the number of vectors in a basis.
Linear Independence and Basis
Discontinuity
a point where continuity fails.
Continuity
Discrete / continuous
separate values / any value in a range.
Random Variables
Discriminant
b² − 4ac, which counts the real roots.
Polynomials and Quadratics
Distribution
the pattern of how likely each value is.
Random Variables
Distributive property
a(b + c) = ab + ac.
Order of Operations and Properties
Divergence
a non-negative measure of difference that need not be symmetric.
KL Divergence
the loss growing instead of shrinking.
Learning Rate
Domain
the allowed inputs.
Functions
Dot product
the sum of products of matching components.
Dot Product
Doubling time / half-life
steps to double or halve.
Exponential and Logarithmic Functions

E

e
the natural base, about 2.71828.
Exponential and Logarithmic Functions
E-notation
the same thing written aeN.
Scientific Notation and Scale
Eigenvalue
the scaling factor along an eigenvector.
Eigenvalues and Eigenvectors
Eigenvector
a direction only scaled by a matrix.
Eigenvalues and Eigenvectors
Element-wise product
multiplying matching components.
Vector Operations
Elimination
cancelling unknowns by combining equations.
Solving Linear Systems
Embedding
a vector representing a word, image or item.
Cosine Similarity
a learned vector representing an item.
Embeddings and Similarity Search
Entropy
the average surprise of a distribution.
Entropy
Epoch
one full pass through the data.
Stochastic Gradient Descent
Equally likely
each outcome having the same probability.
Events and Sample Spaces
Equation
a statement that two expressions are equal.
Equations and Solving
Equivalent
having identical truth tables.
Logic and Truth Tables
Estimate
an approximate answer good enough for a purpose.
Estimation and Sanity Checks
Estimator
a rule for estimating an unknown from data.
Estimation and Bias
Euclidean distance
straight-line distance.
Coordinates and Distance
Event
a subset of the sample space.
Events and Sample Spaces
Expectation (mean)
the probability-weighted average.
Expectation
Expected value
another name for the expectation.
Expectation
Explained variance
the share of total variance a component holds.
SVD and PCA
Exponent
here, the power of ten that sets the scale.
Scientific Notation and Scale
Exponent (power)
the number of times a base is multiplied by itself.
Exponents and Roots
Exponential distribution
waiting times with a constant rate.
Continuous Distributions
Exponential function
a·bᵗ, multiplying by a fixed factor each step.
Exponential and Logarithmic Functions
Expression
numbers, variables and operations combined.
Variables and Expressions

F

Factorial (n!)
the product 1 × 2 × … × n.
Sums and Products
the product of the numbers from 1 to n.
Permutations and Combinations
Feasible set
the points that satisfy the constraints.
Constraints and Lagrange Multipliers
Fermi estimate
a rough answer built from a chain of guessable pieces.
Estimation and Sanity Checks
Floating point
storing a number as mantissa times a power of two.
Floating Point
Floor and ceiling
the nearest integer below and above.
Rounding, Absolute Value and Modulo
Forward pass
computing values from inputs to output.
Automatic Differentiation
computing the output from the input through the layers.
A Forward Pass by Hand
Fraction
a number written as a part over a whole, a/b.
Fractions, Ratios and Percentages
Frequentist
probability as long-run frequency.
Bayesian vs Frequentist
Full rank
as much rank as the matrix's smaller dimension allows.
Rank and Null Space
Function
a rule giving exactly one output for each allowed input.
Functions
Fundamental theorem of calculus
∫ f = F(b) − F(a).
Integrals

G

Gambler's fallacy
believing past independent trials affect the next.
Independence
Global minimum
the lowest point overall.
Convex vs Non-Convex
Gradient
the vector of partial derivatives.
Gradients
Gradient check
comparing an analytic gradient with a numerical estimate.
Backpropagation by Hand
Gradient descent
repeatedly stepping against the gradient.
Gradient Descent
Graph
the picture of a function's inputs and outputs.
Graphs and Transformations
nodes joined by edges.
Graphs and Networks
Growth / decay
base above 1 or between 0 and 1.
Exponential and Logarithmic Functions

H

Hat
a mark such as ŷ meaning an estimate or prediction.
Reading Math Notation
Hessian
the matrix of second partial derivatives.
Hessian
Hidden layer
a layer between input and output.
A Forward Pass by Hand
Histogram
bars showing how many values fall in each bin.
Data Distributions and Outliers
Holding fixed
treating other variables as constants.
Partial Derivatives
Huber loss
squared for small errors, absolute for large ones.
Loss Functions
Hyperplane
a plane in more than three dimensions.
Lines, Planes and Circles
a flat boundary in high dimensions.
Geometry in Many Dimensions

I

Identity matrix
the matrix that leaves vectors unchanged.
Transpose, Identity and Inverse
Ill-conditioned
very sensitive to small changes.
Conditioning
Image (column space)
all outputs of a matrix.
Rank and Null Space
Inclusion–exclusion
subtracting overlaps when adding counts.
Counting Rules
Independence
the case where mutual information is zero.
Mutual Information
Independent events
one gives no information about the other.
Independence
Indeterminate form
an expression like 0/0 that needs simplifying.
Limits
Index
the counter running from the lower to the upper limit.
Sums and Products
Induction
proving a claim for every whole number via a base case and a step.
Reading Proofs and Quantifiers
Inequality
a comparison using <, >, ≤ or ≥.
Inequalities
Inflection point
where the bend changes direction.
Higher Derivatives and Curvature
where curvature changes sign.
Minima, Maxima and Saddle Points
Information / surprise
−log p, how unexpected an event is.
Surprise and Information
Information gain
the reduction in entropy after learning something.
Entropy
the same quantity, used to score decision-tree splits.
Mutual Information
Initialisation
the starting parameter values.
Convex vs Non-Convex
Inner / outer function
the function applied first / last.
Chain Rule
Inner dimension
the shared size that must match.
Matrix Multiplication
Instantaneous rate
the rate at a single point.
Rate of Change
Integer
a whole number, positive, negative or zero.
Numbers and Their Kinds
Integral
the area under a curve.
Integrals
Intercept
the output when the input is zero.
Linear Functions
Inverse
the matrix that undoes another.
Transpose, Identity and Inverse
Inverse function
the function that undoes another.
Composition and Inverses
Inverse operation
the operation that undoes another.
Equations and Solving
IQR
the range of the middle half of the data.
Describing Data
Irrational number
a real number that is not rational, like √2 or π.
Numbers and Their Kinds
Irreducible noise
randomness in the data no model can predict.
Bias, Variance and the Whole Picture
Iteration / step
one update of the parameters.
Gradient Descent

J

Jacobian
the matrix of first partial derivatives.
Jacobian
Jacobian determinant
the local area scaling.
Jacobian
Joint distribution
probabilities of combinations of variables.
Joint and Marginal Distributions
Joint entropy
the uncertainty of two variables together.
Joint and Conditional Entropy

K

KL divergence
the extra surprise from using q instead of p.
KL Divergence

L

L1 / L2 / L∞
sum of absolute values, Euclidean length, largest component.
Norms and Distance
L1 / lasso
penalising absolute weights.
Regularization as a Constraint
L2 / ridge / weight decay
penalising squared weights.
Regularization as a Constraint
Lagrange multiplier (λ)
the scaling between the two gradients.
Constraints and Lagrange Multipliers
Law of large numbers
sample means converge to the expectation.
Law of Large Numbers
Learning rate
the step-size multiplier η.
Learning Rate
Learning rate (η)
the step-size multiplier.
Gradient Descent
Learning-rate schedule
changing η over training.
Learning Rate
Least squares
choosing parameters that minimise the sum of squared errors.
Least Squares
Likelihood
the probability of the evidence given the hypothesis.
Bayes Theorem
the probability of the data as a function of the parameters.
Maximum Likelihood
Limit
the value a function approaches.
Limits
Line, circle, plane
the basic shapes.
Lines, Planes and Circles
Linear / quadratic / exponential
growth like n, n² and 2ⁿ.
Growth Rates and Big-O
Linear association
a straight-line relationship.
Covariance and Correlation
Linear combination
a sum of scaled vectors.
Linear Combinations and Span
Linear function
y = mx + b, a straight line.
Linear Functions
Linear regression
fitting ŷ = m x + b to minimise squared error.
Linear Regression End to End
Linear system
several linear equations solved together.
Solving Linear Systems
Linear transformation
a warp that keeps lines straight and fixes the origin.
Matrices as Transformations
Linearisation
the first-order approximation.
Taylor Approximation
Linearity
derivatives pass through sums and constant multiples.
Derivative Rules
Linearity of expectation
E[aX + bY] = aE[X] + bE[Y].
Expectation
Linearly independent
no vector is a combination of the others.
Linear Independence and Basis
Local / global minimum
lowest nearby / lowest overall.
Minima, Maxima and Saddle Points
Local gradient
the derivative of one node's output with respect to its input.
Backpropagation by Hand
Local linearisation
replacing a function by its Jacobian near a point.
Jacobian
Log loss
cross-entropy with a one-hot target.
Cross-Entropy
the negative log of the probability given to the truth.
Loss Functions
the cross-entropy of the true label against the predicted probability.
Logistic Regression and the Sigmoid
Log-likelihood
the logarithm of the likelihood.
Maximum Likelihood
Log-space
working with logarithms of values to avoid extremes.
Overflow and Underflow
Log-sum-exp
log Σ e^z, computed as m + log Σ e^(z − m).
Numerical Stability
log1p
an accurate log(1 + x) for small x.
Numerical Stability
Logarithm
the exponent needed to reach a number from a base.
Logarithms
Logistic regression
a linear score passed through a sigmoid to give a probability.
Logistic Regression and the Sigmoid
Logit
the score z before the sigmoid.
Logistic Regression and the Sigmoid
a raw class score.
Softmax and Cross-Entropy in Practice
Loss function
a number measuring how wrong predictions are.
Loss Functions

M

Machine epsilon
the gap between 1 and the next representable number.
Floating Point
Manhattan distance
sum of the horizontal and vertical gaps.
Coordinates and Distance
Margin of error
half the width of the interval.
Confidence Intervals
Marginal distribution
one variable's distribution, summing out the others.
Joint and Marginal Distributions
Markov chain
a random sequence where the next state depends only on the current state.
Markov Chains
Markov property
the future depends on the present, not the past.
Markov Chains
Matrix
a rectangular grid of numbers.
Matrices as Transformations
Matrix product
the matrix combining two transformations.
Matrix Multiplication
Maximum likelihood estimate (MLE)
the parameter maximising the likelihood.
Maximum Likelihood
Mean / median / mode
average, middle value, most frequent value.
Describing Data
Mini-batch
a small random subset of the data.
Stochastic Gradient Descent
Modulo
the remainder after division.
Rounding, Absolute Value and Modulo
Momentum
keeping a running velocity of past gradients.
Momentum and Adam
Monte Carlo
estimating an expectation by averaging samples.
Expectation
MSE / MAE
mean squared / mean absolute error.
Loss Functions
Multiple comparisons problem
false positives multiplying with the number of tests.
Common Test Mistakes
Multiplication rule
independent choices multiply.
Counting Rules
P(A and B) = P(A | B) P(B).
Conditional Probability
Mutual information
the reduction in uncertainty about one variable from knowing another.
Mutual Information
Mutually exclusive
the events cannot both happen.
Probability Rules

N

NaN
the value of an undefined operation such as inf − inf.
Overflow and Underflow
Nat
information measured with the natural logarithm.
Surprise and Information
Natural exponential
eˣ, equal to its own derivative.
Derivatives of Exp, Log and Sigmoid
Natural logarithm
ln x, the inverse of eˣ.
Derivatives of Exp, Log and Sigmoid
Natural logarithm (ln)
the logarithm with base e ≈ 2.718.
Logarithms
Natural number
a counting number: 1, 2, 3, …
Numbers and Their Kinds
Nearest neighbour
the item whose vector is closest to the query.
Embeddings and Similarity Search
Negative log-likelihood
the loss obtained by flipping the sign.
Maximum Likelihood
Non-commutative
the order changes the result.
Matrix Multiplication
Non-convex
having multiple valleys or hills.
Convex vs Non-Convex
Non-linear
not describable by a straight line.
Functions AI Loves
Norm
the length of a vector.
Scalars and Vectors
a measure of a vector's size.
Norms and Distance
Normal
a direction perpendicular to a plane.
Lines, Planes and Circles
Normal approximation
using the bell curve as a stand-in.
Central Limit Theorem
Normal distribution
the bell curve set by mean and standard deviation.
Continuous Distributions
Normal equations
AᵀA x = Aᵀb.
Least Squares
Normalisation
rescaling a vector to length 1.
Cosine Similarity
Normalisation (standardisation)
subtracting the mean and dividing by the standard deviation.
Variance and Standard Deviation
Null hypothesis
the "no effect" assumption.
Hypothesis Testing and P-values
Null space
the inputs mapped to zero.
Rank and Null Space
Numerical stability
small input or rounding errors stay small.
Numerical Stability

O

One-hot
a target with probability 1 on a single class.
Cross-Entropy
One-sided limit
the value approached from just one side.
Limits
One-to-one
each output comes from a single input.
Composition and Inverses
Open / closed endpoint
excluded (<, >) or included (≤, ≥).
Inequalities
Order
the highest power kept.
Taylor Approximation
Order of magnitude
a factor of ten.
Scientific Notation and Scale
the power of ten of a number.
Estimation and Sanity Checks
Order of operations
the agreed sequence for evaluating an expression.
Order of Operations and Properties
Orientation
whether a transformation preserves or flips handedness.
Determinant
Origin
the point (0, 0).
Coordinates and Distance
Orthogonal
perpendicular, with dot product zero.
Dot Product
perpendicular, dot product zero.
Orthogonality and Projection
Orthonormal
orthogonal and of length 1.
Orthogonality and Projection
Oscillation
bouncing across a minimum.
Learning Rate
Outcome
one possible result.
Events and Sample Spaces
Outlier
a point far from the pattern.
Least Squares
a value far from the rest.
Data Distributions and Outliers
Overfitting
fitting noise, so performance on new data is worse.
Overfitting in Statistics
Overflow
a result too large to store, becoming infinity.
Overflow and Underflow

P

p-hacking
analysing until a result is significant.
Common Test Mistakes
p-value
the probability of data at least this extreme if the null is true.
Hypothesis Testing and P-values
Parallelogram
the image of the unit square.
Determinant
Partial derivative
the derivative in one variable, others held fixed.
Partial Derivatives
Path
a route along edges.
Graphs and Networks
Percentage
a share out of 100.
Fractions, Ratios and Percentages
Percentage point
the difference between two percentages.
Fractions, Ratios and Percentages
Period
the length after which a wave repeats.
Sine, Cosine and the Unit Circle
the length before the sequence repeats.
Random Numbers and Seeds
Permutation
an ordered arrangement.
Permutations and Combinations
Perplexity
the exponential of the cross-entropy.
Cross-Entropy
Plane / line
the possible shapes of a span in 2D.
Linear Combinations and Span
PMF
the list of probabilities for a discrete variable.
Random Variables
Poisson distribution
counts of rare independent events in an interval.
Discrete Distributions
Polynomial
a sum of powers of x with coefficients.
Polynomials and Quadratics
Population / sample
everyone of interest / the part observed.
Sampling and Bias
Positive definite
all eigenvalues positive (a bowl).
Hessian
Posterior
the probability after seeing evidence.
Bayes Theorem
Power
the chance of detecting a real effect.
Common Test Mistakes
Power rule
d/dx xⁿ = n xⁿ⁻¹.
Derivative Rules
Pre-activation / activation
the value before / after the activation function.
A Forward Pass by Hand
Precision (float16/32/64)
the number of significant bits.
Floating Point
Principal component
a direction of maximal variance.
SVD and PCA
Prior
the probability before seeing evidence.
Bayes Theorem
Prior / posterior
belief before / after seeing data.
Bayesian vs Frequentist
Probability axioms
the basic rules all probabilities obey.
Probability Rules
Product (Π)
the product of a list of terms.
Sums and Products
Product rule
the derivative of a product.
Derivative Rules
P(A and B) = P(A) P(B) for independent events.
Independence
Projection
the shadow of one vector on another.
Dot Product
Proof
an argument showing a statement holds in every case.
Reading Proofs and Quantifiers
Pseudo-random generator
a deterministic recipe producing random-looking numbers.
Random Numbers and Seeds

Q

Quadratic
a degree-2 polynomial, ax² + bx + c.
Polynomials and Quadratics
Quantifier
∀ (for all) or ∃ (there exists).
Reading Proofs and Quantifiers
Quartile
a value marking 25%, 50% or 75% of the sorted data.
Describing Data
Query / key / value
the three vectors each item produces.
Attention as Dot Products
Quotient rule
the derivative of a ratio.
Derivative Rules

R

R²
the share of variation explained by the model.
Linear Regression End to End
Radian
the angle whose arc equals the radius.
Angles and Radians
Random sample
every member has an equal chance of selection.
Sampling and Bias
Random variable
a number determined by chance.
Random Variables
Randomised experiment
assigning conditions by chance to isolate cause.
Correlation vs Causation
Range
the outputs that occur.
Functions
Rank
the number of independent columns.
Rank and Null Space
Rate (λ)
the average number of events per interval.
Discrete Distributions
Ratio
a comparison of two quantities, a : b.
Fractions, Ratios and Percentages
Rational number
a number that can be written as a fraction of two integers.
Numbers and Their Kinds
Real number
any point on the number line.
Numbers and Their Kinds
Reciprocal
1/a, the number that multiplies a to give 1.
Exponents and Roots
Recurrence
a rule defining each term from earlier ones.
Sequences and Series
Reflection across y = x
how an inverse's graph relates to the original.
Composition and Inverses
Regularisation
modifying a problem to improve its conditioning.
Conditioning
Regulariser
a penalty term such as a KL to a reference.
KL Divergence
Regularization
limiting model complexity to reduce overfitting.
Regularization as a Constraint
Relative entropy
another name for KL divergence.
KL Divergence
ReLU
max(0, x).
Functions AI Loves
Remainder (error)
what the approximation leaves out.
Taylor Approximation
Reproducibility
getting the same results by repeating the setup.
Random Numbers and Seeds
Reshape
changing the shape while keeping the entries.
Tensors and Shapes
Residual
the part left after projecting.
Orthogonality and Projection
the difference between a target and its prediction.
Least Squares
the difference between the actual and predicted value.
Linear Regression End to End
Restricted sample space
the outcomes consistent with B.
Conditional Probability
Reverse-mode autodiff
the method behind backpropagation.
Automatic Differentiation
Riemann sum
a sum of thin bar areas.
Integrals
Rise over run
how slope is computed.
Linear Functions
Root
the number that, raised to a power, gives a target.
Exponents and Roots
an input where the output is zero.
Graphs and Transformations
an input where the function is zero.
Polynomials and Quadratics
Root / leaf
the top node / a node with no children.
Trees and Hierarchies
Rotation / shear / stretch
common transformations.
Matrices as Transformations
Rounding
replacing a number by the nearest one at a chosen precision.
Rounding, Absolute Value and Modulo
Rounding error
the difference between the true value and the stored one.
Floating Point

S

Saddle point
a flat spot that rises in some directions and falls in others.
Hessian
a flat spot that is a minimum in some directions and a maximum in others.
Minima, Maxima and Saddle Points
Sample mean
the average of the observations.
Law of Large Numbers
Sample space (Ω)
the set of all possible outcomes.
Events and Sample Spaces
Sampling distribution
the distribution of a statistic over repeated samples.
Central Limit Theorem
Sanity check
a quick test of whether an answer is plausible.
Estimation and Sanity Checks
Scalar
a single number.
Scalars and Vectors
Scalar multiplication
multiplying every component by a number.
Vector Operations
Scale factor
the number by which lengths are multiplied.
Areas, Volumes and Scaling
Scaled dot-product attention
softmax(Q Kᵀ / √d) V.
Attention as Dot Products
Scientific notation
a number as a × 10ⁿ with 1 ≤ a < 10.
Scientific Notation and Scale
Secant
a line through two points of a curve.
Rate of Change
Secant line
a line through two points of a curve.
Derivatives
Second derivative
the derivative of the derivative.
Higher Derivatives and Curvature
Seed
the starting state of the generator.
Random Numbers and Seeds
Selection bias
systematic exclusion in how the sample is chosen.
Sampling and Bias
Self-attention
items in a sequence attending to one another.
Attention as Dot Products
Self-information
another name for surprise.
Surprise and Information
Sequence
an ordered list following a rule.
Sequences and Series
Series
the sum of a sequence's terms.
Sequences and Series
Set
a collection of distinct elements.
Sets and Operations
Shape
the size of each dimension.
Tensors and Shapes
Sigmoid
a smooth S-curve from 0 to 1.
Functions AI Loves
1 / (1 + e⁻ˣ), with slope σ(1 − σ).
Derivatives of Exp, Log and Sigmoid
Significance level (α)
the threshold below which we reject the null.
Hypothesis Testing and P-values
Similarity search
ranking items by closeness to a query vector.
Embeddings and Similarity Search
Sine and cosine
the height and width of a point on the unit circle.
Sine, Cosine and the Unit Circle
Singular
having no inverse (determinant zero).
Transpose, Identity and Inverse
a matrix with determinant zero.
Determinant
having infinite condition number (no inverse).
Conditioning
Singular value
a stretch factor in Σ.
SVD and PCA
Skew
asymmetry, with a long tail on one side.
Data Distributions and Outliers
Slice
a one-variable cross-section of a surface.
Partial Derivatives
Slope
the change in output per unit of input.
Linear Functions
Smooth
having derivatives of all needed orders.
Continuity
Softmax
exponentiate and normalise scores into probabilities.
Softmax and Cross-Entropy in Practice
Solution
a value of the unknown that makes the equation true.
Equations and Solving
Solution set
all values that satisfy it.
Inequalities
Span
all linear combinations of a set of vectors.
Linear Combinations and Span
Sparse
having many exactly-zero entries.
Regularization as a Constraint
Spread
how far values typically lie from the centre.
Variance and Standard Deviation
Standard deviation
the square root of the variance.
Variance and Standard Deviation
Standard error
the spread of a sample mean, σ / √n.
Law of Large Numbers
σ / √n, the spread of a sample mean.
Central Limit Theorem
the typical random error of a sample mean.
Sampling and Bias
the standard deviation of an estimate.
Confidence Intervals
Stationary distribution
a distribution unchanged by a step.
Markov Chains
Steepest ascent
the direction of fastest increase.
Gradients
Subscript
a small label giving an item's position or name.
Reading Math Notation
Subset
a set contained within another.
Sets and Operations
Substitution
replacing variables with values.
Variables and Expressions
Summation
the sum written with Σ.
Reading Math Notation
Summation (Σ)
the sum of a list of terms.
Sums and Products
Surface
the graph of a two-variable function.
Partial Derivatives
Surface area
the total area of a solid's outside.
Areas, Volumes and Scaling
SVD
the factorisation A = U Σ Vᵀ.
SVD and PCA
Symbol
a character standing for a quantity, operation or relation.
Reading Math Notation
Symmetric
the same in both directions.
Mutual Information

T

Tangent
a line that touches a curve at exactly one point.
Lines, Planes and Circles
the line that touches a curve at a point.
Rate of Change
Tangent line
the line that just touches a curve at a point.
Derivatives
Taylor series
a polynomial built from a function's derivatives at a point.
Taylor Approximation
Temperature
a divisor on the scores that sharpens or flattens the result.
Softmax and Cross-Entropy in Practice
Tensor
a grid of numbers with any number of dimensions.
Tensors and Shapes
Test statistic
the number summarising the data for the test.
Hypothesis Testing and P-values
Time and space complexity
cost in steps and in memory.
Growth Rates and Big-O
Tolerance
the allowed size of a difference.
Inequalities
Trace
the sum of a matrix's diagonal entries.
Eigenvalues and Eigenvectors
Transformation
a shift, stretch or flip of a graph.
Graphs and Transformations
Transition matrix
the table of probabilities of moving between states.
Markov Chains
Transpose
swapping rows and columns.
Transpose, Identity and Inverse
Tree
a connected graph with no cycles.
Trees and Hierarchies
Triangle inequality
‖a + b‖ ≤ ‖a‖ + ‖b‖.
Norms and Distance
Truth table
a list of all cases and the resulting truth value.
Logic and Truth Tables

U

Unbiased
having zero bias.
Estimation and Bias
Unbiased estimate
correct on average.
Stochastic Gradient Descent
Underfitting
a model too simple to capture the pattern.
Overfitting in Statistics
Underflow
a result too small to store, becoming zero.
Overflow and Underflow
Uniform distribution
all outcomes equally likely, with maximum entropy.
Entropy
Union / intersection
elements in either / in both sets.
Sets and Operations
Unit circle
the circle of radius 1 around the origin.
Sine, Cosine and the Unit Circle
Unit vector
a vector of length 1.
Norms and Distance
Update step
subtracting the learning rate times the gradient.
Backpropagation by Hand

V

Validation / test set
data held back to measure generalisation.
Overfitting in Statistics
Vanishing gradient
slopes shrinking toward zero through many layers.
Derivatives of Exp, Log and Sigmoid
Variable
a letter standing for a number that can vary or is unknown.
Variables and Expressions
Variance
the mean squared distance from the mean.
Variance and Standard Deviation
sensitivity of the fit to the particular training data.
Bias, Variance and the Whole Picture
Variance (of an estimator)
how much it varies between samples.
Estimation and Bias
Variance / standard deviation
measures of spread.
Describing Data
Vector
an ordered list of numbers.
Scalars and Vectors
Vector addition
adding matching components.
Vector Operations
Vector-valued function
a function with several outputs.
Jacobian
Vertex
the tip or turning point of a curve.
Graphs and Transformations
Vertical line test
a graph is a function if no vertical line crosses it twice.
Functions
Volume
the size of a solid.
Areas, Volumes and Scaling

W

Weighted sum
a dot product of weights and inputs.
Dot Product

Z

z-score
the distance from the mean in standard deviations.
Continuous Distributions