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 CDF from a PDF
How do we find the CDF of a continuous random variable from its PDF ?
is the area under to the left of . As moves right this area builds up, so is an accumulation function of , starting from .
Since , the area builds up with no jumps, so the graph of is a continuous, non-decreasing curve rather than a step function.
The diagram below builds up for one PDF.
The top graph is the PDF
and the bottom graph is its CDF
Theorem
If is a continuous random variable with PDF , its CDF is
Since off the support, for a support this is
A support such as has no right end, so only the first two pieces appear.
As for any CDF, for numbers .
A random variable has PDF
Find the CDF of , then .
Solution
The support is , so has three pieces. Left of the support no area has built up, so for .
On the support, the integral starts at the support's left end, :
At the right end, , so all the area has built up, and for . Together:
Now lies in the support, so we use the middle piece:
Practice questions
4 questions
A random variable has PDF
What is the CDF of ?
Select the correct answer:
+ 3 more questions · unlocked with a subscription
The PDF from a CDF
Going the other way, how do we recover the PDF from a CDF ?
is an accumulation function of , so by the Fundamental Theorem of Calculus, Part 1, differentiating gives back .
Theorem
If a continuous random variable has CDF , its PDF is
at every where is differentiable.
A CDF is usually given in pieces, so we differentiate it one piece at a time, keeping each piece's inequalities. Where is flat, . The points where pieces meet do not matter, since a single point adds no area.
A random variable has CDF
Find the PDF of .
Solution
We differentiate each piece of . The pieces and are flat, so for and for . On the middle piece,
Keeping each piece's inequalities, and combining the two flat pieces:
Practice questions
4 questions
A random variable has CDF
What is the PDF of ?
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.