Random Variables

Random Variables

Given a probability space (Ω,F,P)(\Omega, \mathcal{F}, P), and let Ω\Omega be the sample space on which the function X:Ω→RX : \Omega \to \mathbb{R} is defined. If, for every t∈Rt \in \mathbb{R},

{ω∈Ω:X(ω)≤t}∈F\{ \omega \in \Omega : X(\omega) \le t \} \in \mathcal{F}

Thus, XX is called a random variable.

Indicator Functions

For the sample space Ω\Omega, let AA be an event, and define the random variable

IA(ω)={1,ω∈A0,ω∉AI_A(\omega) = \begin{cases} 1, & \omega \in A \\ 0, & \omega \notin A \end{cases}

Then IAI_A is called the indicator function of event AA.

Distribution Functions

For a random variable XX, the function

F(x)=P(X≤x)F(x) = P( X \leq x )

is called the distribution function of XX, denoted by X∼F(x)X \sim F(x).

A distribution function has the following properties:

  • Right continuity: F(x)=F(x+0)F(x) = F(x + 0)
  • Monotonicity: it is nondecreasing (not necessarily strictly) on R\mathbb{R}
  • F(−∞)=0F(-\infty) = 0,F(+∞)=1F(+\infty) = 1

Conversely, it can be proved that every function satisfying the requirements above is the distribution function of some random variable. Thus, distribution functions and random variables are in one-to-one correspondence.

Classification of Random Variables

According to whether its range (a random variable is a function by definition) is countable, a random variable is classified as either discrete or continuous.

Discrete Random Variables

Let XX be a discrete random variable with possible values x1,x2,⋯x_1, x_2, \cdots. It can be described by a sequence of equations of the form P{X=xi}=piP\{ X = x_i \} = p_i. This is the probability distribution learned in high school. It describes XX.

Continuous Random Variables

Let XX be a continuous random variable. Studying P{X=x}P\{ X = x \} is often meaningless, because this probability is very likely to be 00.

Why is the probability “very likely” to be 00?

Consider a random variable XX: with probability 12\frac{1}{2} it takes the value 00, and with probability 12\frac{1}{2} it follows a uniform distribution on the open interval (0,1)(0, 1). Clearly, XX satisfies the definition of a continuous random variable.

For every real number r∈(0,1)r \in (0, 1), it is easy to obtain P{X=r}=0P\{ X = r \} = 0, but at the same time P{X=0}=12P\{ X = 0 \} = \frac{1}{2}.

On the other hand, let X∼F(x)X \sim F(x). Then

P(l<x≤l+Δx)=F(l+Δx)−F(l)P( l < x \leq l + \Delta x ) = F(l + \Delta x) - F(l)

A natural idea is to use the limit lim⁡Δx→0+F(l+Δx)−F(l)Δx\lim\limits_{\Delta x \to 0^+} \frac{F(l + \Delta x) - F(l)}{\Delta x} to describe the likelihood that XX takes the value ll.

This expression is the familiar derivative, so the problem becomes finding a nonnegative function f(x)f(x) such that

F(x)=∫−∞xf(x)dxF(x) = \int_{-\infty}^{x} f(x) \text{d} x

If such an f(x)f(x) exists, it is called the density function of XX.

Independence of Random Variables

We discussed the independence of random events above. Since random variables and random events are closely related, we can similarly define independence for random variables.

Definition

If random variables X,YX, Y satisfy, for every x,y∈Rx, y \in \mathbb{R},

P(X≤x,Y≤y)=P(X≤x)P(Y≤y)P( X \leq x, Y \leq y ) = P( X \leq x ) P( Y \leq y )

then X,YX, Y are called independent.

Note

Some students may notice that textbooks define independence of random variables using probabilities of the form P(X=α)P(X = \alpha). Since the probability of a continuous random variable taking a particular value is usually 00, defining independence by distribution functions is more appropriate in the general case.

Properties

If random variables XX,YY are independent, then for any functions f,gf, g, the random variables f(X)f(X) and g(Y)g(Y) are independent.

Note

Sometimes we study the distribution of a function f(X,Y)f(X, Y) of independent random variables XX,YY (such as XY2XY^2).

Although XX and YY are independent, it is not valid to assume that, for a fixed value yy of YY, f(X,y)f(X, y) and f(X,Y)f(X, Y) have the same distribution.

This content comes from OI Wiki: Random Variables. See the original for authors and revision history. AIOJ has adapted the formatting, in-site links, and resource paths.

Content is shared under CC BY-SA 4.0 and SATA license; additional terms are governed by the original notice. Thanks to the OI Wiki authors and contributors; per the SATA terms, please visit the OI Wiki repository and star it to show your support.