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
Marginal PDFs on a rectangle
A joint PDF determines every probability about and , including probabilities about alone. How do we find the PDF of alone from the joint PDF?
For discrete random variables, the event is the row of the joint PMF's table, and the marginal PMF of sums out across that row:
For continuous random variables, an integral takes the place of the sum: we integrate out , which leaves a function of alone. The diagram below builds this up on one joint PDF.
The surface
The solid under it has volume
Theorem
For continuous random variables and with joint PDF , the marginal PDFs of and , the PDFs of each alone, are
Since is off its support, at each the integral for is taken only over the with in the support, and at any where there are none. Likewise, the integral for is taken only over the with in the support.
has joint PDF
Find the marginal PDFs and .
Solution
The marginal PDF of integrates out . The support is the rectangle , , so at each in we integrate from to :
The marginal PDF of integrates out . At each in we integrate from to :
Each marginal PDF is off its own interval, so
and
Practice questions
5 questions
has joint PDF
Which integral gives the marginal PDF for ?
Select the correct answer:
+ 4 more questions · unlocked with a subscription
When the support is not a rectangle
At each , the value of the marginal PDF is the area of the face under the cross-section at . On a rectangle every face has the same width, but off a rectangle the width changes with . The diagram below shows what this does to each marginal PDF.
The joint PDF is
and
The integral for has limits and , but is off its support, so only the with in the support contribute. We find these limits of integration exactly as in calculus, by describing the support.
Key Point
For , always use vertical lines: is fixed and we integrate over . For , always use horizontal lines: is fixed and we integrate over .
Procedure
Describe the support:
Integrate out the other variable between the curves. The numbers give the range of the formula, and the marginal PDF is outside it:
has joint PDF
Find the marginal PDFs and .
Solution
The support is the triangle with corners , and . It covers every and every in , so both marginal PDFs are outside .
For we use vertical lines. The red vertical line at enters the support on and leaves on , so the support is
We integrate out between these limits, and is a constant in :
For we use horizontal lines. The purple horizontal line at enters the support on and leaves on , so the support is
We integrate out between these limits:
So the marginal PDF of is
and the marginal PDF of is
Practice questions
5 questions
has joint PDF
Which integral gives the marginal PDF for ?
Select the correct answer:
+ 4 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.