Expectation
Part of Math Camp: An Introduction to Mathematics and Statistics with Applications in Economics.
Main Stam4Econ site | View this section in the book | Author: Fan Wang | DOI: 10.5281/zenodo.24696926
Date: 2026-11-30 | HTML | PDF | QMD
1 Expectation
1.1 Expectation of a discrete random variable
The expectation (or expected value, or mean) of a discrete random variable \(X\) is defined as:
\[ E(X) = \sum_{x_i \in \text{Support of } X} x_i P(X = x_i) \]
where \(P(X = x_i)\) is the probability that the random variable \(X\) takes on the value \(x_i\).
1.2 Expectation of a continuous random variable
The expectation (or expected value, or mean) of a continuous random variable \(X\) is defined as:
\[ E(X) = \int_{-\infty}^{\infty} x f_X(x) dx \]
where \(f_X(x)\) is the probability density function of the random variable \(X\).
1.3 Expectation of a transformation of a random variable
We have random variable \(X\) and density \(f(x)\), and we define a new random variable \(Y = g(X)\), where \(g\) is some function. Then the expectation of \(Y\) is:
\[ E(Y) = E(g(X)) = \int_{-\infty}^{\infty} g(x) f_X(x) dx \]
So if \(Y = g(X) = aX + b\), then
\[ E(Y) = E(aX + b) = \int_{-\infty}^{\infty} (ax + b) f_X(x) dx = a \int_{-\infty}^{\infty} x f_X(x) dx + b \int_{-\infty}^{\infty} f_X(x) dx = aE(X) + b \]
Note that expectation is a linear operator.