A continuous random variable X has probability density function f(x) = 2x for 0≤x≤1 and f(x)=0 otherwise. Find the expected value E[X] and the variance Var(X).
Answer
E[X] = 2/3, Var(X) = 1/18
The correct answer is E[X] = 2/3, Var(X) = 1/18 — Variance Var(X) = E[X^2] - (E[X])^2 = 1/2 - (2/3)^2 = 1/2 - 4/9 = (9-8)/18 = 1/18.
Step-by-step solution
- Compute E[X] = ∫_0^1 x * 2x dx = 2∫_0^1 x^2 dx = 2*(1/3) = 2/3.
- Compute E[X^2] = ∫_0^1 x^2 * 2x dx = 2∫_0^1 x^3 dx = 2*(1/4) = 1/2.
- Variance Var(X) = E[X^2] - (E[X])^2 = 1/2 - (2/3)^2 = 1/2 - 4/9 = (9-8)/18 = 1/18.
Common mistake: Miscalculating integral of x^3
Concept tested: Expectation and variance of continuous r.v.
Published · How this solution was prepared and checked
← All Probability questions