Level 3 In-Depth AI · Reference
Math Notation Cheat Sheet
Every symbol you will meet in AI papers and in this guide — Σ, ∇, ∂, ‖x‖, E[·], argmax, ∼, ⊙ and the rest — with how to say it out loud, what it means, and a tiny example.
- Level
- ●●●●● Beginner
- Reading
- 15 min
- To learn it well
- 15 minutes to skim, then keep it open
- Builds on
- 0 concepts →
- Quiz
- 5 questions ↓
Read first
Nothing — start here.This leads to
—Why it matters
Maths notation is a compressed language. A single line in a paper can stand for a paragraph of words. That makes it efficient for people fluent in it, and a wall for everyone else. The good news is that the vocabulary is small. About sixty symbols cover nearly everything in machine learning papers, and most of them are just shorthand for things you already understand: "add these up", "the biggest one", "how much this changes when that changes".
This page lists those symbols, grouped by topic. For each one you get how to read it aloud (saying a formula in words is the fastest way to understand it), what it means, and a tiny example. Keep it open in a tab while you read other chapters or papers.
Conventions used throughout this guide: vectors are bold lowercase (), matrices are bold uppercase (), plain numbers (scalars) are italic (, ), the learning rate is , the loss is and the model's parameters are .
How to read a formula
Before the tables, a worked example of reading one complete formula, the mean squared error loss used in Linear Regression:
Read aloud: "L of theta equals one over N times the sum, for i from 1 to N, of y-hat i minus y i, squared." In plain words: for every example, take the prediction minus the true answer, square it, add all of those up, and divide by how many examples there are. That is, the average squared error.
Three habits make any formula readable:
- Say it aloud using the "read as" column below.
- Find the big operator (a sum, an argmax, an expectation) and read from the outside in.
- Plug in tiny numbers. With two examples, predictions and true values : .
Key idea Notation is shorthand, not magic. Every symbol stands for a short phrase. Translate the formula into words, then into a tiny example with real numbers.
Greek letters
Greek letters are just names, like variables. Some have conventional meanings in ML.
| Symbol | Read as | Usual meaning in AI |
|---|---|---|
| alpha | a learning rate or a mixing weight | |
| beta | a coefficient; momentum settings in Adam () | |
| gamma | discount factor in RL; a scale parameter | |
| , | delta | a small change (: "change in x"); an error term |
| epsilon | a tiny number (e.g. ) to avoid dividing by zero; exploration rate in RL; noise | |
| eta | learning rate | |
| , | theta | all the model's parameters |
| lambda | strength of regularisation; an eigenvalue | |
| mu | a mean (average) | |
| pi | 3.14159…; in RL, a policy | |
| , | sigma | : standard deviation, or the sigmoid function; : a covariance matrix (or a sum, see below) |
| , | phi, psi | parameters of a second network; a feature map |
| omega | a weight; a frequency |
Arithmetic and relations
| Symbol | Read as | Meaning | Tiny example |
|---|---|---|---|
| , | a times b | multiplication | |
| a over b | division | ||
| a to the n | a multiplied by itself n times | ||
| square root of x | number that squared gives x | ||
| absolute value of x | x without its sign | ||
| approximately equals | close enough | ||
| not equal | |||
| is proportional to | equal up to a constant factor | ||
| or | is defined as | introduces a new name | |
| gets, is replaced by | update a value | ||
| , | much less / much greater than | ||
| plus or minus | both signs | means 2.5 to 3.5 | |
| infinity | larger than any number | ||
| , | floor, ceiling of x | round down / round up | , |
| n factorial | |||
| , | e to the x | exponential, with | |
| , | log of x | natural logarithm (base ) in ML papers, the inverse of | |
| log base 2 of x | how many times to halve to reach 1 |
Sets and logic
A set is a collection of distinct things, written with curly braces.
| Symbol | Read as | Meaning | Tiny example |
|---|---|---|---|
| the set a, b, c | a collection | ||
| x is in S, x is an element of S | membership | ||
| x is not in S | |||
| A is a subset of B | everything in A is in B | ||
| A union B | in A or B (or both) | ||
| A intersect B | in both | ||
| the empty set | nothing | ||
| size of S | number of elements | ||
| the reals, "R" | all ordinary numbers | ||
| R n | lists (vectors) of n real numbers | ||
| R m by n | matrices with m rows, n columns | a table | |
| , | naturals, integers | and | |
| the set of x such that x is positive | set-builder notation | ||
| , | closed / open interval | numbers from a to b, with / without the ends | includes 0 and 1 |
| for all | |||
| there exists | |||
| , | implies; if and only if | ||
| f maps A to B | a function from inputs in A to outputs in B |
Sums, products and indices
| Symbol | Read as | Meaning | Tiny example |
|---|---|---|---|
| x sub i | the i-th item of a list (a subscript is an index, not a power) | if , | |
| x superscript i | the i-th training example (brackets mean "not a power") | : third example | |
| sum for i from 1 to n of x i | add them all up (summation) | ||
| product for i from 1 to n of x i | multiply them all | ||
| , | sum over i; sum over x in S | range left implicit, or over a set | |
| max over i of x i | the largest value | ||
| arg max over i | which i gives the largest value (argmax) | ||
| arg min over theta of L | the parameters that make the loss smallest | the goal of training | |
| x bar | the mean (average) | ||
| y hat | an estimate or prediction (hat notation) | model predicts , truth | |
| , | x star | the optimal value | |
| x prime | a new or modified x; sometimes a derivative |
Tip Read as a for-loop that adds:
total = 0; for i in range(1, n+1): total += x[i]. Read as Python'sindex of max, or NumPy'snp.argmax.
Vectors and matrices
See Vectors, Matrices and Matrix Multiplication and Dot Product, Norms and Similarity for the ideas behind these.
| Symbol | Read as | Meaning | Tiny example |
|---|---|---|---|
| , | vector x | an ordered list of numbers | |
| matrix W | a table of numbers | ||
| W i j | entry in row i, column j | above, | |
| , | x transpose | rows become columns | |
| , , | x dot y | dot product: multiply matching entries and add | |
| , | W times x | matrix multiplication | |
| x Hadamard y, element-wise times | element-wise product: multiply matching entries, keep the list | ||
| x outer y, tensor product | every pair multiplied, giving a matrix (meaning varies by paper) | ||
| , | norm of x | length of a vector | |
| L1 norm of x | sum of absolute values | ||
| identity matrix | 1s on the diagonal, 0s elsewhere; | ||
| W inverse | the matrix that undoes W | ||
| determinant of W | how much W scales areas | ||
| diag of x | matrix with x on its diagonal | ||
| x is a d-dimensional vector | tells you the shape | an embedding in |
Calculus
See Derivatives and Slopes, The Chain Rule and Partial Derivatives and Gradients.
| Symbol | Read as | Meaning | Tiny example |
|---|---|---|---|
| f of x | a function applied to x | , | |
| , | d f d x; f prime of x | derivative: slope of f at x | |
| partial f partial x, "del f del x" | slope with respect to x, holding other inputs fixed | ||
| , | nabla f, grad f; gradient of L with respect to theta | vector of all partial derivatives | |
| , | second derivative | how the slope changes (curvature) | |
| Jacobian | matrix of partial derivatives of a vector function | ||
| , | Hessian | matrix of second derivatives | |
| integral from a to b of f | area under f; a continuous sum | ||
| limit as x goes to a | value approached | ||
| big O of n squared | grows at most like (cost of an algorithm) | attention is in sequence length |
Probability and statistics
See Probability Basics, Probability Distributions and Bayes' Theorem.
| Symbol | Read as | Meaning | Tiny example |
|---|---|---|---|
| , | probability of A | chance A happens, 0 to 1 | fair coin: |
| p of x | probability (or density) of value x | ||
| , | probability of A and B | both happen | two heads: |
| probability of A given B | conditional probability: chance of A if we know B | ||
| p theta of y given x | a model with parameters θ giving probabilities of outputs y for input x | an LLM's next-token probabilities | |
| X is distributed as D; X is drawn from D | X is a random sample from that distribution | ||
| normal with mean mu, variance sigma squared | the bell curve | : standard normal | |
| , | expectation of X; expected value of f of x, x drawn from p | expected value: the long-run average | fair die: |
| , | variance of X | average squared distance from the mean | |
| sigma | standard deviation: typical spread | ||
| , | indicator of… | indicator function: 1 if the condition is true, else 0 | |
| entropy of p | average surprise, in bits or nats | fair coin: 1 bit | |
| KL divergence of p from q | how different q is from p | 0 when | |
| i.i.d. | independent and identically distributed | samples drawn separately from the same distribution | standard assumption about data |
Common ML functions and conventions
| Symbol | Read as | Meaning |
|---|---|---|
| , , | loss, cost | the number training tries to minimise (Loss Functions) |
| theta | all parameters; and for weights and biases | |
| eta | learning rate (Gradient Descent) | |
| , , | number of examples; or for dimensions; for batch size | |
| sigmoid of z | squashes any number into (0, 1) | |
| softmax | turns a list of scores into probabilities that sum to 1 | |
| ReLU of z | the most common activation function (Activation Functions) | |
| f theta of x | the model with parameters θ applied to input x | |
| script D | the dataset | |
| queries, keys, values | the three matrices in Attention | |
| the Transformer's core equation |
Common confusions
- versus . A subscript is an index ("the i-th"). A superscript is usually a power, unless it's in brackets, , which means "the i-th example".
- versus . Capital sigma as a big operator, , is a sum. Capital sigma as a letter, , is often a covariance matrix. Lowercase is a standard deviation or the sigmoid function. Context decides.
- . In ML papers, almost always means the natural log, . In information theory it is often base 2.
- for products. is ordinary multiplication for numbers but the dot product for vectors.
- versus . gives the biggest value. gives where it is. An LLM using greedy decoding outputs of its next-token probabilities.
- Different papers, different conventions. Notation is not standardised. Good papers define their symbols near the start. Look for that paragraph.
Watch out Don't try to memorise this page. Look things up as you meet them. After a few weeks of reading formulas aloud, the common symbols become as automatic as and .
Try it
- Read aloud, then explain in plain words: .
- Compute by hand: , , , .
- Open the paper "Attention Is All You Need" (see The Papers That Shaped AI) and find three symbols from this page in its equations.
Answers to 2: 30; 5; 10; 2 (the second position).
Answer to 1: "The best parameters are the ones that make the average loss over all N training examples smallest", which is the definition of training.
Learn more
Hand-picked courses, books, videos and tutorials for going deeper. See all resources →
Mathematics for Machine Learning
The linear algebra, calculus, probability and optimisation that ML uses, in one free book.
Essence of Linear Algebra
A visual intuition for vectors, matrices, determinants and eigenvectors. You will see the ideas, not just the rules.
Essence of Calculus
Derivatives, the chain rule and integrals, explained visually in short videos.
Linear Algebra
Patient video lessons with exercises on vectors, matrices and transformations.
Deep Learning
The classic deep learning textbook, especially strong on the maths foundations. Free to read online.
Facts checked as of 30 November 2026. Fast-moving details (products, prices, laws) change often. · Source: content/entries/reference/math-notation.md