Sandomhet

PSTAT 120A Introduction to Probability

Content includes distributions, random variables...

Fri, Jun 6, 2025 26 min read

PSTAT 120A

Statistics

  • Data: Collection of observations (e.g., survey responses, measurements).
  • Population: The complete set of individuals/elements of interest or under study.
  • Sample: Data collected on a carefully chosen subset of the population.
  • Parameter: A numerical measure describing a population characteristic.
  • Statistic: A numerical measure describing a sample characteristic, obtained from observed data.

Set Theory

  • Set: A well-defined collection of objects or elements with no ambiguity about membership.
    • Notation: Denoted by capital letters (A,BA, B); elements within curly brackets (A={2,4,6}A = \{2, 4, 6\}).
    • Membership: ∈\in means "belongs to"; ∉\notin means "does not belong to."
  • Subset: Y⊆XY \subseteq X if every element of YY is in XX.
  • Proper Subset: Y⊂XY \subset X if Y⊆XY \subseteq X and XX has at least one element not in YY.
  • Universal Set (Ω\Omega or SS): Contains all elements under consideration.
  • Empty Set (ϕ\phi): Contains no elements; a subset of every set.
  • Equality of Sets: A=BA = B if A⊆BA \subseteq B and B⊆AB \subseteq A.

Set Operations

  • Intersection (A∩BA \cap B): Elements in both AA and BB.
  • Union (A∪BA \cup B): Elements in AA, BB, or both.
  • Complement (AcA^c): Elements in the universal set Ω\Omega not in AA.
  • Difference (A\BA \backslash B): Elements in AA but not in BB.
  • Cartesian Product (A×BA \times B): Set of ordered pairs {(a,b):a∈A,b∈B}\{(a, b) : a \in A, b \in B\}.
  • Disjoint Sets: Sets AA and BB with no common elements (A∩B=ϕA \cap B = \phi).

Set Properties

  • Commutative: A∪B=B∪AA \cup B = B \cup A, A∩B=B∩AA \cap B = B \cap A.
  • Associative: A∪(B∪C)=(A∪B)∪CA \cup (B \cup C) = (A \cup B) \cup C, A∩(B∩C)=(A∩B)∩CA \cap (B \cap C) = (A \cap B) \cap C.
  • Distributive: A∩(B∪C)=(A∩B)∪(A∩C), A∪(B∩C)=(A∪B)∩(A∪C).A \cap (B \cup C) = (A \cap B) \cup (A \cap C), \ A \cup (B \cap C) = (A \cup B) \cap (A \cup C).
  • De Morgan’s Laws: (A∪B)c=Ac∩Bc,(A∩B)c=Ac∪Bc.(A \cup B)^c = A^c \cap B^c, \quad (A \cap B)^c = A^c \cup B^c. Generalized: (⋃Ai)c=⋂Aic,(⋂Ai)c=⋃Aic.\left( \bigcup A_i \right)^c = \bigcap A_i^c, \quad \left( \bigcap A_i \right)^c = \bigcup A_i^c.

Cardinality

  • ∣A∣|A|: Number of elements in set AA.
  • If A∩B=ϕA \cap B = \phi, then ∣A∪B∣=∣A∣+∣B∣|A \cup B| = |A| + |B|.
  • For any sets: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|.
  • For three sets: ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣B∩C∣−∣A∩C∣+∣A∩B∩C∣.|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |B \cap C| - |A \cap C| + |A \cap B \cap C|.
  • Cartesian product: ∣A×B∣=∣A∣×∣B∣|A \times B| = |A| \times |B|.

Counting

Basic Principle of Counting:

  • For a task with kk independent stages, where stage ii has nin_i choices, total outcomes are: ∏i=1kni\prod\limits_{i=1}^k n_i
  • Factorial: n!=n×(n−1)×⋯×1n! = n \times (n-1) \times \cdots \times 1, with 0!=10! = 1.
  • Permutation: nn order kk: (n)k=n!(n−k)!(n)_k = \frac{n!}{(n-k)!}
  • Combination: nn choose kk: (nk)=n!k!(n−k)!.\binom{n}{k} = \frac{n!}{k!(n-k)!}.
  • Multinomial Coefficient: partition nn items into kk groups: (nn1,n2,…,nk)=n!n1!n2!⋯nk!,where∑i=1kni=n.\binom{n}{n_1, n_2, \ldots, n_k} = \frac{n!}{n_1! n_2! \cdots n_k!},\quad \text{where} \sum\limits_{i=1}^k n_i = n.

Probability

Random Experiment

  • Random Experiment: An experiment where all possible outcomes are known, but the specific outcome on a given trial cannot be predicted.
  • Sample Space (SS or Ω\Omega): The set of all possible outcomes.
  • Elementary Outcome: A single outcome in the sample space.
  • Event: A subset of the sample space.

Probability

  • Classical Approach (for finite sample spaces with equally likely outcomes):

    P(A)=∣A∣∣S∣P(A) = \frac{|A|}{|S|}
  • Relative Frequency Approach:

    P(A)≈Number of times A occurs in n trialsn,P(A) \approx \frac{\text{Number of times } A \text{ occurs in } n \text{ trials}}{n},
  • Axiomatic Definition (Kolmogorov, 1933):

    • Probability is a function assigning a number P(A)P(A) to each event AA in a class F\mathcal{F} of subsets of Ω\Omega, satisfying:
      1. Axiom 1: 0≤P(A)≤10 \leq P(A) \leq 1.
      2. Axiom 2: P(Ω)=1P(\Omega) = 1.
      3. Axiom 3 (Countable Additivity): For disjoint events A1,A2,…A_1, A_2, \ldots, P(A1∪A2∪⋯ )=∑i=1∞P(Ai).P\left( A_1 \cup A_2 \cup \cdots \right) = \sum_{i=1}^\infty P(A_i).
    • The triple (Ω,F,P)(\Omega, \mathcal{F}, P) is called a probability space.
  • Probability Rules (from Axiomatic Definition):

    • P(ϕ)=0P(\phi) = 0.
    • For finite disjoint events A1,…,AnA_1, \ldots, A_n: P(⋃i=1nAi)=∑i=1nP(Ai).P\left( \bigcup_{i=1}^n A_i \right) = \sum_{i=1}^n P(A_i).
    • Complement: P(Ac)=1−P(A)P(A^c) = 1 - P(A).
    • If A⊂BA \subset B, then P(A)≤P(B)P(A) \leq P(B).
    • Union of two events: P(A∪B)=P(A)+P(B)−P(A∩B).P(A \cup B) = P(A) + P(B) - P(A \cap B).
    • Union of three events: P(A∪B∪C)=P(A)+P(B)+P(C)−P(A∩B)−P(B∩C)−P(A∩C)+P(A∩B∩C).P(A \cup B \cup C) = P(A) + P(B) + P(C) - P(A \cap B) - P(B \cap C) - P(A \cap C) + P(A \cap B \cap C).
  • Equally Likely Outcomes:

    • For a finite sample space with equally likely outcomes, P(ω)=1∣Ω∣P(\omega) = \frac{1}{|\Omega|}.
    • Probability of event AA: P(A)=∣A∣∣Ω∣P(A) = \frac{|A|}{|\Omega|}.
  • Countable vs. Uncountable Sample Spaces:

    • Countable: Finite or countably infinite (e.g., natural numbers).
    • Uncountable: Contains intervals (e.g., lifetime of a bulb).

Sampling Mechanisms

  • With Replacement, Order Matters:
    • Sample space: Ω=S×S×⋯×S\Omega = S \times S \times \cdots \times S (kk-times), where S={1,2,…,n}S = \{1, 2, \ldots, n\}.
    • Size: ∣Ω∣=nk|\Omega| = n^k.
  • Without Replacement, Order Matters:
    • Sample space: Ω={(s1,s2,…,sk):si∈S,si≠sj if i≠j}\Omega = \{(s_1, s_2, \ldots, s_k) : s_i \in S, s_i \neq s_j \text{ if } i \neq j\}.
    • Size: ∣Ω∣=(n)k|\Omega| = (n)_k.
  • Without Replacement, Order Does Not Matter:
    • Sample space: Subsets of size kk from {1,2,…,n}\{1, 2, \ldots, n\}.
    • Size: ∣Ω∣=(nk)|\Omega| = \binom{n}{k}.

Conditional Probability

  • Definition: The conditional probability of AA given BB, denoted by P(A∣B)P(A \mid B) is defined as: P(A∣B)=P(AB)P(B)P(A \mid B) = \frac{P(A B)}{P(B)}

For fixed BB, P(⋅∣B)P(\cdot \mid B) is a probability measure satisfying all probability axioms, called a conditional probability measure.

Multiplication Rule

  • For Two Events: For any events AA and BB: P(AB)=P(B)P(A∣B)=P(A)P(B∣A)P(AB) = P(B) P(A \mid B) = P(A) P(B \mid A)
  • For Three Events: For events A,B,CA, B, C: P(ABC)=P(A)P(B∣A)P(C∣AB),P(ABC) = P(A) P(B \mid A) P(C \mid AB),
  • For nn Events: For events A1,A2,…,AnA_1, A_2, \ldots, A_n: P(A1A2⋯An)=P(A1)P(A2∣A1)P(A3∣A1A2)⋯P(An∣A1⋯An−1),P(A_1 A_2 \cdots A_n) = P(A_1) P(A_2 \mid A_1) P(A_3 \mid A_1 A_2) \cdots P(A_n \mid A_1 \cdots A_{n-1}),

Law of Total Probability

  • Partition of Ω\Omega: A finite collection of events {B1,…,Bn}\{B_1, \ldots, B_n\} is a partition of Ω\Omega if they are pairwise disjoint (Bi∩Bj=∅B_i \cap B_j = \emptyset for i≠ji \neq j) and their union is Ω\Omega (⋃i=1nBi=Ω\bigcup_{i=1}^n B_i = \Omega).
  • Law: If {B1,…,Bn}\{B_1, \ldots, B_n\} is a partition of Ω\Omega, then for any event AA: P(A)=∑i=1nP(A∩Bi)=∑i=1nP(A∣Bi)P(Bi).P(A) = \sum_{i=1}^n P(A \cap B_i) = \sum_{i=1}^n P(A \mid B_i) P(B_i).

Bayes' Theorem

  • Two Events: P(B∣A)=P(A∣B)P(B)P(A∣B)P(B)+P(A∣Bc)P(Bc).P(B \mid A) = \frac{P(A \mid B) P(B)}{P(A \mid B) P(B) + P(A \mid B^c) P(B^c)}.
  • General Form: Let {B1,B2,…,Bn}\{B_1, B_2, \ldots, B_n\} be a partition of Ω\Omega: P(Bk∣A)=P(A∣Bk)P(Bk)∑i=1nP(A∣Bi)P(Bi).P(B_k \mid A) = \frac{P(A \mid B_k) P(B_k)}{\sum_{i=1}^n P(A \mid B_i) P(B_i)}.
  • Terminology:
    • P(Bk)P(B_k): Prior probabilities (beliefs before observing AA).
    • P(Bk∣A)P(B_k \mid A): Posterior probabilities (updated beliefs after observing AA).

Independence of Events

  • Two Events: Events AA and BB are independent if: P(AB)=P(A)P(B)P(A B) = P(A) P(B) or equivalently, P(A∣B)=P(A)P(A \mid B) = P(A).
  • Three Events: Events A,B,CA, B, C are mutually independent if: P(AB)=P(A)P(B)P(AC)=P(A)P(C)P(BC)=P(B)P(C)P(ABC)=P(A)P(B)P(C)P(A B) = P(A) P(B) \\ P(A C) = P(A) P(C) \\ P(B C) = P(B) P(C) \\ P(A B C) = P(A) P(B) P(C)
  • N Events: 2≤k≤n and 1≤i1<i2<⋯<ik≤n2 \leq k \leq n \text{ and } 1 \leq i_1 < i_2 < \cdots < i_k \leq n P(Ai1Ai2⋯Aik)=P(Ai1)P(Ai2)⋯P(Aik)P(A_{i_1}A_{i_2}\cdots A_{i_k}) = P(A_{i_1})P(A_{i_2})\cdots P(A_{i_k})
  • Note: Pairwise independence does not imply mutual independence.
  • Independence Property:
    • If AA and BB are independent, then so are AA and BcB^c, AcA^c and BB, AcA^c and BcB^c.
    • Proof for AA and BcB^c: P(A∩Bc)=P(A)−P(A∩B)=P(A)−P(A)P(B)=P(A)(1−P(B))=P(A)P(Bc).P(A \cap B^c) = P(A) - P(A \cap B) = P(A) - P(A) P(B) = P(A)(1 - P(B)) = P(A) P(B^c).

Conditional Independence

  • Definition: Events AA and BB are conditionally independent given event CC if: P(AB∣C)=P(A∣C)P(B∣C).P(A B \mid C) = P(A \mid C) P(B \mid C). Denoted as (A⊥B)∣C(A \perp B) \mid C.
  • Remarks:
    • Conditional independence given CC does not imply marginal independence of AA and BB.
    • Marginal independence of AA and BB does not imply conditional independence given CC.

Random Variable

  • Definition: A random variable (RV), denoted by XX, is a real-valued function on the sample space Ω\Omega. That is, X:Ω→RX: \Omega \rightarrow \mathbb{R}, where R\mathbb{R} is the set of all real numbers.
  • Notation:
    • RVs are denoted by capital letters (X,Y,ZX, Y, Z), unlike mathematical functions (f,g,hf, g, h).
    • For a sample point ω∈Ω\omega \in \Omega, the value of RV XX is X(ω)X(\omega).
    • For a set B⊆RB \subseteq \mathbb{R}, the event {X∈B}={ω∈Ω:X(ω)∈B}=X−1(B)\{X \in B\} = \{\omega \in \Omega : X(\omega) \in B\} = X^{-1}(B).
  • Probability Distribution: The set of probabilities {P(X∈B):B⊆R}\{P(X \in B) : B \subseteq \mathbb{R}\}, where P(X∈B)=P(X−1(B))P(X \in B) = P(X^{-1}(B)), is called the probability distribution of XX.
  • Support: The set S(X)S(X) of possible values of XX with positive probability is called the support of XX.

Degenerate RV: A RV XX is degenerate if there exists some real value aa such that P(X=a)=1P(X = a) = 1.

Discrete Random Variable

  • Definition: A random variable XX is discrete if it takes values in a finite or countably infinite set, X∈{k1,k2,…}X \in \{k_1, k_2, \ldots\}.
  • Probability Mass Function (PMF): The PMF of a discrete RV XX is the function pXp_X defined by: pX(k)=P(X=k)p_X(k) = P(X = k)
  • Probability for Events: For any subset B⊆S(X)B \subseteq S(X): P(X∈B)=∑k∈BpX(k)P(X \in B) = \sum\limits_{k \in B} p_X(k).

Continuous Random Variable

A random variable XX is continuous if it can assume any value in a finite or infinite interval.

Probability Density Function (PDF)

  • Definition: A function f(x)f(x) is a PDF for a continuous rv XX if:
    • f(x)≥0f(x) \geq 0 (non-negative).
    • ∫−∞∞f(x) dx=1\int_{-\infty}^{\infty} f(x) \, dx = 1 (total area under the curve equals 1).
  • Properties:
    • P(a≤X≤b)=∫abf(x) dxP(a \leq X \leq b) = \int_a^b f(x) \, dx, representing the area under f(x)f(x) over [a,b][a, b].
    • P(X=k)=∫kkf(x) dx=0P(X = k) = \int_k^k f(x) \, dx = 0
    • Probabilities are equal for inclusive/exclusive endpoints: P(a≤X≤b)=P(a<X≤b)=P(a≤X<b)=P(a<X<b)P(a \leq X \leq b) = P(a < X \leq b) = P(a \leq X < b) = P(a < X < b).

Infinitesimal Method: If PDF ff is continuous at aa, then for small ε\varepsilon, P(a<X<a+ε)≈f(a)⋅εP(a < X < a + \varepsilon) \approx f(a) \cdot \varepsilon, P(a−ε<X<a)≈f(a)⋅εP(a - \varepsilon < X < a) \approx f(a) \cdot \varepsilon, P(a−ε<X<a+ε)≈f(a)⋅2εP(a - \varepsilon < X < a + \varepsilon) \approx f(a) \cdot 2\varepsilon.

Cumulative Distribution Function (CDF)

The PMF are defined only for discrete rvs and PDF are defined only for continuous rvs. But CDF apply to any rvs.

  • Definition: F(x)=P(X≤x)F(x) = P(X \leq x), defined for all x∈Rx \in \mathbb{R}. P(a<X≤b)=F(b)−F(a)P(a < X \leq b) = F(b) - F(a).
  • Discrete: F(x)=∑k≤xP(X=k)F(x) = \sum\limits_{k \leq x} P(X = k).
    FF is a piecewise constant function, or step function. The set of jump points is S(X)={x:P(X=x)=F(x)−F(x−)}S(X) = \{x : P(X = x) = F(x) − F(x^-) \}
  • Continuous: F(x)=∫−∞xf(t) dtF(x) = \int_{-\infty}^x f(t) \, dt.
    If FF is continuous and differentiable, then f(x)=F′(x)f(x) = F'(x). If not differentiable, then f(x)f(x) is arbitrary.
  • Properties of CDF:
    • lim⁡x→−∞F(x)=0\lim\limits_{x \to -\infty} F(x) = 0, lim⁡x→∞F(x)=1\lim\limits_{x \to \infty} F(x) = 1.
    • Monotonicity: If x<yx < y, then F(x)≤F(y)F(x) \leq F(y).
    • Right continuity: F(a)=lim⁡x→a+F(x)F(a) = \lim\limits_{x \to a^+} F(x).
    • Left limit: F(a−)=lim⁡x→a−F(x)=P(X<a)F(a^-) = \lim\limits_{x \to a^-} F(x) = P(X < a).
    • For discrete XX, P(X=a)=F(a)−F(a−)P(X = a) = F(a) - F(a^-).
      For continuous XX, F(a)=F(a−)F(a) = F(a^-).

Independence of Random Variables

  • General Definition: RVs X1,X2,…,XnX_1, X_2, \ldots, X_n defined on the same probability space are independent if: P(X1∈B1,X2∈B2,…,Xn∈Bn)=∏k=1nP(Xk∈Bk),P(X_1 \in B_1, X_2 \in B_2, \ldots, X_n \in B_n) = \prod_{k=1}^n P(X_k \in B_k), for all subsets B1,B2,…,Bn⊆RB_1, B_2, \ldots, B_n \subseteq \mathbb{R}.
  • Discrete RVs: Discrete RVs X1,X2,…,XnX_1, X_2, \ldots, X_n are independent if: P(X1=x1,X2=x2,…,Xn=xn)=∏k=1nP(Xk=xk),P(X_1 = x_1, X_2 = x_2, \ldots, X_n = x_n) = \prod_{k=1}^n P(X_k = x_k), for all possible values x1,x2,…,xnx_1, x_2, \ldots, x_n.

Percentiles/Quantiles

  • The pp-th quantile xpx_p satisfies P(X≤xp)≥pP(X \leq x_p) \geq p and P(X≥xp)≥1−pP(X \geq x_p) \geq 1-p.
  • Median: x0.5x_{0.5}. First and third quartiles: x0.25x_{0.25}, x0.75x_{0.75}.
  • For continuous XX, F(xp)=pF(x_p) = p, and quantiles are unique.

Moments of a Random Variable

  • Expectation: For a function g(X)g(X)
    • Discrete E[g(X)]=∑kg(k)P(X=k)E[g(X)] = \sum\limits_k g(k) P(X = k)
    • Continuous E[g(X)]=∫−∞∞g(x)f(x)dxE[g(X)] = \int_{-\infty}^\infty g(x) f(x) dx
  • n-th Moment: E(Xn)E(X^n), where g(x)=xng(x) = x^n.
    • Mean: μ=E(X)=∑kkP(X=k)\mu = E(X) = \sum\limits_k k P(X = k) .
    • Variance: σ2=Var⁡(X)=E((X−μ)2)=E(X2)−(E(X))2\sigma^2 = \operatorname{Var}(X) = E((X - \mu)^2) = E(X^2) - (E(X))^2.
    • Standard Deviation: σ=Var⁡(X)\sigma = \sqrt{\operatorname{Var}(X)}.
  • Properties:
    • E(aX+b)=aE(X)+bE(aX + b) = aE(X) + b.
    • Var⁡(aX+b)=a2Var⁡(X)\operatorname{Var}(aX + b) = a^2 \operatorname{Var}(X).
    • Var⁡(X)=0\operatorname{Var}(X) = 0 if and only if P(X=c)=1P(X = c) = 1 for some constant cc.
    • For rvs X1,…,XnX_1, \ldots, X_n: E(∑k=0nakXk)=∑k=0nakE(Xk)E\left(\sum\limits_{k=0}^n a_k X_k\right) = \sum\limits_{k=0}^n a_k E(X_k).
    • If independent: Var⁡(∑k=0nakXk)=∑k=0nak2Var⁡(Xk)\operatorname{Var}\left(\sum\limits_{k=0}^n a_k X_k\right) = \sum\limits_{k=0}^n a_k^2 \operatorname{Var}(X_k).

Distribution

Discrete Distribution

DistributionpX(k)E[X]Var(X)Bernoulli(p)pX(1)=p, pX(0)=1−ppp(1−p)Binomial(n,p)(nk)pk(1−p)n−knpnp(1−p)Geometric(p)(1−p)k−1p1p1−pp2Negative Binomial(k,p)(n−1k−1)pk(1−p)n−kkpk 1−pp2Poisson(λ)e−λ λkk!λλHypergeometric(N,NA,n)(NAk) (N−NAn−k)(Nn)nNANn NA(N−NA)N2 N−nN−1\begin{array}{|l|l|l|l|} \hline \textbf{Distribution} & p_X(k) & \mathrm{E}[X] & \mathrm{Var}(X) \\ \hline \textbf{Bernoulli} (p) & p_X(1)=p,\ p_X(0)=1-p & p & p(1-p) \\ \hline \textbf{Binomial} (n,p) & \dbinom{n}{k}p^k(1-p)^{n-k} & np & np(1-p) \\ \hline \textbf{Geometric} (p) & (1-p)^{k-1}p & \dfrac{1}{p} & \dfrac{1-p}{p^2} \\ \hline \textbf{Negative Binomial} (k,p) & \dbinom{n-1}{k-1}p^k(1-p)^{n-k} & \dfrac{k}{p} & k\,\dfrac{1-p}{p^2} \\ \hline \textbf{Poisson} (\lambda) & \dfrac{e^{-\lambda}\,\lambda^k}{k!} & \lambda & \lambda \\ \hline \textbf{Hypergeometric} (N,N_A,n) & \dfrac{\binom{N_A}{k}\,\binom{N-N_A}{n-k}}{\binom{N}{n}} & \dfrac{nN_A}{N} & n\,\dfrac{N_A(N-N_A)}{N^2}\,\dfrac{N-n}{N-1} \\ \hline \end{array}

Bernoulli Distribution

  • Definition: X∼Ber(p)X \sim \text{Ber}(p) represents the result of a trial, success of fail, with success probablity pp, where 0≤p≤10 \leq p \leq 1. XX takes values in {0,1}\{0, 1\} and: P(X=1)=p, P(X=0)=1−p.P(X = 1) = p, \ P(X = 0) = 1 - p.
  • Interpretation: Represents the outcome of a single Bernoulli trial (1 for success, 0 for failure).

Binomial Distribution

  • Definition: X∼Bin(n,p)X \sim \text{Bin}(n, p) represents the number of successful trials out of nn independent trials with success probability pp. Its possible values are {0,1,…,n}\{0, 1, \ldots, n\} and its PMF is: P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}
  • Nature: Arises as the sum Sn=∑i=1nXiS_n = \sum\limits_{i=1}^n X_i, where each Xi∼Ber(p)X_i \sim \text{Ber}(p) (independent identical distributions).
  • Property: The probabilities sum to 1, as the binomial theorem: ∑k=0n(nk)pk(1−p)n−k=(p+1−p)n=1.\sum_{k=0}^n \binom{n}{k} p^k (1 - p)^{n - k} = (p + 1 - p)^n = 1.

Geometric Distribution

  • Definition: X∼Geo⁡(p)X \sim \operatorname{Geo}(p) represents the number of trials until the first success in repeated independent trials with success probability pp. Its support is S(X)={1,2,3,…}S(X) = \{1, 2, 3, \ldots\} and its PMF is P(X=k)=(1−p)k−1pP(X = k) = (1-p)^{k-1} p
  • Alternative: Y=X−1Y = X - 1 represents the number of failures before the first success, with support S(Y)={0,1,2,…}S(Y) = \{0, 1, 2, \ldots\} and PMF P(Y=k)=(1−p)kpP(Y = k) = (1 - p)^k p
  • Memoryless Property: P(X=n+k∣X>n)=P(X=k)P(X = n + k \mid X > n) = P(X = k), for n,k≥1n, k \geq 1. This means the probability of needing kk more trials to get a success, given nn failures, is the same as needing kk trials from the start.
  • Tail Probability: P(X≥n)=(1−p)n−1P(X \geq n) = (1-p)^{n-1}, representing the probability of at least nn trials (first n−1n-1 failures).
  • Special Case: If p=0p = 0, then P(X=∞)=1P(X = \infty) = 1.

Negative Binomial Distribution

  • Definition: X∼NB⁡(k,p)X \sim \operatorname{NB}(k, p) represents the number of trials until the kk-th success in repeated independent trials with success probability pp. The Support is n∈{k,k+1,k+2,…}n \in \{k, k+1, k+2, \ldots\}. Its PMF is P(X=n)=(n−1k−1)pk(1−p)n−kP(X = n) = \binom{n-1}{k-1} p^k (1-p)^{n-k}
  • Alternative: Y=X−kY = X - k represents the number of failures before the kk-th success, with support S(Y)={0,1,2,…}S(Y) = \{0, 1, 2, \ldots\} and PMF P(Y=m)=(m+k−1k−1)pk(1−p)mP(Y = m) = \binom{m+k-1}{k-1} p^k (1-p)^m.
  • Note: NB⁡(1,p)=Geo⁡(p)\operatorname{NB}(1, p) = \operatorname{Geo}(p).
  • Representation: X=X1+X2+⋯+XkX = X_1 + X_2 + \cdots + X_k, where Xi∼Geo⁡(p)X_i \sim \operatorname{Geo}(p) are independent, each representing trials until the next success.

Hypergeometric Distribution

  • Definition: X∼HG⁡(N,NA,n)X \sim \operatorname{HG}(N, N_A, n), represents the number of type AA items in a sample of nn items drawn without replacement from a population of NN items.
  • PMF: Its PMF is P(X=k)=(NAk)(N−NAn−k)(Nn)P(X = k) = \frac{\binom{N_A}{k} \binom{N - N_A}{n - k}}{\binom{N}{n}}, where max⁡(0,n−NB)≤k≤min⁡(n,NA)\max(0, n - N_B) \leq k \leq \min(n, N_A).

Poisson Distribution

  • Definition: X∼Poi⁡(λ)X \sim \operatorname{Poi}(\lambda), λ>0\lambda > 0 represents the number of rare events in a fixed time period, with support S(X)={0,1,2,…}S(X) = \{0, 1, 2, \ldots\} and PMF P(X=k)=e−λλkk!P(X = k) = \frac{e^{-\lambda} \lambda^k}{k!} Used for events like accidents, tornadoes, or disease cases.
  • E(X)=Var⁡(X)=λE(X) = \operatorname{Var}(X) = \lambda.

Continuous Distribution

Distributionf(x)E[X]Var(X)Uniform(a,b)1b−aa+b2(b−a)212Normal(μ,σ2)12πσ2e−(x−μ)22σ2μσ2Exponential(λ)λe−λx,1λ1λ2Gamma(k,λ)λkΓ(k)x k−1e−λxkλkλ2\begin{array}{|l|l|l|l|} \hline \textbf{Distribution} & f(x) & \mathrm{E}[X] & \mathrm{Var}(X) \\ \hline \textbf{Uniform} (a,b) & \dfrac1{b-a} & \dfrac{a+b}{2} & \dfrac{(b-a)^2}{12} \\ \hline \textbf{Normal} (\mu,\sigma^2) & \dfrac{1}{\sqrt{2\pi\sigma^2}}e^{-\tfrac{(x-\mu)^2}{2\sigma^2}} & \mu & \sigma^2 \\ \hline \textbf{Exponential} (\lambda) & \lambda e^{-\lambda x}, & \dfrac{1}{\lambda} & \dfrac{1}{\lambda^2} \\ \hline \textbf{Gamma} (k,\lambda) & \dfrac{\lambda^k}{\Gamma(k)}x^{\,k-1}e^{-\lambda x} & \dfrac{k}{\lambda} & \dfrac{k}{\lambda^2} \\ \hline \end{array}

Uniform Distribution

  • Definition: X∼Unif(a,b)X \sim Unif(a, b) has a uniform distribution on [a,b][a, b] if its pdf is f(x)=1b−af(x) = \frac{1}{b-a} for a≤x≤ba \leq x \leq b, 0 otherwise.

Probability over [c,d]⊆[a,b][c, d] \subseteq [a, b]: P(c≤X≤d)=∫cd1b−a dx=d−cb−aP(c \leq X \leq d) = \int_c^d \frac{1}{b-a} \, dx = \frac{d-c}{b-a} Uniform Distribution in higher dimensions.

Normal Distribution (Gaussian Distribution)

  • Standard Normal: Z∼N(0,1)Z \sim \mathcal{N}(0, 1) with PDF φ(z)\varphi(z) and CDF Φ(z)\Phi(z). φ(z)=12πe−z22,Φ(z)=∫−∞zφ(s)ds\varphi(z) = \frac{1}{\sqrt{2\pi}} e^{-\frac{z^2}{2}},\quad \Phi(z) = \int_{-\infty}^z \varphi(s) ds
    • ∫−∞+∞e−s22ds=2π\int_{-\infty}^{+\infty} e^{-\frac{s^2}{2}} ds = \sqrt{2\pi}
    • E(Z)=0E(Z) = 0, Var⁡(Z)=1\operatorname{Var}(Z) = 1.
    • Symmetry: φ(z)=φ(−z)\varphi(z) = \varphi(-z), Φ(z)=1−Φ(−z)\Phi(z) = 1 - \Phi(-z).
  • General Normal: X=σZ+μ∼N(μ,σ2)X = \sigma Z + \mu \sim \mathcal{N}(\mu, \sigma^2). f(x)=12πσ2e−(x−μ)22σ2,F(x)=Φ(x−μσ)f(x) = \frac{1}{\sqrt{2\pi \sigma^2}} e^{-\frac{(x - \mu)^2}{2\sigma^2}},\quad F(x) = \Phi\left(\frac{x - \mu}{\sigma}\right)
    • E(X)=μE(X) = \mu, Var⁡(X)=σ2\operatorname{Var}(X) = \sigma^2.

Exponential Distribution

  • Definition: X∼Exp⁡(λ)X \sim \operatorname{Exp}(\lambda) represents the waiting time until the first event in a process where events happen at a constant average rate λ\lambda per unit time, independently of each other. f(x)=λe−λxf(x) = \lambda e^{-\lambda x} for x≥0x \geq 0, 0 otherwise.
    • CDF: F(t)=1−e−λtF(t) = 1 - e^{-\lambda t} for t≥0t \geq 0, 0 otherwise.
    • P(X>t)=e−λtP(X > t) = e^{-\lambda t}.
  • E(X)=1λE(X) = \frac{1}{\lambda}, E(X2)=2λ2E(X^2) = \frac{2}{\lambda^2}, Var⁡(X)=1λ2\operatorname{Var}(X) = \frac{1}{\lambda^2}.
  • Memoryless Property: P(X>s+t∣X>s)=P(X>t)P(X > s + t \mid X > s) = P(X > t).

Gamma Distribution

  • Gamma Function: Γ(k)=∫0∞xk−1e−x dx\Gamma(k) = \int_0^\infty x^{k-1} e^{-x} \, dx, Γ(n)=(n−1)!\Gamma(n) = (n-1)! for integer nn.
  • Definition: X∼Gamma⁡(k,λ)X \sim \operatorname{Gamma}(k, \lambda) represents waiting time until the kth event in a Poisson process. f(x)=λkΓ(k)e−λxxk−1f(x) = \frac{\lambda^k}{\Gamma(k)} e^{-\lambda x} x^{k-1} for x≥0x \geq 0.
  • If independent Xi∼Exp⁡(λ)X_i \sim \operatorname{Exp}(\lambda), then ∑i=1nXi∼Gamma⁡(n,λ)\sum\limits_{i=1}^n X_i \sim \operatorname{Gamma}(n, \lambda).
  • Moments: E(X)=kλE(X) = \frac{k}{\lambda}, Var⁡(X)=kλ2\operatorname{Var}(X) = \frac{k}{\lambda^2}.

Distribution of a function of a random variable g(X)g(X)

  • Discrete Case:
    • PMF: P(Y=y)=P(g(X)=y)=∑k:g(k)=yP(X=k)P(Y = y) = P(g(X) = y) = \sum\limits_{k: g(k) = y} P(X = k).
    • If gg is one-to-one, P(Y=y)=P(X=g−1(y))P(Y = y) = P(X = g^{-1}(y)).
  • Continuous Case:
    • CDF Method: Find FY(y)=P(g(X)≤y)F_Y(y) = P(g(X) \leq y), then fY(y)=FY′(y)f_Y(y) = F_Y'(y).
    • Transformation Method (general):
      • For one-to-one differentiable gg, fY(y)=fX(g−1(y))∣ddyg−1(y)∣=fX(g−1(y))∣g′(g−1(y))∣f_Y(y) = f_X(g^{-1}(y)) \left| \frac{d}{dy}g^{-1}(y) \right| = \frac{f_X(g^{-1}(y))}{\left| g'(g^{-1}(y)) \right|} for yy such that g−1(y)g^{-1}(y) exists and g′(g−1(y))≠0g'(g^{-1}(y)) \neq 0.
      • For many-to-one differentiable gg: fY(y)=∑x:g(x)=yg′(x)≠0fX(x)∣g′(x)∣f_Y(y) = \sum\limits_{\substack{x : g(x) = y \\ g'(x) \neq 0}} \frac{f_X(x)}{|g'(x)|}.

Moment Generating Function (MGF)

  • Definition: For a random variable XX, the MGF is MX(t)=E[etX]M_X(t) = E[e^{tX}], t∈Rt \in \mathbb{R}.
    MX(n)(t)=E[XnetX]M_X^{(n)}(t) = E[X^n e^{tX}]
  • Transformation: If Y=aX+bY = aX + b, then MY(t)=etbMX(at)M_Y(t) = e^{tb} M_X(at).

Finding Moments from MGF

  • Property: If MX(t)M_X(t) is differentiable at t=0t = 0, the nn-th moment is E[Xn]=MX(n)(0)E[X^n] = M_X^{(n)}(0).
  • (Bernoulli): X∼Ber⁡(p)X \sim \operatorname{Ber}(p). MX(t)=(1−p)+petM_X(t) = (1-p) + p e^t, MX(n)(t)=petM_X^{(n)}(t) = p e^t.
  • (Exponential): X∼Exp⁡(λ)X \sim \operatorname{Exp}(\lambda), MX(t)=λλ−tM_X(t) = \frac{\lambda}{\lambda - t} for t<λt < \lambda. MX(n)(t)=n!λ(λ−t)−n−1M_X^{(n)}(t) = n! \lambda (\lambda - t)^{-n-1}, so E[Xn]=MX(n)(0)=n!λ−nE[X^n] = M_X^{(n)}(0) = n! \lambda^{-n}.
  • (Standard Normal): Z∼N(0,1)Z \sim \mathcal{N}(0, 1), MZ(t)=et2/2M_Z(t) = e^{t^2 / 2}.
    • Taylor expansion: et2/2=∑k=0∞(t2/2)kk!e^{t^2 / 2} = \sum_{k=0}^\infty \frac{(t^2 / 2)^k}{k!}.
    • Moments: E[Zn]=0E[Z^n] = 0 if nn is odd, E[Zn]=(n−1)!!E[Z^n] = (n-1)!! if nn is even (double factorial).

Equality in Distribution

  • Definition: X=dYX \stackrel{d}{=} Y if P(X∈B)=P(Y∈B)P(X \in B) = P(Y \in B) for all subsets B⊆RB \subseteq \mathbb{R}. Same PMF/PDF, MGF, Moments.
  • Theorem: If MX(t)=MY(t)M_X(t) = M_Y(t) for t∈(−δ,δ)t \in (-\delta, \delta), then X=dYX \stackrel{d}{=} Y.

Joint Distribution of Random Variables

Let X1,X2,…,XnX_1, X_2, \ldots, X_n be random variables on a sample space Ω\Omega. The random vector is defined as: X=(X1,X2,…,Xn):Ω→RnX = (X_1, X_2, \ldots, X_n): \Omega \rightarrow \mathbb{R}^n
The joint (multivariate) distribution is: P(X∈B)=P((X1,…,Xn)∈B),B⊆RnP(X \in B) = P((X_1, \ldots, X_n) \in B), B \subseteq \mathbb{R}^n
Marginal distributions are the distributions of individual coordinates XiX_i.
The joint CDF is F(x1,…,xn)=P(X1≤x1,…,Xn≤xn)F(x_1, \ldots, x_n) = P(X_1 \leq x_1, \ldots, X_n \leq x_n).

Discrete Joint Distribution

Definition: Let X1,…,XnX_1, \ldots, X_n be discrete RVs. The joint PMF is:

  • p(k1,…,kn)=P(X1=k1,…,Xn=kn)≥0p(k_1, \ldots, k_n) = P(X_1 = k_1, \ldots, X_n = k_n) \geq 0
  • ∑k1,…,knp(k1,…,kn)=1\sum\limits_{k_1,\ldots,k_n} p(k_1, \ldots, k_n) = 1

For a real-valued function g:Rn→Rg: \mathbb{R}^n \to \mathbb{R}: E[g(X1,…,Xn)]=∑k1,…,kng(k1,…,kn)p(k1,…,kn)E[g(X_1, \ldots, X_n)] = \sum\limits_{k_1,\ldots,k_n} g(k_1, \ldots, k_n) p(k_1, \ldots, k_n)

  • Marginal PMF: pXj(k)=∑k1,…,kj−1,kj+1,…,knp(k1,…,kj−1,k,kj+1,…,kn)p_{X_j}(k) = \sum\limits_{k_1,\ldots,k_{j-1},k_{j+1},\ldots,k_n} p(k_1, \ldots, k_{j-1}, k, k_{j+1}, \ldots, k_n)
  • Joint PMF of a subset (X1,…,Xm)(X_1, \ldots, X_m), where m<nm < n: pX1,…,Xm(k1,…,km)=∑km+1,…,knp(k1,…,km,km+1,…,kn)p_{X_1,\ldots,X_m}(k_1, \ldots, k_m) = \sum\limits_{k_{m+1},\ldots,k_n} p(k_1, \ldots, k_m, k_{m + 1}, \ldots, k_n)

For two variables XX and YY: pX(x)=∑ypX,Y(x,y)p_X(x) = \sum\limits_y p_{X,Y}(x, y)

Multinomial Distribution

(X1,…,Xr)∼Mult(n,r,p1,…,pr)(X_1, \ldots, X_r) \sim \text{Mult}(n, r, p_1, \ldots, p_r):

p(k1,…,kr)=(nk1,⋯ ,kr)p1k1⋯prkrp(k_1, \ldots, k_r) = \binom{n}{k_1, \cdots, k_r} p_1^{k_1} \cdots p_r^{k_r}
  • ∑ki=n\sum k_i = n, ∑pi=1\sum p_i = 1, ki≥0k_i \geq 0
  • Marginal: Xi∼Bin(n,pi)X_i \sim \text{Bin}(n, p_i)

Continuous Joint Distribution

Definition: RVs X1,…,XnX_1, \ldots, X_n are jointly continuous if there exists a joint density function ff on Rn\mathbb{R}^n such that:

P((X1,…,Xn)∈B)=∫⋯∫Bf(x1,…,xn)dx1⋯dxnP((X_1, \ldots, X_n) \in B) = \displaystyle\int \cdots \int_B f(x_1, \ldots, x_n) dx_1 \cdots dx_n
  • f(x1,…,xn)≥0f(x_1, \ldots, x_n) \geq 0
  • ∫−∞∞⋯∫−∞∞f(x1,…,xn)dx1⋯dxn=1\int_{-\infty}^\infty \cdots \int_{-\infty}^\infty f(x_1, \ldots, x_n) dx_1 \cdots dx_n = 1

Expectation: E[g(X1,…,Xn)]=∫−∞∞⋯∫−∞∞g(x1,…,xn)f(x1,…,xn)dx1⋯dxnE[g(X_1, \ldots, X_n)] = \displaystyle\int_{-\infty}^{\infty} \cdots \int_{-\infty}^{\infty} g(x_1, \ldots, x_n) f(x_1, \ldots, x_n) dx_1 \cdots dx_n

Marginal PDF: fXj(x)=∫−∞∞⋯∫−∞∞f(x1,…,xj−1,x,xj+1,…,xn)dx1⋯dxj−1dxj+1⋯dxnf_{X_j}(x) = \int_{-\infty}^\infty \cdots \int_{-\infty}^\infty f(x_1, \ldots, x_{j-1}, x, x_{j+1}, \ldots, x_n) dx_1 \cdots dx_{j-1} dx_{j+1} \cdots dx_n

For two RVs X,YX, Y: fX(x)=∫−∞∞fX,Y(x,y)dyf_X(x) = \int_{-\infty}^\infty f_{X,Y}(x, y) dy

Infinitesimal method: P(X1∈(a1,a1+ε),…,Xn∈(an,an+ε))≈f(a1,…,an)⋅εnP\bigl(X_1 \in (a_1, a_1 + \varepsilon), \ldots, X_n \in (a_n, a_n + \varepsilon)\bigr) \approx f(a_1, \ldots, a_n) \cdot \varepsilon^n

Independence of RVs

X1,…,XnX_1, \ldots, X_n are independent if

  • Discrete: p(k1,…,kn)=∏i=1npXi(ki)p(k_1, \ldots, k_n) = \prod\limits_{i=1}^n p_{X_i}(k_i)
  • Continuous: f(x1,…,xn)=∏i=1nfXi(xi)f(x_1, \ldots, x_n) = \prod\limits_{i=1}^n f_{X_i}(x_i)
  • CDF: F(x1,…,xn)=∏i=1nFXi(xi)F(x_1, \ldots, x_n) = \prod\limits_{i=1}^n F_{X_i}(x_i)
  • Functional Independence: If X1,…,Xm+nX_1, \ldots, X_{m+n} are independent, then Y=f(X1,…,Xm)Y = f(X_1, \ldots, X_m) and Z=g(Xm+1,…,Xm+n)Z = g(X_{m+1}, \ldots, X_{m+n}) are independent.

Exchangeable Random Variables

Definition: A sequence of rvs X1,…,XnX_1, \ldots, X_n is exchangeable if for any permutation (k1,…,kn)(k_1, \ldots, k_n) of (1,…,n)(1, \ldots, n), (X1,…,Xn)=d(Xk1,…,Xkn)(X_1, \ldots, X_n) \overset{d}{=} (X_{k_1}, \ldots, X_{k_n})

Consequences of Exchangeability:

  • Joint probabilities remain invariant under permutation.
  • XkX_k are identically distributed and have the same marginal distributions. X1=dXk1X_1 \overset{d}{=} X_{k_1} and further (X1,…,Xk)=d(Xi1,…,Xik)(X_1, \ldots, X_k) \overset{d}{=} (X_{i_1}, \ldots, X_{i_k})
  • PMF/PDF is symmetric.
  • Expectations of symmetric functions do not change under permutation: E[g(X1,…,Xk)]=E[g(Xi1,…,Xik)]E[g(X_1, \ldots, X_k)] = E[g(X_{i_1}, \ldots, X_{i_k})]

Independent Identically Distributed (i.i.d) Random Variables

A sequence X1,X2,…X_1, X_2, \ldots is i.i.d. if all XiX_i are independent and each XiX_i has the same probability distribution.
Theorem: An i.i.d. sequence of random variables is exchangeable.

  • Let X1,…,XkX_1, \ldots, X_k be sampled without replacement from {1,2,…,n}\{1, 2, \ldots, n\}. Then the sequence is exchangeable.
  • If X1,…,XnX_1, \ldots, X_n are exchangeable, then the sequence g(X1),…,g(Xn)g(X_1), \ldots, g(X_n) for any function gg is exchangable.

Sum of Random Variables

Convolution of Distributions

Discrete Sum

pX+Y(n)=∑kpX,Y(k,n−k)p_{X+Y}(n) = \sum\limits_k p_{X,Y}(k, n - k)

If XX and YY are independent, then

pX+Y(n)=∑kpX(k)pY(n−k)=(pX∗pY)(n)p_{X+Y}(n) = \sum\limits_k p_X(k) p_Y(n - k) = (p_X * p_Y)(n)

This is called the convolution of XX and YY.

Continuous Sum

fX+Y(z)=∫−∞∞fX,Y(x,z−x)dxf_{X+Y}(z) = \int_{-\infty}^{\infty} f_{X,Y}(x, z - x) dx

If XX and YY are independent, then

fX+Y(z)=∫−∞∞fX(x)fY(z−x)dx=(fX∗fY)(z)f_{X+Y}(z) = \int_{-\infty}^{\infty} f_X(x) f_Y(z - x) dx = (f_X * f_Y)(z)

Convolutions of Distributions

Denote Sn=∑i=1nXiS_n = \sum\limits_{i=1}^n X_i and each XiX_i is independent to each other.

  • Xi∼Ber(p)X_i \sim \text{Ber}(p), then Sn∼Bin(n,p)S_n \sim \text{Bin}(n, p)
  • Xi∼Bin(ni,p)X_i \sim \text{Bin}(n_i, p), then Sn∼Bin(∑ni,p)S_n \sim \text{Bin}(\sum\limits n_i, p)
  • Xi∼Geo(p)X_i \sim \text{Geo}(p), then Sn∼NB(n,p)S_n \sim \text{NB}(n, p)
  • Xi∼Poi(λi)X_i \sim \text{Poi}(\lambda_i), then Sn∼Poi(∑λi)S_n \sim \text{Poi}(\sum\limits \lambda_i)
  • Xi∼Exp(λ)X_i \sim \text{Exp}(\lambda), then Sn∼Gamma(n,λ)S_n \sim \text{Gamma}(n, \lambda).
    fX+Y(z)=λ2ze−λzf_{X+Y}(z) = \lambda^2 z e^{-\lambda z}
  • Xi∼Gamma(ki,λ)X_i \sim \text{Gamma}(k_i, \lambda), then Sn∼Gamma(∑ki,λ)S_n \sim \text{Gamma}(\sum\limits k_i, \lambda)
  • Xi∼N(μi,σi2)X_i \sim \mathcal{N}(\mu_i, \sigma_i^2) and Sn=∑i=1naiXi+bS_n = \sum\limits_{i = 1}^n a_i X_i + b, then Sn∼N(μ,σ2)S_n \sim \mathcal{N}(\mu, \sigma^2)
    μ=∑aiμi+b, σ2=∑ai2σi2\mu = \sum a_i \mu_i + b,\ \sigma^2 = \sum a_i^2 \sigma_i^2
  • If X,Y∼Unif(0,1)X, Y \sim \text{Unif}(0, 1), then fX+Y(z)={z,0≤z≤12−z,1<z≤20,otherwisef_{X+Y}(z) = \begin{cases} z, & 0 \le z \le 1 \\ 2 - z, & 1 < z \le 2 \\ 0, & \text{otherwise} \end{cases}

Expectation and Variance of Sums

  • Linearity of expectation
    E[∑i=1ngi(Xi)]=∑i=1nE[gi(Xi)].E\bigl[\sum\limits_{i=1}^n g_i(X_i) \bigr] = \sum\limits_{i=1}^n E\bigl[g_i(X_i)\bigr].

    (Independence is not required).

  • Indicator Method
    If X=∑IiX=\sum I_i where each IiI_i is an indicator (bernoulli) rv, then E[X]=∑E[Ii]=∑P(Ii=1).E[X] = \sum E[I_i] = \sum P(I_i=1).

  • Product of expectations
    If X1,…,XnX_1,\dots,X_n are independent, then E[∏i=1ngi(Xi)]=∏i=1nE[ gi(Xi) ]E\Bigl[\prod\limits_{i=1}^n g_i(X_i)\Bigr] = \prod\limits_{i=1}^n E[\,g_i(X_i)\,].

  • Variance of a sum
    If X1,…,XnX_1,\dots,X_n are independent with Var⁡(Xi)<∞\operatorname{Var}(X_i)<\infty, then Var⁡(∑i=1nXi)=∑i=1nVar⁡(Xi)\operatorname{Var}\bigl(\sum\limits_{i=1}^n X_i) = \sum\limits_{i=1}^n \operatorname{Var}(X_i).

  • Sample mean and sample variance
    Let X1,X2,…X_1, X_2, \dots be i.i.d. rvs with finite mean μ\mu and variance σ2\sigma^2. Define the sample mean of the first nn observations X‾n=1n∑i=1nXi\overline{X}_n = \frac{1}{n}\sum\limits_{i=1}^n X_i. Then E[X‾n]=μ, Var⁡(X‾n)=σ2nE[\overline{X}_n] = \mu, \ \operatorname{Var}(\overline{X}_n) = \frac{\sigma^2}{n}.

    Interpretation: X‾n\overline{X}_n is an unbiased estimator of μ\mu, and its variance shrinks at rate 1/n1/n.

    • The effect of averaging: As n→∞n \to \infty, Var⁡(X‾n)\operatorname{Var}(\overline{X}_n) vanishes, and so X‾n\overline{X}_n converges to mean μ\mu.

Moment Generating Functions (MGFs) of Sums

  • If XX and YY are independent, then MX+Y(t)=MX(t) MY(t)M_{X+Y}(t) = M_X(t)\,M_Y(t).
    More generally, for independent X1,…,XnX_1,\dots,X_n: M∑iXi(t)=∏i=1nMXi(t)M_{\sum\limits_i X_i}(t) = \prod\limits_{i=1}^n M_{X_i}(t).
  • Uniqueness & distribution of sums
    If MX+Y(t)M_{X+Y}(t) matches the MGF of a known rv ZZ, then X+YX+Y and ZZ share the same distribution.

Covariance

  • Definition: For random variables XX and YY, the covariance is Cov(X,Y)=E[(X−μX)(Y−μY)]=E[XY]−E[X]E[Y]\mathrm{Cov}(X,Y) = E\bigl[(X-\mu_X)(Y-\mu_Y)\bigr] = E[XY] - E[X]E[Y]

  • Cov(X,X)=Var(X)\mathrm{Cov}(X,X) = \mathrm{Var}(X)

  • Sign of Covariance

    • Cov(X,Y)>0\mathrm{Cov}(X,Y)>0: positively correlated. XX and YY tend to deviate together.
    • Cov(X,Y)<0\mathrm{Cov}(X,Y)<0: negatively correlated. XX and YY tend to deviate in opposite directions.
    • Cov(X,Y)=0\mathrm{Cov}(X,Y)=0: uncorrelated.
  • Independent implies uncorrelated, but uncorrelated doesn't imply independent. If X⊥YX\perp Y, then Cov(X,Y)=0\mathrm{Cov}(X,Y)=0.

  • If IAI_A and IBI_B are indicators of events AA and BB, then Cov(IA,IB)=P(A∩B)−P(A)P(B)=P(B)[P(A∣B)−P(A)]\mathrm{Cov}(I_A, I_B) = P(A\cap B) - P(A)P(B) = P(B)\bigl[P(A\mid B)-P(A)\bigr]
    In particular, Cov(IA,IB)=0\mathrm{Cov}(I_A,I_B)=0 if and only if AA and BB are independent.

Variance of Sum (with Covariances)

  • For X1,…,XnX_1,\dots,X_n with finite variances and covariances, Var(∑i=1nXi)=∑i=1nVar(Xi)+2∑1≤i<j≤nCov(Xi,Xj)\mathrm{Var}\Bigl(\sum\limits_{i=1}^n X_i\Bigr) = \sum\limits_{i=1}^n \mathrm{Var}(X_i) + 2\sum\limits_{1\le i<j\le n}\mathrm{Cov}(X_i,X_j)
    If they are uncorrelated, then Var(∑i=1nXi)=∑i=1nVar(Xi)\mathrm{Var}\Bigl(\sum\limits_{i=1}^n X_i\Bigr) = \sum\limits_{i=1}^n \mathrm{Var}(X_i).

Properties of Covariance

  1. Symmetry: Cov(X,Y)=Cov(Y,X)\mathrm{Cov}(X,Y)=\mathrm{Cov}(Y,X).
  2. Linearity in First Argument: Cov(aX+b, Y)=a Cov(X,Y)\mathrm{Cov}(aX+b,\,Y)=a\,\mathrm{Cov}(X,Y).
  3. Bilinearity: Cov(∑i=1naiXi,∑j=1mbjYj)=∑i=1n∑j=1mai bjCov(Xi,Yj)\mathrm{Cov}\Bigl(\sum\limits_{i=1}^n a_iX_i, \sum\limits_{j=1}^m b_jY_j\Bigr) = \sum\limits_{i=1}^n\sum\limits_{j=1}^m a_i\,b_j \mathrm{Cov}(X_i,Y_j)

Correlation Coefficient

Corr(X,Y)=Cov(X,Y)Var(X)Var(Y)\mathrm{Corr}(X,Y) = \frac{\mathrm{Cov}(X,Y)}{\sqrt{\mathrm{Var}(X)}\sqrt{\mathrm{Var}(Y)}}, ρ(X,Y)∈[−1,1]\rho(X,Y) \in [-1, 1]

Key Properties

  1. a≠0a\neq0, then Corr(aX+b,Y)=a∣a∣Corr(X,Y)\mathrm{Corr}(aX + b, Y) = \frac{a}{\lvert a\rvert} \mathrm{Corr}(X,Y).
  2. Corr(aX+b,cY+d)=ac∣ac∣Corr(X,Y)\mathrm{Corr}(aX + b, cY + d) = \frac{ac}{\lvert ac\rvert}\mathrm{Corr}(X,Y)
  3. Corr(X,Y)=1\mathrm{Corr}(X,Y)=1 if and only if Y=aX+bY = aX + b for a>0a>0 and b∈Rb\in\mathbb{R}.
  4. Corr(X,Y)=−1\mathrm{Corr}(X,Y)=-1 if and only if Y=aX+bY = aX + b for a<0a<0 and b∈Rb\in\mathbb{R}.

Multinomial Example

  • For (X1,…,Xk)∼Multinomial(n,k,p1,…,pk)(X_1,\dots,X_k)\sim\mathrm{Multinomial}(n, k, p_1,\dots,p_k): Cov(Xi,Xj)={n pi(1−pi),i=j,−n pi pj,i≠j.\mathrm{Cov}(X_i,X_j) = \begin{cases} n\,p_i(1-p_i), & i=j,\\ -n\,p_i\,p_j, & i\neq j. \end{cases}
    Corr(Xi,Xj)=−pi pj(1−pi)(1−pj)\mathrm{Corr}(X_i,X_j) = -\sqrt{\frac{p_i\,p_j}{(1-p_i)(1-p_j)}} for i≠ji\neq j.

Tail Bounds and Limit Theorems

Inequality

  • Lemma: If X≥YX \ge Y, then E[X]≥E[Y]E[X] \ge E[Y]
  • Markov's Inequality: XX is nonnegative rv and c>0c>0, then P(X≥c)≤E[X]cP(X \ge c) \le \frac{E[X]}{c}.
  • Chebyshev's Inequality: Let XX have mean μ\mu and variance σ2\sigma^2. For any c>0c>0, P(∣X−μ∣≥c)≤σ2c2P(|X-\mu|\ge c) \le \frac{\sigma^2}{c^2}.
    Equivalently, P(X≥μ+c)≤σ2c2, P(X≤μ−c)≤σ2c2.P(X\ge\mu+c)\le\frac{\sigma^2}{c^2}, \ P(X\le\mu-c)\le\frac{\sigma^2}{c^2}.

Continuity Theorem for MGFs

Random variables Y1,Y2,Y3,…Y_1, Y_2, Y_3, \ldots satisfy lim⁡n→∞MYn(t)=MX(t)\lim\limits_{n \to \infty} M_{Y_n}(t) = M_X(t) for all tt in the interval (−ε,ε)(-\varepsilon, \varepsilon). Then for any a∈Ra \in \mathbb{R}, lim⁡n→∞P(Yn≤a)=P(X≤a)\lim\limits_{n \to \infty} P(Y_n \le a) = P(X \le a)

Central Limit Theorem (CLT)

Let {Xi}\{X_i\} be i.i.d. with mean μ\mu and variance σ2\sigma^2 and Sn=∑i=1nXi S_n = \sum\limits_{i=1}^n X_i
lim⁡n→∞P(a≤Sn−nμnσ2≤b)=Φ(b)−Φ(a)\lim\limits_{n\to\infty} P\bigl(a \le \frac{S_n - n\mu}{\sqrt{n\sigma^2}} \le b\bigr) = \Phi(b) - \Phi(a)

Normal Approximation for Binomial Distribution by CLT

Sn∼Bin⁡(n,p)S_n \sim \operatorname{Bin}(n, p) approximates N(μ=np, σ2=np(1−p))\mathcal{N}(\mu = np,\ \sigma^2 = np(1-p))

For large nn and np(1−p)>10np(1-p) > 10, P(a≤Sn−npnp(1−p)≤b)≈Φ(b)−Φ(a)P\left(a \leq \frac{S_n - np}{\sqrt{np(1-p)}} \leq b\right) \approx \Phi(b) - \Phi(a)

Continuity Correction: Since SnS_n is discrete distribution, for integer bounds k1≤Sn≤k2k_1 \leq S_n \leq k_2:

P(k1≤Sn≤k2)=P(k1−0.5≤Sn≤k2+0.5)≈Φ(k2+0.5−npnp(1−p))−Φ(k1−0.5−npnp(1−p))\begin{aligned} P(k_1 \leq S_n \leq k_2) &= P(k_1 - 0.5 \leq S_n \leq k_2 + 0.5) \\ &\approx \Phi\left(\frac{k_2 + 0.5 - np}{\sqrt{np(1-p)}}\right) - \Phi\left(\frac{k_1 - 0.5 - np}{\sqrt{np(1-p)}}\right) \end{aligned}

Law of Large Numbers (LLN)

Let {Xi}\{X_i\} be i.i.d. with mean μ\mu and variance σ2\sigma^2. Define Sn=∑i=1nXiS_n = \sum\limits_{i=1}^n X_i Then for every ε>0\varepsilon>0, lim⁡n→∞P(∣Snn−μ∣<ε)=1\lim\limits_{n\to\infty} P\bigl(\bigl|\frac{S_n}{n} - \mu\bigr|<\varepsilon\bigr) = 1
Strong LLN: P(lim⁡n→∞Snn=μ)=1P\bigl(\lim\limits_{n\to\infty} \frac{S_n}{n} = \mu \bigr) = 1

LLN for Binomial Distribution

For Sn∼Bin⁡(n,p)S_n \sim \operatorname{Bin}(n, p), the sample proportion Snn\frac{S_n}{n} converges to pp:
lim⁡n→∞P(∣Snn−p∣<ε)=1\lim\limits_{n \to \infty} P\left(\left|\frac{S_n}{n} - p\right| < \varepsilon\right) = 1 for any ε>0\varepsilon > 0.

The confidence interval is (p^−ε, p^+ε)(\hat{p} - \varepsilon,\ \hat{p} + \varepsilon)

P(∣p^−p∣<ε)=P(∣Snn−p∣<ε)≈2Φ(εnp(1−p))−1≥2Φ(2εn)−1\begin{aligned} P(|\hat{p} - p| < \varepsilon) &= P(|\frac{S_n}{n} - p| < \varepsilon) \\ &\approx 2\Phi\left(\frac{\varepsilon \sqrt{n}}{\sqrt{p(1-p)}}\right) - 1 \\ &\geq 2\Phi\left(2\varepsilon \sqrt{n}\right) - 1 \end{aligned}

Poisson Approximation for Binomial Distribution

Sn∼Bin⁡(n, p=λn)S_n \sim \operatorname{Bin}(n,\ p = \frac{\lambda}{n})
Law of Rare Events:

lim⁡n→∞P(Sn=k)=e−λλkk!\lim\limits_{n \to \infty} P(S_n = k) = \frac{e^{-\lambda}\lambda^k}{k!}

Theorem: For X∼Bin(n,p)X \sim \text{Bin}(n, p) and Y∼Poisson(np)Y \sim \text{Poisson}(np), then for any subset A⊆{0,1,2,… }A \subseteq \{0, 1, 2, \dots\}, ∣P(X∈A)−P(Y∈A)∣≤np2\left| P(X \in A) - P(Y \in A) \right| \leq np^2. Therefore, when np2np^2 is small, XX approimates YY.

Monte Carlo Method and Confidence Interval

μ≈Xˉn=1n∑i=1nXi,σ2≈sn2=1n−1∑i=1n(Xi−Xˉn)2.\mu \approx \bar X_n = \frac{1}{n} \sum\limits_{i=1}^n X_i, \quad \sigma^2 \approx s_n^2 = \frac{1}{n-1}\sum\limits_{i=1}^n (X_i-\bar X_n)^2.
Zn=(Xˉn−μ)nsnZ_n = \frac{(\bar X_n - \mu)\sqrt{n}}{s_n}

Conditional Distribution

Conditioning Discrete RVs on an Event

Let XX be a discrete rv and BB an event with P(B)>0P(B)>0.

  • The conditional PMF of XX given BB: pX∣B(k)=P(X=k∣B)=P({X=k}∩B)P(B)p_{X\mid B}(k) = P(X=k\mid B) = \frac{P(\{X=k\}\cap B)}{P(B)}
  • The conditional expectation of XX given BB: E[X∣B]=∑kk pX∣B(k).E[X\mid B] = \sum\limits_k k\ p_{X\mid B}(k).

Partitioning by events B1,…,BnB_1,\dots,B_n with P(Bi)>0P(B_i)>0:

  • Unconditional PMF: pX(k)=∑i=1npX∣Bi(k)P(Bi).p_X(k) = \sum\limits_{i=1}^n p_{X\mid B_i}(k) P(B_i).
  • Unconditional expectation: E[X]=∑i=1nE[X∣Bi]P(Bi).E[X] = \sum\limits_{i=1}^n E[X | B_i] P(B_i).

Conditional Distribution for Discrete RVs

Let X,YX,Y be discrete rvs and yy such that pY(y)>0p_Y(y)>0

  • The conditional PMF of XX given Y=yY=y: pX∣Y(x∣y)=P(X=x∣Y=y)=pX,Y(x,y)pY(y)p_{X\mid Y}(x\mid y) = P(X=x\mid Y=y) = \frac{p_{X,Y}(x,y)}{p_Y(y)} pX,Y(x,y)=pX∣Y(x∣y) pY(y)p_{X,Y}(x,y) = p_{X\mid Y}(x\mid y)\ p_Y(y)
  • The conditional expectation of g(X)g(X) given Y=yY=y: E[g(X)∣Y=y]=∑xg(x)pX∣Y(x∣y)E[g(X)\mid Y=y] = \sum\limits_x g(x) p_{X\mid Y}(x\mid y)

Marginalization:

  • pX(x)=∑ypX∣Y(x∣y) pY(y)p_X(x) = \sum\limits_y p_{X | Y}(x \mid y)\ p_Y(y)
  • E[X]=∑yE[X∣Y=y] pY(y)E[X] = \sum\limits_y E[X | Y=y]\ p_Y(y)

Conditional Distribution for Jointly Continuous RVs

Let X,YX,Y be jointly continuous rvs with joint PDF fX,Y(x,y)f_{X,Y}(x,y) and fY(y)>0f_Y(y)>0.

  • The conditional PDF of XX given Y=yY=y: fX∣Y(x∣y)=fX,Y(x,y)fY(y)f_{X\mid Y}(x\mid y) = \frac{f_{X,Y}(x,y)}{f_Y(y)} fX,Y(x,y)=fX∣Y(x∣y)fY(y)f_{X,Y}(x,y) = f_{X\mid Y}(x\mid y) f_Y(y)
  • The conditional expectation of g(X)g(X) given Y=yY=y: E[g(X)∣Y=y]=∫−∞∞g(x) fX∣Y(x∣y) dx.E[g(X)\mid Y=y] = \int_{-\infty}^{\infty} g(x)\,f_{X\mid Y}(x\mid y)\,dx.
  • The conditional probability that X∈AX \in A given Y=yY=y: P(X∈A∣Y=y)=∫AfX∣Y(x∣y)dxP(X \in A \mid Y=y) = \int_A f_{X\mid Y}(x\mid y) dx

Averaging Identities:

  • fX(x)=∫−∞∞fX∣Y(x∣y) fY(y) dyf_X(x) = \int_{-\infty}^{\infty} f_{X\mid Y}(x\mid y)\,f_Y(y)\,dy
  • E[g(X)]=∫−∞∞E[g(X)∣Y=y]fY(y) dyE[g(X)] = \int_{-\infty}^{\infty} E[g(X)\mid Y=y] f_Y(y)\,dy

Multivariate Conditional Distributions

  • Discrete case

    pX1,…,Xn∣Y(x1,…,xn∣y)=pX1,…,Xn,Y(x1,…,xn,y)pY(y)p_{X_1,\dots,X_n\mid Y}(x_1,\dots,x_n\mid y) = \frac{p_{X_1,\dots,X_n,Y}(x_1,\dots,x_n,y)}{p_Y(y)} E[g(X1,…,Xn)∣Y=y]=∑x1,…,xng(x1,…,xn) pX1,…,Xn∣Y(x1,…,xn∣y)E\bigl[g(X_1,\dots,X_n)\mid Y=y\bigr] = \sum\limits_{x_1,\dots,x_n} g(x_1,\dots,x_n)\,p_{X_1,\dots,X_n\mid Y}(x_1,\dots,x_n\mid y)
  • Continuous case

    fX1,…,Xn∣Y(x1,…,xn∣y)=fX1,…,Xn,Y(x1,…,xn,y)fY(y)f_{X_1,\dots,X_n\mid Y}(x_1,\dots,x_n\mid y) = \frac{f_{X_1,\dots,X_n,Y}(x_1,\dots,x_n,y)}{f_Y(y)} E[g(X1,…,Xn)∣Y=y]=∫⋯∫g(x1,…,xn) fX1,…,Xn∣Y(x1,…,xn∣y) dx1⋯dxn.E\bigl[g(X_1,\dots,X_n)\mid Y=y\bigr] = \int\cdots\int g(x_1,\dots,x_n)\,f_{X_1,\dots,X_n\mid Y}(x_1,\dots,x_n\mid y)\,dx_1\cdots dx_n.
  • E[g1(X1)+⋯+gn(Xn)∣Y]=E[g1(X1)∣Y]+⋯+E[gn(Xn)∣Y]E\bigl[g_1(X_1) + \cdots + g_n(X_n)\mid Y\bigr] = E\bigl[g_1(X_1)\mid Y\bigr] + \cdots + E\bigl[g_n(X_n)\mid Y\bigr]

Conditional Expectation as a Random Variable

Definition: v(y)=E[X∣Y=y]v(y) = E[X \mid Y=y] is a number. The conditional expectation of XX given YY is the random variable E(X∣Y)=v(Y)E(X \mid Y) = v(Y).
E(aX+b∣Y)=aE(X∣Y)+bE(aX + b \mid Y) = aE(X \mid Y) + b

Tower Property (Law of Total Expectation)
E[E(X∣Y)]=E[X]E\bigl[E(X \mid Y)\bigr] = E[X]
E[E(g(X)∣Y)]=E[g(X)]E[E(g(X)\mid Y)] = E[g(X)]
E[E[ g(X1,…,Xn)∣Y]]=E[g(X1,…,Xn)]E\bigl[E[\,g(X_1,\dots,X_n)\mid Y]\bigr] = E\bigl[g(X_1,\dots,X_n)\bigr]

Identity:
E[g(X)∣X]=g(X)E[g(X) \mid X] = g(X), E(X∣X)=XE(X \mid X) = X

E[h(X,Y)∣Y=y]=E[h(X,y)∣Y=y]E\bigl[h(X,Y)\mid Y = y\bigr] = E\bigl[h(X,y)\mid Y = y\bigr]

"Pull‐out" property: E[a(X) b(Y)∣Y]=b(Y)E[a(X)∣Y]E\bigl[a(X)\,b(Y)\mid Y\bigr] = b(Y)E\bigl[a(X)\mid Y\bigr]

Independence by Conditioning

X⊥YX\perp Y if and only if

  • Discrete: pX∣Y(x∣y)=pX(x)p_{X\mid Y}(x\mid y)=p_X(x) for all xx, yy with pY(y)>0p_Y(y)>0.
  • Continuous: fX∣Y(x∣y)=fX(x)f_{X\mid Y}(x\mid y)=f_X(x) for all xx, yy with fY(y)>0f_Y(y)>0.
  • E[g(X)∣Y]=E[g(X)]E[g(X)\mid Y]=E[g(X)] (a constant).
Search

Loading search…