From Discrete to Continuous
Discrete random variables take countably many values. But many quantities (time, weight, temperature) can take any value in an interval.
Problem: For continuous X, P(X=x)=0 for any specific x. What does “exactly 3.214159… seconds” mean?”
We need a different approach.
Probability Density Function
A continuous random variable X has a probability density function (PDF) f(x) such that:
P(a≤X≤b)=∫abf(x)dx
Properties:
- f(x)≥0 for all x
- ∫−∞∞f(x)dx=1
Key difference from PMF: f(x) is NOT a probability. It can exceed 1. Only the integral over an interval gives a probability.
Visual Interpretation
The probability P(a≤X≤b) is the area under the curve f(x) from a to b.

Point Probabilities are Zero
For any specific value c:
P(X=c)=∫ccf(x)dx=0
A continuous random variable never equals an exact value “with probability 1.” This is why we work with intervals.
The CDF
For continuous X, the CDF is:
F(x)=P(X≤x)=∫−∞xf(t)dt
The PDF is the derivative of the CDF:
f(x)=F′(x)
Relationship
P(a≤X≤b)=F(b)−F(a)
This works because:
∫abf(x)dx=F(b)−F(a)
by the Fundamental Theorem of Calculus.
f(x)={2100≤x≤2otherwise
- Total area: 2×21=1
- P(X≤1)=∫0121dx=21
- f(1)=21, but P(X=1)=0
Example: Exponential Density
f(x)=λe−λx,x≥0
F(x)=1−e−λx,x≥0
P(X>t)=e−λt
Finding the Normalisation Constant
For f(x)=cx2 on [0,1], find c such that f is a valid PDF.
∫01cx2dx=1
c⋅31=1⇒c=3
The PDF is f(x)=3x2 for x∈[0,1].
Properties of PDFs
- Non-negative: f(x)≥0
- Integrates to 1: ∫−∞∞f(x)dx=1
- Not probabilities: f(x) may exceed 1
- Point values: P(X=x)=0
- Intervals: Use integration for P(a≤X≤b)
Support
The support of a continuous RV is where f(x)>0:
supp(X)={x:f(x)>0}
- Uniform on [0,1]: support is [0,1]
- Exponential: support is [0,∞)
- Normal: support is R
Summary
| Concept | Formula |
|---|
| PDF definition | P(a≤X≤b)=∫abf(x)dx |
| CDF | F(x)=∫−∞xf(t)dt |
| Derivative relation | f(x)=F′(x) |
| Normalisation | ∫−∞∞f(x)dx=1 |
| Point probability | P(X=c)=0 |