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
Building a joint PMF from the outcomes
So far, a PMF has described one random variable. But on one experiment we often define several random variables, one for each quantity we care about, and these are often dependent. To see how they behave together, we need the probability of each pair of values they can take.
For two random variables and , each outcome gives one value of and one value of , so one pair of values . The diagram finds the probability of each pair for one roll of a die.
Each of the six outcomes has probability
Definition
The joint PMF of discrete random variables and is the function
It determines the joint distribution of and : the probability of every event about the pair.
We lay it out as a two-way table, with a row for each value and a column for each value , so the cell in row and column holds . Each outcome gives exactly one pair of values, so the cells add to .
A fair coin is tossed three times. is the number of heads, and if the first toss is heads and otherwise. Find the joint PMF of and , and find .
Solution
The sample space is
We sort them into cells by the pair of values each one gives:
| none | ||
| , | ||
| , | ||
| none |
Two cells are empty: a first toss of heads means at least one head, and three heads means the first toss is heads.
The outcomes are equally likely, each with probability , so each cell's probability is for each of its outcomes. This gives the joint PMF:
is the cell in row and column :
Practice questions
4 questions
A bag holds four tickets numbered to , and two are drawn at random one after the other without replacement. is the number of even tickets drawn, and if the first ticket is even and otherwise.
Which table is the joint PMF of and ?
Select the correct answer:
+ 3 more questions · unlocked with a subscription
Probabilities from a joint PMF
For one random variable with PMF , the probability that takes a value in a set is the sum of the PMF over :
For two random variables, an event about the pair, such as , is the event that takes a value in a set of pairs of values. We add the joint PMF over .
Theorem
For discrete random variables and with joint PMF and any set of pairs of values,
When the joint PMF is laid out as a table, each pair in is a cell, so we mark the cells whose pair meets the condition and add them.
In a football match, is the number of goals the home team scores and the number the away team scores. Each is , or , with this joint PMF:
Find the probability that the home team wins.
Solution
The home team wins when it scores more goals than the away team, which is the event . We mark the cells whose pair has . A draw, with , is not a win, so the cells on the diagonal are left out:
We add the joint PMF's cells for the pairs in :
The home team wins with probability .
Practice questions
4 questions
A student sits two short tests, each marked , or . is the mark on the first test and the mark on the second, with this joint PMF:
What is the probability that the student gets the same mark on both tests?
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.