Skip to content

Probability & Random Variables

Measure-Theoretic Foundations

Probability assigns a real number $P(E) \in [0, 1]$ to events in a sample space $\Omega$ satisfying Kolmogorov's axioms: $P(\Omega) = 1$ and countable additivity for mutually disjoint events $P(\bigcup E_i) = \sum P(E_i)$.


1. Conditional Probability & Multiplication Rule

P(A|B)=P(AB)P(B)(P(B)>0)
  • Independent Events: A and B are independent iff P(AB)=P(A)P(B)P(A|B)=P(A).

2. Law of Total Probability & Bayes' Theorem

Bayes' Inverse Probability Theorem

Let $E_1, E_2, \dots, E_n$ form a partition of the sample space $\Omega$ ($E_i \cap E_j = \emptyset$ and $\bigcup E_i = \Omega$) with $P(E_i) > 0$. For any event $A$ with $P(A) > 0$: $$P(E_k | A) = \frac{P(E_k) \cdot P(A | E_k)}{\sum_{i=1}^n P(E_i) \cdot P(A | E_i)}$$


3. Random Variables, Expectation & Variance

For a discrete random variable X with probability mass function P(X=xi)=pi:

  • Expectation (Mean): E[X]=μ=xipi
  • Variance: Var(X)=σ2=E[(Xμ)2]=E[X2](E[X])2

Properties of Expectation and Variance

  1. E[aX+b]=aE[X]+b
  2. Var(aX+b)=a2Var(X)
  3. For independent random variables X and Y: Var(X±Y)=Var(X)+Var(Y).

4. Binomial Distribution B(n,p)

For n independent Bernoulli trials with success probability p and failure probability q=1p:

P(X=k)=(nk)pkqnk,k=0,1,2,,n
  • Mean: E[X]=np
  • Variance: Var(X)=npq
  • Standard Deviation: σ=npq