Mathematical Notation
A compact shared vocabulary of symbols used throughout math and statistics. Knowing them lets you read likelihoods, probability statements, and model definitions without stumbling.
Sets and logic
We often work with the real numbers . A set can be a subset of another, , and an object can be an element of a set, . Two events combine via union (either) and intersection (both).
Logical shorthand: for all , there exists , and implies . In probability we write distributed as , and independence as (or the statistical form ).
Sums, products, and counting
The summation adds terms; the product multiplies them. The factorial is , and the binomial coefficient counts subsets:
Symbol reference
| Symbol | Meaning | LaTeX |
|---|---|---|
| real numbers | \mathbb{R} | |
| element of | \in | |
| subset of | \subset | |
| union | \cup | |
| intersection | \cap | |
| for all | \forall | |
| there exists | \exists | |
| implies | \Rightarrow | |
| distributed as | \sim | |
| independent | \perp\!\!\!\perp | |
| summation | \sum | |
| product | \prod | |
| factorial | n! | |
| binomial coefficient | \binom{n}{k} |
Writing formulas in LaTeX
- Fractions:
\frac{a}{b}renders as . - Greek letters:
\alpha, \beta, \mu, \sigmarender as . - Sums and products:
\sum_{i=1}^{n} igives and\prod_{i=1}^{n} igives . - Distributed as:
X \sim \mathcal{N}(\mu, \sigma^2)gives .
Worked example
For and :
Computing it
R
n <- 5; k <- 2
sum(1:n) # 15
prod(1:n) # 120
factorial(n) # 120
choose(n, k) # 10
Python
import math
n, k = 5, 2
print(sum(range(1, n + 1))) # 15
print(math.prod(range(1, n + 1))) # 120
print(math.factorial(n)) # 120
print(math.comb(n, k)) # 10
15
120
120
10
Julia
n, k = 5, 2
sum(1:n) # 15
prod(1:n) # 120
factorial(n) # 120
binomial(n, k) # 10
Why it matters for statistics
Statistical models are written in this notation: likelihoods are products , expectations are sums , and independence assumptions () justify factoring joint distributions. Fluency here is the prerequisite for everything that follows.