What a probability density function means
Probability for a continuous variable is the area under the density curve.
The big shift from discrete to continuous. For a discrete variable you add probabilities: . For a continuous variable (heights, times, weights — anything measured on a scale) a single exact value has probability zero, so we work with a probability density function and find probabilities as areas.
The two conditions for a valid pdf. A function is a probability density function only if:
- Non-negative everywhere: for all (areas, hence probabilities, can never be negative).
- Total area one: (some value must occur, so all the probability adds to ).
In practice outside a finite interval, so the integral only runs over where is non-zero.
Finding an unknown constant. Many questions give and ask for . You always use the total-area condition: set and solve.
Cambridge tip. Before doing anything else, sketch the density. A picture tells you the range, whether , and lets you sanity-check that areas land between and .
- Probability = area under ; a single value has probability .
- Valid pdf needs AND .
- Find an unknown constant by setting .
See the full worked example for probability density function and continuous random variable →