콘텐츠로 이동

1.8. Expectation of a Random Variable

1.8.1. Expectation and Its Basic Properties

Definition 1.8.1 : Expectation

Let \(X\) be a random variable. If \(X\) is a continuous random variable with pdf \(f(x)\) and

\[ \int_{-\infty}^{\infty}|x| f(x) d x<\infty, \]

then the expectation of \(X\) is

\[ E(X)=\int_{-\infty}^{\infty} x f(x) d x. \]

If \(X\) is a discrete random variable with pmf \(p(x)\) and

\[ \sum_{x}|x| p(x)<\infty, \]

then the expectation of \(X\) is

\[ E(X)=\sum_{x} x p(x). \]

The expectation \(E(X)\) is also called the mathematical expectation, expected value, or mean of \(X\). When the mean designation is used, \(E(X)\) is often denoted by \(\mu\); that is, \(\mu=E(X)\).

Theorem 1.8.2 : Expectation of a function of a random variable

Let \(X\) be a random variable and let \(Y=g(X)\) for a function \(g\).

  • (a) Suppose \(X\) has a pdf \(f_X(x)\). If \(\int_{-\infty}^{\infty}|g(x)|f_X(x)\,dx<\infty\), then the expectation of \(Y\) exists and is given by

    \[ E(Y)=\int_{-\infty}^{\infty}g(x)f_X(x)\,dx. \]
  • (b) Suppose \(X\) is discrete with pmf \(p_X(x)\) and support \(\mathcal{S}_X\). If \(\sum_{x\in\mathcal{S}_X}|g(x)|p_X(x)<\infty\), then the expectation of \(Y\) exists and is given by

    \[ E(Y)=\sum_{x\in\mathcal{S}_X}g(x)p_X(x). \]

Proof

The continuous case is stated without proof. In the discrete case, the result follows by grouping the values of \(X\) that give the same value of \(Y\). Let \(\mathcal{S}_Y\) denote the support of \(Y\). Absolute convergence permits the regrouping

\[ \begin{aligned} \sum_{x\in\mathcal{S}_X}|g(x)|p_X(x) &=\sum_{y\in\mathcal{S}_Y}\sum_{\{x\in\mathcal{S}_X:g(x)=y\}}|g(x)|p_X(x)\\ &=\sum_{y\in\mathcal{S}_Y}|y|\sum_{\{x\in\mathcal{S}_X:g(x)=y\}}p_X(x)\\ &=\sum_{y\in\mathcal{S}_Y}|y|p_Y(y)<\infty. \end{aligned} \]

Thus \(E(Y)\) exists. The same regrouping is valid without the absolute values, so

\[ E(Y)=\sum_{y\in\mathcal{S}_Y}y p_Y(y) =\sum_{x\in\mathcal{S}_X}g(x)p_X(x). \]

Theorem 1.8.3 : Linearity of expectation

Let \(g_1(X)\) and \(g_2(X)\) be functions of a random variable \(X\) whose expectations exist. Then, for any constants \(k_1\) and \(k_2\), the expectation of \(k_1g_1(X)+k_2g_2(X)\) exists and

\[ E[k_1g_1(X)+k_2g_2(X)] =k_1E[g_1(X)]+k_2E[g_2(X)]. \]

Proof

Suppose first that \(X\) is continuous with pdf \(f_X\). The triangle inequality gives

\[ \begin{aligned} \int_{-\infty}^{\infty}|k_1g_1(x)+k_2g_2(x)|f_X(x)\,dx &\leq |k_1|\int_{-\infty}^{\infty}|g_1(x)|f_X(x)\,dx\\ &\quad+|k_2|\int_{-\infty}^{\infty}|g_2(x)|f_X(x)\,dx <\infty. \end{aligned} \]

Hence the expectation exists. By the linearity of the integral and Theorem 1.8.2,

\[ \begin{aligned} E[k_1g_1(X)+k_2g_2(X)] &=\int_{-\infty}^{\infty}[k_1g_1(x)+k_2g_2(x)]f_X(x)\,dx\\ &=k_1E[g_1(X)]+k_2E[g_2(X)]. \end{aligned} \]

Now suppose that \(X\) is discrete with pmf \(p_X\) and support \(\mathcal{X}\). Since the expectations of \(g_1(X)\) and \(g_2(X)\) exist, the triangle inequality gives

\[ \begin{aligned} \sum_{x\in\mathcal{X}}|k_1g_1(x)+k_2g_2(x)|p_X(x) &\leq |k_1|\sum_{x\in\mathcal{X}}|g_1(x)|p_X(x)\\ &\quad+|k_2|\sum_{x\in\mathcal{X}}|g_2(x)|p_X(x) <\infty. \end{aligned} \]

Hence the expectation exists. By absolute convergence, the linearity of sums, and Theorem 1.8.2,

\[ \begin{aligned} E[k_1g_1(X)+k_2g_2(X)] &=\sum_{x\in\mathcal{X}}[k_1g_1(x)+k_2g_2(x)]p_X(x)\\ &=k_1\sum_{x\in\mathcal{X}}g_1(x)p_X(x) +k_2\sum_{x\in\mathcal{X}}g_2(x)p_X(x)\\ &=k_1E[g_1(X)]+k_2E[g_2(X)]. \end{aligned} \]