Probability density functions
Studying this course? Keep your progress in one place.
Key facts
- A continuous random variable is described by a pdf ; probability is the area under the curve.
- for any single value, so strict and non-strict inequalities give the same probability.
- A valid pdf has and total area .
- .
- The median satisfies ; the quartiles use and .
Discrete and continuous variables
A continuous variable has a pdf: probability is the area under the curve, and any single value has probability .
A discrete random variable takes separate values and each has a probability .
A continuous random variable takes any value in an interval (a time or a mass), so we cannot list the values. It is described by a probability density function (pdf) . Probability is the area under the curve, not the height.
A single value has no width, so and .
is continuous. What is ?
What makes a valid pdf
It is never negative and the total area under it is .
A function is a pdf if:
- for all ;
- the total area is 1: .
A pdf is usually given in pieces and is outside the stated range, so integrate only over the range where is non-zero.
If contains an unknown constant , integrate over the range, set the result equal to 1 and solve.
- Never negative
- Total area
Worked example
on and otherwise. Find .
- 1
Total area must be 1: .
- 2
.
- 3
So .
on and otherwise is a pdf. Find .
Probabilities for an interval
Integrate the pdf between the limits: .
The probability that lies between and is the area under between them:
Since , strict or non-strict inequalities make no difference.
For a tail, integrate to the end of the range or use .
If is defined in pieces, split the integral where the formula changes.
Worked example
on . Find .
- 1
.
- 2
.
For on , find .
Median and quartiles
Set the area from the start of the range up to the value equal to , or .
The median has half the probability below it: .
The lower quartile has area below it and the upper quartile has . The interquartile range is .
Integrate from the lower end of the range, set the area equal to , or and solve. Reject any root outside the range of .
Worked example
for , and otherwise. Show that is a pdf, find and , then find the median and lower quartile.
- 1
Check: .
- 2
, and .
- 3
Median: , so and .
- 4
Lower quartile: , so .
on . Find the median.
Try an exam question
A continuous random variable has probability density function for , and otherwise. Show that is a valid pdf and find the median of .
[4 marks]
- [1] on the range.
- [1].
- [1]Median: , so .
- [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