Probability Density Functions
What you'll learn: How to describe probabilities for continuous random variables using probability density functions (PDFs).
The Challenge with Continuous Variables
In the previous lesson, you learned about Probability Mass Functions (PMFs) for discrete random variables—where you could list each possible outcome and its exact probability. But what happens when your random variable can take any value in a continuous range, like temperature, height, or time?
For continuous random variables, the probability of hitting any exact value is actually zero! Instead, we talk about the probability of falling within a range.
What Is a PDF?
A Probability Density Function (PDF) describes the relative likelihood of a continuous random variable taking values in different regions. Think of it like a smooth curve over all possible values.
Key analogy: Imagine spreading a fixed amount of clay along a number line. The PDF tells you the "height" of the clay at each point. The probability of landing in any interval is the area under the curve for that interval, not the height at a single point.
PDF vs PMF: The Critical Difference
- PMF (discrete): Direct probabilities. P(X = 3) might equal 0.2.
- PDF (continuous): Probability densities. The PDF value f(x) at a point isn't a probability—it's only meaningful when integrated over an interval to get area (probability).
For a PDF f(x):
- f(x) ≥ 0 for all x
- The total area under the curve equals 1
- P(a ≤ X ≤ b) = area under f(x) from a to b
Key Takeaway: PDFs describe continuous random variables through a density curve where probabilities correspond to areas, not point values—fundamentally different from PMFs which assign exact probabilities to discrete outcomes.