Mathematical Notations Cheatsheet

This is a short list of some math notations that we discussed during class that can be helpful for review and reading.

1. Σ\Sigma (Sum notation)

Sum notation is used to compress writing sum of terms if there's a pattern. It's just a different way of writing sums on paper.

Example 1:
The summation 1+2+3+...+10001+2+3+...+1000 can be written as

1+2+...+1000=n=11000n1+2+...+1000=\sum_{n=1}^{1000} \, n

It can be read as "the sum of nn from nn equals to 1 up to 1000"
Example 2:
The summation 2+4+8+16+...+21002+4+8+16+...+2^{100} can be written as

21+22+23+24+...+2100=n=11002n2^1+2^2+2^3+2^4+...+2^{100}=\sum_{n=1}^{100}\, 2^n

This notation can be read as "the sum of 2n2^n from n=1n=1 up to n=100n=100"
Example 3:
If you have data points of heights in meters:

x1=1.7,x2=1.52,x3=1.81,x4=1.49,x5=1.75x_1=1.7, x_2=1.52, x_3=1.81, x_4=1.49, x_5=1.75

you can write the summation as:

x1+x2+x3+x4+x5=i=15xix_1+x_2+x_3+x_4+x_5 = \sum_{i=1}^5 \, x_i

It can be read as "the sum of xix_i for i=1i=1 to i=5i=5."

2. P()P(\cdot | \cdot) (conditional probability)

The bar in the probability notation is used for conditional probability when a posterior event has a priori.

You would read P(AB)P(A|B) as "the probability of AA given that BB happened"

3. \infty (infinity symbol)

It's just a symbol to denote infinity. We would have ++\infty for positive infinity, and -\infty for negative infinity.

4. [0,1]&(0,1)[0,1] \& (0,1) (open and closed brackets for ranges)

I describing ranges, the closed bracket "[[" means to include the value, and the closed bracket "((" means to exclude that value.

Example 1

5. R\mathbb{R} (set of real numbers)

The symbol R\mathbb{R} denotes the set of all real numbers. We can also write it as (,+)(-\infty, +\infty).

We use N\mathbb{N} to denote the set of natural numbers: {1,2,3,...}\{1, 2, 3, ...\},
Z\mathbb{Z} for integers {...,2,1,0,1,2,...}\{...,-2,-1,0,1,2,...\},
Z+\mathbb{Z}^+ for positive integers {1,2,3,...}=N\{1, 2, 3, ...\}=\mathbb{N},
Z\mathbb{Z}^- for negative integers {1,2,3,...}\{-1, -2, -3, ...\}, and
Z0\mathbb{Z}_{\ge 0} for non-negative integers {0,1,2,3,...}\{0, 1, 2, 3, ...\}.

6. \in (in symbol)

The symbol \in means "is an element of" or "belongs to" a set.

Example

  1. Head{Head,Tail}\text{Head} \in \{\text{Head}, \text{Tail}\} (Head is an element of the set {Head, Tail})
  2. 2{1,2,3,4}2 \in \{1, 2, 3, 4\} (2 belongs to the set {1, 2, 3, 4})

7. ,\cup, \cap (union and intersection)

The symbols \cup and \cap are used when dealing with sets.

Example
If A=1,2,3A = {1, 2, 3} and B=3,4,5B = {3, 4, 5}, then:
AB=1,2,3,4,5A \cup B = {1, 2, 3, 4, 5} (all unique elements in either set)
AB=3A \cap B = {3} (only what they share)

8. xˉ\bar{x} (average notation)

The notation xˉ\bar{x} is used to represent the mean (average) of a set of numbers.

Example
Given data points: x1=3,x2=5,x3=7x_1=3, x_2=5, x_3=7, the average is:

xˉ=13i=13xi=13(x1+x2+x3)=13(3+5+7)=5\bar{x} = \frac{1}{3}\sum_{i=1}^3 \, x_i = \frac{1}{3}(x_1+x_2+x_3)=\frac{1}{3}(3+5+7)=5

This is often used in statistics to denote the sample mean.

9. μ,σ2\mu, \sigma^2 (mean and variance of normal distribution)

In probability and statistics, especially with the normal distribution, the symbols μ\mu and σ2\sigma^2 are used:

μ\mu (mu) denotes the mean (or expected value).
σ2\sigma^2 (sigma squared) denotes the variance, which measures how spread out the values are.

Example
In a normal distribution XN(μ,σ2)X \sim \mathcal{N}(\mu, \sigma^2) (XX is sampled from a normal distribution with mean μ\mu and variance σ2\sigma^2):

10. \to in f:ABf:A \to B vs. f(x)af(x)\to a (arrow for maps and approaches)

The symbol \to can mean different things depending on context:

  1. In functions:
    • f:ABf: A \to B means “ff is a function from set AA to set BB”.
    • For example, f:RRf: \mathbb{R} \to \mathbb{R} means the function takes real numbers as inputs and outputs real numbers.
  2. In limits:
    • f(x)af(x) \to a as xbx \to b means “as xx approaches bb, f(x)f(x) approaches aa”.
    • For example: as x+x \to +\infty, 1x0\frac{1}{x} \to 0 (as xx goes to ++\infty, 1x\frac{1}{x} goes to 00).

So, in short: