Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Maths is a language
Road signs tell you things without words: 🛑 means stop, ➡️ means turn right. Mathematics works the same way. A tiny symbol can stand for a whole sentence:
| Symbol | Says |
|---|---|
| “add” | |
| “is exactly the same as” | |
| “is very close to” (like π ≈ 3.14) | |
| “add them all up” | |
| “the third x in the list” |
Scientists from every country read the same symbols, which is why papers from around the world can be understood everywhere. Learning to read them is like learning the alphabet before reading books.
Letters from another alphabet
Mathematicians ran out of English letters, so they borrowed Greek ones: (alpha), (beta), (theta), (lambda), (pi), (sigma). In AI, usually means the settings the computer learns, like the knobs on a radio.
Every formula in a paper is a short way of writing a few lines of code. Click the symbols below to translate them.
y_hat = sum(w[i] * x[i] for i in range(len(x))) + b
- 1. Which symbol means 'add them all up'?
- 2. In the list x₁, x₂, x₃, x₄, what is x₃?
- 3. π = 3.14 or π ≈ 3.14?
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The Greek alphabet, as used in ML and robotics
| Letter | Name | Typical meaning |
|---|---|---|
| alpha | learning rate, a weight, angular acceleration | |
| beta | momentum (Adam’s ), regression coefficients | |
| gamma | discount factor in RL, a scale parameter | |
| delta | small change, error, failure probability | |
| epsilon | tiny number, noise, tolerance | |
| eta | learning rate | |
| theta | model parameters, an angle (joint angle) | |
| lambda | regularization strength, eigenvalue | |
| mu | mean, friction coefficient | |
| pi | 3.14159…, or a policy in RL | |
| sigma | standard deviation, sigmoid | |
| tau | temperature, time constant, torque | |
| phi | feature map, roll angle | |
| psi | yaw angle, a second network | |
| omega | angular velocity, frequency, sample space |
Common symbols
| Symbol | Read as | Example |
|---|---|---|
| “is in” | : x is a real number | |
| for all, there exists | (A1-2) | |
| implies, if and only if | (A1-2) | |
| y hat | a prediction or estimate of | |
| x bar | the mean of | |
| x star | the optimal (best) value | |
| x tilde | a modified or approximate | |
| x prime | the next value, or a derivative | |
| proportional to | ||
| or | “is defined as” | |
| , | absolute value, norm (length) | (A1-6) |
max vs argmax
is the best value. is the input that achieves it. If test scores are 5, 9 and 2 for students 1, 2 and 3, then the max is 9 and the argmax is student 2. Training a model is written : “the parameters that make the loss smallest”.
- 1. In a paper, θ̂ most likely means…
- 2. f = (4, 1, 7, 3) over x = 1, 2, 3, 4. What is argmin f?
- 3. In reinforcement learning papers, π usually means…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.Typography carries meaning
Most ML papers follow the conventions in the “Notation” section of Goodfellow, Bengio and Courville (2016):
| Style | Meaning | Example |
|---|---|---|
| lowercase italic | scalar (one number) | |
| lowercase bold | vector (a column) | |
| uppercase bold or italic | matrix | |
| calligraphic | set, space, distribution, loss | |
| blackboard bold | number sets, expectation, probability | |
| subscript | index or component | (i-th entry), |
| superscript in brackets | which example | : the i-th training example, not a power |
| superscript | transpose | = dot product |
Reading shapes
The most useful habit when reading a paper is checking shapes. If and , then . Inner dimensions must match, and the outer ones give the result. Shape errors are the most common bugs when implementing a paper.
Probability notation
| Notation | Meaning |
|---|---|
| is a random sample from distribution | |
| probability of given | |
| or | a model with parameters |
| the average of when comes from | |
| indicator: 1 if the condition is true, else 0 | |
| i.i.d. | independent and identically distributed |
| normal (Gaussian) distribution |
A complete sentence, decoded
“The best parameters are the ones that minimise the average loss over the training examples, plus times the squared length of the parameter vector.” That’s regularized empirical risk minimization, the sentence behind most of supervised learning.
- 1. x⁽³⁾ in an ML paper means…
- 2. W ∈ ℝ^{32×10}, x ∈ ℝ^{10}. What is the shape of Wx?
- 3. 𝔼_{x∼D}[ℓ(x)] means…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Decoding famous equations
Scaled dot-product attention (Vaswani et al., 2017):
Shapes: , , . is (each query scored against each key). The softmax is applied to each row, and the result is . Dividing by keeps the scores from growing with dimension, which would make the softmax too sharp (A1-4).
The Adam update (Kingma and Ba, 2015, Algorithm 1):
Watch for overloading: really is a power ( to the ), but is a time index, and squares each entry of the gradient vector (element-wise).
The policy-gradient objective in RL:
“The expected discounted total reward of trajectories generated by running the policy .” Here is a power, and is the reward at time .
Traps in notation
- Abuse of notation. Authors write and for two different distributions, and the argument tells you which one. They write to mean “apply to every row”.
- Same symbol, different meaning. can be a standard deviation, the sigmoid, or a singular value. can be 3.14 or a policy. Check the paper’s own definitions.
- Element-wise operations. is element-wise product. and in optimizer papers are usually element-wise too.
- log base. In ML papers almost always means . In information theory it often means .
- Big-O. means “grows at most like , up to a constant”. Doubling roughly quadruples the cost.
Exercise 3.1: Write the shapes at every step of attention with n = 10 queries, m = 12 keys, d_k = 64, d_v = 32
: . Softmax keeps . Times gives .
Exercise 3.2: Why is Adam’s first step about −α · sign(g)?
At : and . Bias correction divides these by and , giving and . So the step is .
- 1. In attention, why divide by √d_k?
- 2. In Adam, what is β₁ᵗ?
- 3. An algorithm is O(n²). n goes from 1000 to 2000. Runtime roughly…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Reading a paper’s mathematics efficiently
Keshav’s three-pass method (2007) works well for maths-heavy papers:
- First pass (10 minutes). Read the title, abstract, figures and conclusion. Skip the equations. Decide whether the paper is relevant.
- Second pass. Read the notation section and the main equations. Write down the shape of every symbol. Find the one or two key equations (the objective and the update rule) and restate them in words.
- Third pass. Re-derive the key results yourself, and implement the main equation with a small test (like the exercises on this page).
Practical habits that experienced researchers use:
- Keep a personal notation table for each paper: symbol, meaning, shape.
- Check units and shapes on both sides of every equation.
- Try edge cases: what happens when , , or ? The formula should reduce to something you already know.
- Write a unit test for each equation before trusting your implementation (Exercise 2 below).
Robotics notation: frames and transforms
Robotics papers write coordinates relative to a frame, following Craig’s textbook convention:
Read as “the pose of frame B, expressed in frame A”. The leading superscript is the frame you’re measuring in, and the trailing subscript is the thing being described. Matching inner letters cancel, like shapes: (world ← robot ← camera). Other communities write the same thing as or , so always check the convention.
Rotation conventions differ too. Quaternion multiplication follows either the Hamilton or the JPL convention, and they multiply in opposite orders. Sommer et al. (2018) document real bugs this caused. Euler angles come in 12 possible axis orders. Before using a robotics paper’s equations, find out which conventions it uses.
References
- D. Knuth (1992). “Two notes on notation.” American Mathematical Monthly, 99(5).
- J. Craig (2005). Introduction to Robotics: Mechanics and Control, 3rd ed. Pearson. (Frame notation.)
- S. Keshav (2007). “How to read a paper.” ACM SIGCOMM Computer Communication Review, 37(3).
- I. Goodfellow, Y. Bengio, A. Courville (2016). Deep Learning. MIT Press. (“Notation” section.)
- D. Kingma and J. Ba (2015). “Adam: A method for stochastic optimization.” ICLR.
- A. Vaswani et al. (2017). “Attention is all you need.” NeurIPS.
- H. Sommer et al. (2018). “Why and how to avoid the flipped quaternion multiplication.” Aerospace, 5(3).
- R. Sutton and A. Barto (2018). Reinforcement Learning: An Introduction, 2nd ed. MIT Press. (Notation summary.)