A lesson from Essential Probability & Statistics for ML
£29/month
£29/month£29/month or £249/year · 30-day money-back guarantee
Get full accessOur content is best on a larger screen
The probability density function
For a discrete random variable , the PMF gives the probability of each value in a list, . A continuous random variable is a different kind of object. It can take any value in an interval, so its values cannot be listed.
Instead, we describe a continuous by a curve, and its probabilities are areas under that curve.
Its probabilities will be areas under the curve, and a probability is never negative. So the curve never goes below the horizontal axis, where a region would have negative area.
Definition
The probability density function (PDF) of a continuous random variable is the function with for every and
for all numbers .
So is the area under the graph of over .
The interval where is the support of .
Key Point
The interval with more area over it is more probable. A wider interval is not always more probable: where is low, a wide region can have less area than a narrow region where is tall.
A delivery time , in hours, lies in . The sketch shows the graph of the PDF of , with the areas over and . Find .
Solution
is the area under the graph of to the right of , which is the area over .
The regions over , and together make up the whole region under the graph of , so their areas add to the total area, :
We subtract the two given areas from :
The probability that the delivery takes more than hours is .
Practice questions
4 questions
The sketch shows the graph of the PDF of a continuous random variable , which lies in . The regions over and are shaded. Which statement is true?
Select the correct answer:
+ 3 more questions · unlocked with a subscription
The probability of a single value is
What is the probability that a continuous random variable takes one exact value, such as ?
Surprisingly, the answer is , and the same holds for every value:
Theorem
If is a continuous random variable, then for every number ,
So an endpoint adds nothing to a probability. For every number ,
Advanced
Earlier, we found as the area over . The strict inequalities in leave out the endpoints and , but the interval includes them. There is no conflict: each endpoint has probability , so including it or leaving it out gives the same probability.
Probability does not mean impossible. Suppose is the time we wait for a bus that is sure to arrive within minutes. The bus arrives at some exact moment, yet that exact moment had probability , like every other. For a continuous random variable, probability belongs to intervals, not to single values.
A discrete random variable is different: each value in its support has positive probability, so including it as an endpoint adds that probability.
Details
Practice questions
4 questions
A bus is sure to arrive within minutes, and is the time we wait for it, in minutes. What is ?
Select the correct answer:
+ 3 more questions · unlocked with a subscription
Every time you pull an answer from memory, the memory gets stronger. Reading doesn't do that. Nodeledge asks you questions on every step of every lesson, then asks again after days, weeks and months.