Definition of Expectation for Continuous Random Variables
What You'll Learn
You'll learn how to calculate the expected value (mean) of a continuous random variable using integration with its probability density function.
The Core Idea
For discrete random variables, you computed expectation by summing values times their probabilities. For continuous random variables, we replace that sum with an integral.
Since a continuous random variable takes infinitely many values, we can't list them all and multiply by probabilities. Instead, we use the probability density function (PDF), denoted f(x), to weight each possible value across its entire range.
The expectation (or mean) of a continuous random variable X with PDF f(x) is:
E[X] = ∫ x · f(x) dx
where the integral is taken over the entire range of X.
How It Works
Think of it this way: the PDF f(x) tells you the "density" of probability near each value x. Multiplying x by f(x) gives you "value times density," and integrating sums up all these weighted contributions across the continuum.
Example: If X has PDF f(x) = 2x for 0 ≤ x ≤ 1, then:
E[X] = ∫₀¹ x · (2x) dx = ∫₀¹ 2x² dx = [2x³/3]₀¹ = 2/3
Just Like Before
The interpretation remains the same: E[X] represents the long-run average value of X if you repeated the random experiment infinitely many times. It's the "center of mass" of the probability distribution.
Key Takeaway: For continuous random variables, expectation is computed by integrating the product of the variable's value and its probability density function: E[X] = ∫ x · f(x) dx.