Skip to content
← All questions

Why does the expectation of a continuous random variable use integration instead of summation?

Integration is used because a continuous random variable can take any value in an interval, resulting in uncountably many possible values. Summation applies to discrete sets of values. The integral ∫−∞+∞xf(x)dx\int_{-\infty}^{+\infty} x f(x) dx effectively sums the product of values and their infinitesimal probabilities (f(x)dxf(x)dx) over the entire range, generalizing the discrete weighted sum.

Conditions

  • X is a continuous random variable
  • f(x)f(x) is the probability density function
  • The integral converges absolutely

Reasoning, step by step

  1. Contrast discrete variables (countable values) with continuous variables (uncountable values).
  2. Recognize that summation ∑xkpk\sum x_k p_k works for discrete cases.
  3. Understand that for continuous cases, probability is distributed over intervals, described by density f(x)f(x).
  4. Replace the discrete probability pkp_k with the infinitesimal probability f(x)dxf(x)dx.
  5. Replace the summation symbol with the integral symbol to accumulate over the continuum.

Example

The video shows the transition from E(X)=∑k=1∞xkpkE(X)=\sum_{k=1}^\infty x_k p_k for discrete variables to E(X)=∫−∞∞xf(x)dxE(X)=\int_{-\infty}^{\infty} x f(x) dx for continuous variables, explaining the latter as an improper integral.

Common misconceptions

  • Believing that continuous variables have a countable list of values with non-zero probabilities.
  • Thinking that integration is just a different notation for summation without conceptual difference in the nature of the variable.
  • Confusing probability density f(x)f(x) with probability P(X=x)P(X=x).

Watch the explanation

Connected concepts

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.