1.1 Probability Spaces and Event
Discrete Probability Space
A discrete probability space is a pair P=(Ω,p) consisting of:
- A non-empty finite set Ω, called the sample space, whose elements represent all possible outcomes of an experiment.
- A function p:Ω→[0,1], called the probability mass function, which assigns probabilities to outcomes and satisfies ∑ω∈Ωp(ω)=1. That is, the total probability of all outcomes is 1.
Event
An event A is a subset of Ω (A⊆Ω), and its probability is defined as
Pr[A]:=ω∈A∑p(ω).
1.2 Asymptotic Notations
Big-O notation
Let f,g:N→R be functions defined on N. We write f(n)=O(g(n)) if there exist constants C>0 and N∈N such that
∣f(n)∣≤Cg(n),∀n≥N.
O(g):={f:∃C>0,∃N∈N s.t. ∣f(n)∣≤Cg(n), for all n≥N}.
Theorem 1.1. Let f,g:N→R and c∈R. If f(n),g(n)≥0 for all n, then
f(n)c⋅f(n)O(O(f(n)))O(f(n))+O(g(n))O(f(n))+O(g(n))O(f(n))⋅O(g(n))O(f(n)g(n))=O(f(n))=O(f(n))=O(f(n))=O(f(n)+g(n))=O(max{f(n),g(n)})=O(f(n)⋅g(n))=f(n)⋅O(g(n)).
Big-O notation over a domain
Let f,g:D→R be functions defined on a domain D. We say that f(n)=O(g(n)) for all n∈D if there exists a constant C>0 such that
∣f(n)∣≤Cg(n),∀n∈D.
Big-O notation for multivariate functions
Let f,g:Nd→R be functions defined on Nd. We write
f(n1,…,nd)=O(g(n1,…,nd))
if there exist constants C>0 and N∈N such that
∣f(n1,…,nd)∣≤Cg(n1,…,nd),∀n1,…,nd≥N.
Big-O notation for x→0
Let f,g:R→R be functions defined on R. We say that f(x)=O(g(x)) as x→0 if there exist constants C>0 and δ>0 such that
∣f(x)∣≤Cg(x),∀x∈R with 0<∣x∣<δ.
Big-O notation defined using limsup
Let f,g:N→R, where g(n)>0 for all sufficiently large n. We write f(n)=O(g(n)) if
n→∞limsupg(n)∣f(n)∣<+∞.
Ω,Θ,∼ Notations
Let f,g:N→R, where g(n)>0 for all sufficiently large n.
- We write f(n)=Ω(g(n)) if n→∞liminfg(n)∣f(n)∣>0.
- We write f(n)=Θ(g(n)) if f(n)=O(g(n)) and f(n)=Ω(g(n)).
- We write f(n)∼g(n) if n→∞limg(n)∣f(n)∣=1.
Little-o and Little-ω Notations
Let f,g:N→R, where g(n)>0 for all sufficiently large n.
- We write f(n)=o(g(n)) if n→∞limg(n)∣f(n)∣=0.
- We write f(n)=ω(g(n)) if n→∞limg(n)∣f(n)∣=+∞.
Theorem 1.2. Let f,g:N→R with g(n)>0 for all n≥1. If
f(k)=O(g(k))as k→∞,
then
k=1∑nf(k)=O(k=1∑ng(k))as n→∞.
Theorem 1.3. Let f,g:N2→R with g(m,n)>0 for all m,n≥1. If for some function U(m)≥1, we have
f(m,k)=O(g(m,k)),for 1≤k≤U(m), as m→∞,
Then,
k=1∑nf(m,k)=O(k=1∑ng(m,k)),for 1≤n≤U(m), as m→∞.