콘텐츠로 이동

1.5. Random Variables

1.5.1. Random Variables and Distributions

Definition 1.5.1 : Random variables

Consider a random experiment with a sample space \(\mathcal{C}\). A function \(X\) that assigns to each element \(c \in \mathcal{C}\) one and only one number \(X(c)=x\) is called a random variable. The space or range of \(X\) is the set of real numbers \(\mathcal{D}=\{x: x=X(c), c \in \mathcal{C}\}\).

In this text, \(\mathcal{D}\) generally is a countable set or an interval of real numbers. Random variables of the first type are called discrete random variables, while those of the second type are called continuous random variables.

Definition 1.5.2 : Distribution of a random variable

Given a random variable \(X\), its range \(\mathcal{D}\) becomes the sample space of interest. The probability induced by \(X\) on \(\mathcal{D}\) is called the distribution of \(X\). For \(D \subset \mathcal{D}\), it is given by

\[ P_{X}(D)=P[\{c: X(c) \in D\}]. \]

1.5.2. Cumulative Distribution Functions

Definition 1.5.3 : Cumulative distribution function

Let \(X\) be a random variable. Its cumulative distribution function (cdf) is defined by

\[ F_{X}(x)=P_{X}((-\infty, x])=P(\{c \in \mathcal{C}: X(c) \leq x\}). \]

We shorten \(P(\{c \in \mathcal{C}: X(c) \leq x\})\) to \(P(X \leq x)\). The function \(F_{X}(x)\) is also often called simply the distribution function (df). The modifier cumulative emphasizes that \(F_{X}(x)\) accumulates the probabilities less than or equal to \(x\).

The cdf uniquely determines the probability distribution of \(X\).

Definition 1.5.4 : Equal in distribution

Let \(X\) and \(Y\) be two random variables. We say that \(X\) and \(Y\) are equal in distribution and write \(X \stackrel{D}{=} Y\) if and only if \(F_{X}(x)=F_{Y}(x)\), for all \(x \in \mathbb{R}\).

Concept 1.5.5 : Equal in distribution but different random variables

Random variables \(X\) and \(Y\) may be equal in distribution while being different random variables. Let \(X\) denote a real number chosen at random between \(0\) and \(1\). Its cdf is

\[ F_X(x)= \begin{cases} 0 & \text{if } x<0, \\ x & \text{if } 0\leq x<1, \\ 1 & \text{if } x\geq 1. \end{cases} \]

Now define \(Y=1-X\). The space of \(Y\) is \((0,1)\), the same as that of \(X\). Its cdf is \(0\) for \(y<0\) and \(1\) for \(y\geq 1\), while for \(0\leq y<1\),

\[ F_Y(y)=P(Y\leq y)=P(1-X\leq y)=P(X\geq 1-y)=1-(1-y)=y. \]

Thus \(X\) and \(Y\) have the same cdf, so \(Y\stackrel{D}{=}X\), but \(Y\neq X\).

Theorem 1.5.6 : Properties of a cumulative distribution function

Let \(X\) be a random variable with cumulative distribution function \(F(x)\). Then:

  • (a) For all \(a\) and \(b\), if \(a<b\), then \(F(a)\leq F(b)\) (\(F\) is nondecreasing).
  • (b) \(\lim_{x\rightarrow-\infty}F(x)=0\) (the lower limit of \(F\) is \(0\)).
  • (c) \(\lim_{x\rightarrow\infty}F(x)=1\) (the upper limit of \(F\) is \(1\)).
  • (d) \(\lim_{x\downarrow x_0}F(x)=F(x_0)\) (\(F\) is right continuous).

Proof

  • (a) Because \(a<b\), we have \(\{X\leq a\}\subset\{X\leq b\}\). The result follows from the monotonicity of \(P\) according to Theorem 1.3.6.

  • (b) Let \(C_n=\{X\leq -n\}\) for \(n\geq 1\). Since \(X\) takes finite real values, the sequence \(\{C_n\}\) is decreasing and \(\bigcap_{n=1}^{\infty}C_n=\varnothing\). By continuity of probability for decreasing sequences according to Theorem 1.3.16,

    \[ \lim_{n\rightarrow\infty}F(-n) =P\left(\bigcap_{n=1}^{\infty}C_n\right) =P(\varnothing)=0. \]

    For every \(\varepsilon>0\), choose \(n\) such that \(F(-n)<\varepsilon\). If \(x\leq -n\), part (a) gives \(0\leq F(x)\leq F(-n)<\varepsilon\), proving \(\lim_{x\rightarrow-\infty}F(x)=0\).

  • (c) Let \(C_n=\{X\leq n\}\) for \(n\geq 1\). Since \(X\) takes finite real values, the sequence \(\{C_n\}\) is increasing and \(\bigcup_{n=1}^{\infty}C_n\) is the entire sample space. By continuity of probability for increasing sequences according to Theorem 1.3.16,

    \[ \lim_{n\rightarrow\infty}F(n) =P\left(\bigcup_{n=1}^{\infty}C_n\right)=1. \]

    For every \(\varepsilon>0\), choose \(n\) such that \(1-F(n)<\varepsilon\). If \(x\geq n\), part (a) gives \(0\leq 1-F(x)\leq 1-F(n)<\varepsilon\), proving \(\lim_{x\rightarrow\infty}F(x)=1\).

  • (d) Let \(\{x_n\}\) be any sequence of real numbers such that \(x_n\downarrow x_0\). Let \(C_n=\{X\leq x_n\}\). Then the sequence \(\{C_n\}\) is decreasing and \(\bigcap_{n=1}^{\infty}C_n=\{X\leq x_0\}\). By continuity of probability for decreasing sequences according to Theorem 1.3.16,

    \[ \lim_{n\rightarrow\infty}F(x_n) =P\left(\bigcap_{n=1}^{\infty}C_n\right)=F(x_0), \]

    which proves right continuity.

Theorem 1.5.7 : Interval probability from the cdf

Let \(X\) be a random variable with the cdf \(F_{X}\). Then for \(a<b\),

\[ P[a<X \leq b]=F_{X}(b)-F_{X}(a). \]

Proof

Note that

\[ \{-\infty<X \leq b\}=\{-\infty<X \leq a\} \cup\{a<X \leq b\}. \]

The result follows immediately because the union on the right side is disjoint.

Theorem 1.5.8 : Point probabilities and distribution function jumps

For any random variable \(X\) and all \(x \in \mathbb{R}\),

\[ P[X=x]=F_X(x)-F_X(x-), \]

where \(F_X(x-)=\lim_{z\uparrow x}F_X(z)\).

Proof

For any \(x \in \mathbb{R}\),

\[ \{x\}=\bigcap_{n=1}^{\infty}\left(x-\frac{1}{n},x\right]. \]

Thus, \(\{x\}\) is the limit of a decreasing sequence of sets. Hence, by Theorem 1.3.16,

\[ \begin{aligned} P[X=x] &=P\left[\bigcap_{n=1}^{\infty}\left\{x-\frac{1}{n}<X\leq x\right\}\right] \\ &=\lim_{n\to\infty}P\left[x-\frac{1}{n}<X\leq x\right] \\ &=\lim_{n\to\infty}\left[F_X(x)-F_X\left(x-\frac{1}{n}\right)\right] \\ &=F_X(x)-F_X(x-). \end{aligned} \]