Skip to content

Probability & Random Variables

Measure-Theoretic Foundations

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


1. Conditional Probability & Multiplication Rule

📊Visual Mathematical Intuition
Sample Space Partition & Bayesian Conditional Branching
Sample Space S B_1 B_2 B_3 Event A P(B1) P(A|B1) P(B2) P(A|B2) P(B3) P(A|B3) Posterior: P(B_k|A) = [P(A|B_k)P(B_k)] / P(A)
Total Probability:P(A)=i=1nP(ABi)P(Bi)P(A) = \sum_{i=1}^n P(A|B_i) P(B_i)
Bayes Theorem:P(BkA)=P(ABk)P(Bk)P(ABi)P(Bi)P(B_k|A) = \frac{P(A|B_k) P(B_k)}{\sum P(A|B_i) P(B_i)}

Sample space partition S=BiS = \bigcup B_i intersecting target event AA, alongside the Bayesian conditional probability decision tree showing prior and posterior probabilities.

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 E1,E2,,En form a partition of the sample space Ω (EiEj= and Ei=Ω) with P(Ei)>0. For any event A with P(A)>0:

P(Ek|A)=P(Ek)P(A|Ek)i=1nP(Ei)P(A|Ei)

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