









A probability density function describes the distribution of a continuous random variable.
If is continuous, its PDF is a function
such that:
for all
- The area under the curve is 1:
The key idea
For continuous variables:
The PDF is not a probability. Probability comes from the area under the PDF curve.
This is the biggest difference from a PMF.
⭐ Probability from a PDF
To find the probability that falls in an interval
:
And:
because a single point has no area.
⭐ Examples
Example 1: Uniform Distribution on [0, 1]
- The height is 1
- The width is 1
- Area = 1 → valid PDF
Probability that is between 0.2 and 0.5:
Example 2: Normal Distribution
A normal distribution with mean and standard deviation
has PDF:
This curve is the famous bell shape.
Example:
Let .
Probability that is between –1 and 1:
(From the 68–95–99.7 rule.)
Example 3: Exponential Distribution
Let be the waiting time until the next bus, with rate
.
PDF:
Probability the wait is less than 1 minute:
⭐ PDF vs PMF (Quick Comparison)
| Feature | PMF | |
|---|---|---|
| For | Discrete variables | Continuous variables |
| Gives | Density, not probability | |
| Probability of exact value | Positive | Always 0 |
| Probability of interval | Sum of PMF values | Area under PDF |
🎨 Intuition
A PDF is like a smooth landscape.
You don’t look at the height of the land to get probability — you look at the area under the curve.