PROJECTENGRAM

RANDOM VARIABLE

Tags: #◇Computer Science #◇STT101A #◇Conceptual #◇Random Variable


◇Overview

A Random Variable XX is neither random nor a variable in the algebraic sense: formally, it is a deterministic real-valued function X:S→RX : S \to \mathbb{R} defined on a sample space SS that maps every elementary outcome ω∈S\omega \in S to a unique real number X(ω)∈RX(\omega) \in \mathbb{R}. Randomness enters through the underlying probability measure PP on SS.

◇Key Definitions

  • Function Mapping: X:S→RX : S \to \mathbb{R}, assigning a numerical value X(ω)X(\omega) to each outcome ω∈S\omega \in S.
  • Inverse Image (Pre-image) Probability: For any subset B⊆RB \subseteq \mathbb{R}, the induced probability is:
    P(X∈B)=P({ω∈S:X(ω)∈B})=P(X−1(B))P(X \in B) = P(\{\omega \in S : X(\omega) \in B\}) = P(X^{-1}(B))
  • Notation Convention: Uppercase letters (X,Y,ZX, Y, Z) denote the random variable (the function), while lowercase letters (x,y,zx, y, z) denote specific numerical values in its range/support.

◇Worked Example

Problem: Flip a fair coin 33 times, so S={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}S = \{HHH, HHT, HTH, THH, HTT, THT, TTH, TTT\} (∣S∣=8|S| = 8). Let X(ω)X(\omega) be the number of Heads in outcome ω\omega.

  • X(TTT)=0  ⟹  P(X=0)=18X(TTT) = 0 \implies P(X = 0) = \frac{1}{8}
  • X(HTT)=X(THT)=X(TTH)=1  ⟹  P(X=1)=38X(HTT) = X(THT) = X(TTH) = 1 \implies P(X = 1) = \frac{3}{8}
  • X(HHT)=X(HTH)=X(THH)=2  ⟹  P(X=2)=38X(HHT) = X(HTH) = X(THH) = 2 \implies P(X = 2) = \frac{3}{8}
  • X(HHH)=3  ⟹  P(X=3)=18X(HHH) = 3 \implies P(X = 3) = \frac{1}{8}

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

In mathematical probability theory, what is the formal definition of a random variable XX?

Q2

In the 33-coin-toss worked example where X(ω)X(\omega) counts the number of Heads, what is the pre-image event X−1({2})={ω∈S:X(ω)=2}X^{-1}(\{2\}) = \{\omega \in S : X(\omega) = 2\}?

Q3

Why do we follow the typographical convention of writing P(X=x)P(X = x) with an uppercase XX and a lowercase xx?

Q4

Can two different outcomes ω1≠ω2\omega_1 \ne \omega_2 in the sample space SS map to the same numerical value X(ω1)=X(ω2)X(\omega_1) = X(\omega_2)?

Q5

Can we define more than one random variable on the exact same sample space SS?

Random Variable | PROJECT ENGRAM