跳到主要内容

1 Discrete Probability

1.1 Probability Spaces and Event

Discrete Probability Space

A discrete probability space is a pair P=(Ω,p)\mathcal{P} = (\Omega, p) consisting of:

  • A non-empty finite set Ω\Omega, called the sample space, whose elements represent all possible outcomes of an experiment.
  • A function p:Ω[0,1]p : \Omega \to [0, 1], called the probability mass function, which assigns probabilities to outcomes and satisfies ωΩp(ω)=1\sum_{\omega \in \Omega} p(\omega) = 1. That is, the total probability of all outcomes is 1.

Event

An event AA is a subset of Ω\Omega (AΩA \subseteq \Omega), and its probability is defined as

Pr[A]:=ωAp(ω).\begin{equation*} Pr[A] := \sum_{\omega \in A} p(\omega). \end{equation*}

1.2 Asymptotic Notations

Big-O\mathcal{O} notation

Let f,g:NRf,g : \mathbb{N} \to \mathbb{R} be functions defined on N\mathbb{N}. We write f(n)=O(g(n))f(n) = \mathcal{O}(g(n)) if there exist constants C>0C > 0 and NNN \in \mathbb{N} such that

f(n)Cg(n),nN.\begin{equation*} |f(n)| \le Cg(n), \quad \forall n \ge N. \end{equation*} O(g):={f:C>0,NN s.t. f(n)Cg(n), for all nN}.\begin{equation*} \mathcal{O}(g) := \{f : \exists C > 0, \exists N \in \mathbb{N} \text{ s.t. } |f(n)| \le Cg(n), \text{ for all } n \ge N\}. \end{equation*}

Theorem 1.1. Let f,g:NRf, g : \mathbb{N} \to \mathbb{R} and cRc \in \mathbb{R}. If f(n),g(n)0f(n), g(n) \ge 0 for all nn, then

f(n)=O(f(n))cf(n)=O(f(n))O(O(f(n)))=O(f(n))O(f(n))+O(g(n))=O(f(n)+g(n))O(f(n))+O(g(n))=O(max{f(n),g(n)})O(f(n))O(g(n))=O(f(n)g(n))O(f(n)g(n))=f(n)O(g(n)).\begin{align*} f(n) &= \mathcal{O}(f(n)) \\ c \cdot f(n) &= \mathcal{O}(f(n)) \\ \mathcal{O}(\mathcal{O}(f(n))) &= \mathcal{O}(f(n)) \\ \mathcal{O}(f(n)) + \mathcal{O}(g(n)) &= \mathcal{O}(f(n) + g(n)) \\ \mathcal{O}(f(n)) + \mathcal{O}(g(n)) &= \mathcal{O}(\max\{f(n), g(n)\}) \\ \mathcal{O}(f(n)) \cdot \mathcal{O}(g(n)) &= \mathcal{O}(f(n) \cdot g(n)) \\ \mathcal{O}(f(n)g(n)) &= f(n) \cdot \mathcal{O}(g(n)). \\ \end{align*}

Big-O\mathcal{O} notation over a domain

Let f,g:DRf,g : D \to \mathbb{R} be functions defined on a domain DD. We say that f(n)=O(g(n))f(n) = \mathcal{O}(g(n)) for all nDn \in D if there exists a constant C>0C > 0 such that

f(n)Cg(n),nD.\begin{equation*} |f(n)| \le Cg(n), \quad \forall n \in D. \end{equation*}

Big-O\mathcal{O} notation for multivariate functions

Let f,g:NdRf,g : \mathbb{N}^d \to \mathbb{R} be functions defined on Nd\mathbb{N}^d. We write

f(n1,,nd)=O(g(n1,,nd))\begin{equation*} f(n_1,\dots,n_d) = \mathcal{O}(g(n_1,\dots,n_d)) \end{equation*}

if there exist constants C>0C > 0 and NNN \in \mathbb{N} such that

f(n1,,nd)Cg(n1,,nd),n1,,ndN.\begin{equation*} |f(n_1,\dots,n_d)| \le Cg(n_1,\dots,n_d), \quad \forall n_1,\dots,n_d \ge N. \end{equation*}

Big-O\mathcal{O} notation for x0x \to 0

Let f,g:RRf,g : \mathbb{R} \to \mathbb{R} be functions defined on R\mathbb{R}. We say that f(x)=O(g(x))f(x) = \mathcal{O}(g(x)) as x0x \to 0 if there exist constants C>0C > 0 and δ>0\delta > 0 such that

f(x)Cg(x),xR with 0<x<δ.\begin{equation*} |f(x)| \le Cg(x), \quad \forall x \in \mathbb{R} \text{ with } 0 < |x| < \delta. \end{equation*}

Big-O\mathcal{O} notation defined using lim sup\limsup

Let f,g:NRf, g : \mathbb{N} \to \mathbb{R}, where g(n)>0g(n) > 0 for all sufficiently large nn. We write f(n)=O(g(n))f(n) = \mathcal{O}(g(n)) if

lim supnf(n)g(n)<+.\begin{equation*} \limsup_{n \to \infty} \frac{|f(n)|}{g(n)} < +\infty. \end{equation*}

Ω,Θ,\Omega, \Theta, \sim Notations

Let f,g:NRf,g : \mathbb{N} \to \mathbb{R}, where g(n)>0g(n) > 0 for all sufficiently large nn.

  • We write f(n)=Ω(g(n))f(n) = \Omega(g(n)) if lim infnf(n)g(n)>0\liminf\limits_{n \to \infty} \frac{|f(n)|}{g(n)} > 0.
  • We write f(n)=Θ(g(n))f(n) = \Theta(g(n)) if f(n)=O(g(n))f(n) = \mathcal{O}(g(n)) and f(n)=Ω(g(n))f(n) = \Omega(g(n)).
  • We write f(n)g(n)f(n) \sim g(n) if limnf(n)g(n)=1\lim\limits_{n \to \infty} \frac{|f(n)|}{g(n)} = 1.

Little-oo and Little-ω\omega Notations

Let f,g:NRf,g : \mathbb{N} \to \mathbb{R}, where g(n)>0g(n) > 0 for all sufficiently large nn.

  • We write f(n)=o(g(n))f(n) = o(g(n)) if limnf(n)g(n)=0\lim\limits_{n \to \infty} \frac{|f(n)|}{g(n)} = 0.
  • We write f(n)=ω(g(n))f(n) = \omega(g(n)) if limnf(n)g(n)=+\lim\limits_{n \to \infty} \frac{|f(n)|}{g(n)} = +\infty.

Theorem 1.2. Let f,g:NRf,g : \mathbb{N} \to \mathbb{R} with g(n)>0g(n) > 0 for all n1n \ge 1. If

f(k)=O(g(k))as k,\begin{equation*} f(k) = \mathcal{O}(g(k)) \quad \text{as } k \to \infty, \end{equation*}

then

k=1nf(k)=O(k=1ng(k))as n.\begin{equation*} \sum_{k=1}^n f(k) = \mathcal{O}\left(\sum_{k=1}^n g(k)\right) \quad \text{as } n \to \infty. \end{equation*}

Theorem 1.3. Let f,g:N2Rf,g : \mathbb{N}^2 \to \mathbb{R} with g(m,n)>0g(m,n) > 0 for all m,n1m,n \ge 1. If for some function U(m)1U(m) \ge 1, we have

f(m,k)=O(g(m,k)),for 1kU(m), as m,\begin{equation*} f(m,k) = \mathcal{O}(g(m,k)), \quad \text{for } 1 \le k \le U(m), \text{ as } m \to \infty, \end{equation*}

Then,

k=1nf(m,k)=O(k=1ng(m,k)),for 1nU(m), as m.\begin{equation*} \sum_{k=1}^n f(m,k) = \mathcal{O}\left(\sum_{k=1}^n g(m,k)\right), \quad \text{for } 1 \le n \le U(m), \text{ as } m \to \infty. \end{equation*}