Skip to main content

Random variables

A random variable is a function X:ΩRX: \Omega \rightarrow {\mathbb R}. It basically measures a certain value of each atomic event. Let us look at some examples.

  • Coin tossing: Each atomic event is an outcome w{0,1}kw \in \{0,1\}^k of kk coin tosses. Let XX be the number of heads and YY the number of occurrences of two consecutive heads. Then both XX and YY are random variables; in particular, X(w)=iwiX(w) = \sum_i w_i for wΩw \in \Omega. For w=0111011w = 0111011, we have X(w)=5X(w) = 5 and Y(w)=3Y(w) = 3.

  • Random graphs: Each atomic event is a graph in Γn\Gamma_n. Let ZZ be the degree of vertex 11, and WW be the diameter. Then both ZZ and WW are random variables.

For random variable XX, when we write the event "X=kX=k", it means the set {wΩ:X(w)=k}\{w \in \Omega: X(w) = k\} (recall that an event is a subset of the sample space). In this way, the notation P[X=k]{\mathbb P}[X=k] is syntactically correct and refers to the probability of the set.