The Probability Space

Formal
(Probability Space)

The probability space is a triplet (Ω,A,P)(\Omega, \mathcal{A}, P).

  1. The Sample Space (Ω)(\Omega) The set of all possible elementary outcomes of an experiment. For example, for 2 consecutive coin tosses: HH,HT,TH,TTHH, HT, TH, TT.
  2. Event Space (A)(\mathcal{A}). A collection of subsets of Ω\Omega. An Event is an element EAE \in \mathcal{A}. In our example, an event could be {HT}\{HT\} or {HH,HT}\{HH, HT\}. A collection A\mathcal{A} of subsets of Ω\Omega is a σ\sigma-algebra if
    • ΩA\Omega \in \mathcal{A}.
    • If EAE \in \mathcal{A},then its complement EcAE^c \in \mathcal{A}.
    • If E1,E2,AE_{1}, E_{2}, \dots \in \mathcal{A} then their countable union i=1EiA\bigcup_{i=1}^\infty E_{i} \in \mathcal{A}. Example of an event space that is σ\sigma-algebra is {,Ω,{HT,HH},{TH,TT}}\{\emptyset, \Omega, \{HT, HH\}, \{TH, TT\}\}. Verify why it’s a σ\sigma-algebra. In general, a full power set of sample space with cardinality N, has 2N2^N elements and forms a σ\sigma-algebra.
  3. Probability Measure (P)(P). A function P:ARP:\mathcal{A} \rightarrow \mathbb{R} that assigns a probability to each event. PP must satisfy Kolmogorov Axioms:
    • Non-negativity: For any event EA,P(E)0E\in\mathcal{A}, P(E) \ge 0.
    • Normalization: P(Ω)=1P(\Omega)=1. (Something must happen).
    • Countable Additivity: If E1,E2,E_{1}, E_{2},\dots are pairwise disjoint events (i.e., E1E2=E_{1} \cap E_{2} = \emptyset for iji\ne j) then
P(i=1Ei)=i=1P(Ei)(1)P\left(\bigcup_{i=1}^\infty E_{i}\right)=\sum_{i=1}^\infty P(E_{i}) \tag{1}
(Random Variables)

A Random Variable (RV) X:ΩRX : \Omega \rightarrow \mathbb{R} is a function that maps the sample space to the real numbers.

In the Axioms, the sample space Ω\Omega contains raw outcomes. These could be anything: a whole RPC response, log line, state of a coin toss etc. These are hard to do math with. A Random Variable is essentially a refactoring step. It’s a deterministic function that parses the raw outcome and extracts a value (numerical?) of interest. RV is not random, nor is it variable. All the randomness arises from the sample space Ω\Omega.

P(X=x)P({ωΩ    X(ω)=x})(2)P(X=x) \equiv P(\{\omega \in \Omega\;|\;X(\omega) = x\})\tag{2}

Discrete RVs: The set of possible values XX can return is countable. The Image of XX (Im(X)={X(ω)    ωΩ}\mathrm{Im}(X)=\{ X(\omega)\;|\;\omega \in \Omega \}) is a countable set. Continuous RVs: The set of possible values XX can take is uncountable.

Connections
  • #type/concept
  • #probability
  • #probability-space