Probability density and cumulative distribution functions
Studying this course? Keep your progress in one place.
Key facts
- A probability density function has total area ; probabilities are areas under it.
- For a continuous variable , so and give the same answer.
- The cumulative distribution function is .
- and .
- ; state each function on every part of its range.
Continuous variables and the pdf
A pdf is a non-negative function whose area between two values is a probability, with total area .
A continuous random variable can take any value in an interval. Its probabilities are areas under its probability density function (pdf) .
A pdf must satisfy and . It may be piecewise, with different expressions on different intervals.
A histogram with narrow class widths and frequency density on the vertical axis approaches the shape of the pdf.
is a density, not a probability, and can exceed 1.
Worked example
on . Find .
- 1
Total area is 1: .
- 2
.
on . What is ?
Probabilities from the pdf
Integrate the pdf between the two values, splitting at each boundary for a piecewise pdf.
.
For a continuous variable , so and give the same answer.
For a piecewise pdf, split the integral at each boundary and use the correct expression in each part. Sketch the pdf first and mark where each piece starts and ends.
Worked example
on and on . Find .
- 1
Split at : .
- 2
First part: .
- 3
Second part: .
For a continuous variable, what is ?
The cumulative distribution function
The cdf is the probability that is at most , found by integrating the pdf.
The cumulative distribution function (cdf) is .
Integrate the pdf from the lower end of the range up to , using a dummy variable inside the integral.
State for every region: below the range and above it. Forgetting this loses marks.
For a piecewise pdf, the cdf in later pieces must include the accumulated probability from earlier pieces.
- Cumulative distribution function
on . What is on that interval?
Using the cdf
Subtract values of for an interval, and solve for a quantile.
Since accumulates probability, and .
A cdf is non-decreasing and runs from 0 to 1, and it is continuous for a continuous variable.
To solve , set and solve for . Check that equals 1 at the top of the range; if it does not, an integration error has occurred.
- solve
Worked example
on . Find and the value with .
- 1
, so .
- 2
Set , so .
and . What is ?
Linking f and F
Integrating gives , and differentiating gives .
The pdf and cdf are linked by calculus: .
Use this when a question gives and asks for , remembering to state the range of for which each expression holds.
Differentiating across a boundary is a common error: state separately on each piece, and outside the range.
Worked example
on . Find .
- 1
Differentiate: for .
- 2
Outside this range, .
on . What is ?
Try an exam question
The continuous random variable has probability density function for , and otherwise. Find , the cumulative distribution function , and .
[5 marks]
- [1], so .
- [1] for .
- [1] for and for .
- [1].
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find the value of .
1 mark, marked against the mark scheme
Find the value of .
1 mark, marked against the mark scheme