Expected Value and Variance for Continuous RVs
Expected Value
For a continuous random variable X with PDF fX(x):
E[X]=∫−∞∞x⋅fX(x)dx
Intuition
- Still the “center of mass” or “center of gravity” of the PDF
- Represents the long-run average if you repeat the experiment many times
- Same interpretation as for discrete random variables
Expected Value of Functions
For a function g(X):
E[g(X)]=∫−∞∞g(x)⋅fX(x)dx
No need to find the PDF of g(X) first!
Key Insight
Same as discrete case: E[g(X)]=g(E[X]) in general. Cannot interchange expectation and non-linear functions.
Variance
Var(X)=E[(X−E[X])2]=∫−∞∞(x−μ)2fX(x)dx
Alternative Formula
Var(X)=E[X2]−(E[X])2
This is often easier to compute.
Standard Deviation
σX=Var(X)
Uniform Distribution Example
For X∼Uniform(a,b):
fX(x)=b−a1for a≤x≤b
Expected Value
By symmetry (or integration):
E[X]=2a+b
The mean is the midpoint of the interval.
Variance
Var(X)=12(b−a)2
Standard Deviation
σX=12b−a≈3.46b−a
The standard deviation is proportional to the width of the interval.
Properties (Same as Discrete)
Linearity
- E[aX+b]=aE[X]+b
- E[X+Y]=E[X]+E[Y] (always)
Variance Properties
- Var(aX)=a2Var(X)
- Var(X+b)=Var(X)
- Var(X+Y)=Var(X)+Var(Y) if X,Y independent
Cumulative Distribution Function (CDF)
The CDF unifies discrete and continuous cases:
FX(x)=P(X≤x)
For Continuous RVs
FX(x)=∫−∞xfX(t)dt
Properties
- FX(x) is non-decreasing
- limx→−∞FX(x)=0
- limx→∞FX(x)=1
- P(a≤X≤b)=FX(b)−FX(a)
Relation to PDF
fX(x)=dxdFX(x)
The PDF is the derivative of the CDF.
Conditional Expectation
Given an event A:
E[X∣A]=∫−∞∞x⋅fX∣A(x)dx
Same concept as discrete case: expected value in the “conditional universe.”