Canonical: https://knowlpedia.com/probability/expectation/

# Expectation

The integral of a random variable with respect to the underlying probability measure.

The **expectation** of an integrable [random variable](https://knowlpedia.com/probability/random-variable/) \(X\) is
\[
\mathbb E[X]=\int_\Omega X(\omega)\,d\mathbb P(\omega),
\]
where integrability means \(\int_\Omega |X|\,d\mathbb P<\infty\).

## Remarks

This definition uses the [Lebesgue integral](https://knowlpedia.com/measure-theory/lebesgue-integral/) on the underlying [probability space](https://knowlpedia.com/probability/probability-space/); expectation is the basic averaging operation underlying [variance](https://knowlpedia.com/probability/variance/), [covariance](https://knowlpedia.com/probability/covariance/), and many limit theorems.

## Examples

- If \(X\) takes values \(x_k\) with probabilities \(p_k\) (countably many), then \(\mathbb E[X]=\sum_k x_k p_k\) whenever \(\sum_k |x_k|p_k<\infty\).
- If \(X\) is uniform on \([0,1]\), then \(\mathbb E[X]=\int_0^1 x\,dx=\tfrac12\).
