A joint table for a parcel gives the probability of each combination of route and inspection. Often the question involves only one of them, such as how likely express routing is, whatever happens with inspection. Answering it means keeping the condition you care about and letting the other variable take every value it can. This lesson shows how to get the distribution of each variable from the joint table in this way, and why those separate distributions cannot in general be turned back into the joint table.
Key terms
Marginal distribution
Definition Let and be random variables on the same sample space. The marginal distribution of is the distribution of by itself, given by the probabilities for sets of real numbers, with no condition on . The marginal distribution of is defined in the same way. The word marginal records only that the distribution was obtained from a joint law. It is the ordinary distribution of that variable, so its CDF, and its mean and variance when they exist, are found exactly as for any single random variable.
In plain words A marginal distribution answers questions about one variable and places no restriction on the other.
Example In a constructed model, when a parcel takes the express route and for the standard route, and when it gets an extra inspection and when it does not. The joint table is
Express routing, with or without inspection, is the event , so . In the same way . Both variables are indicators, so and . The CDF of is the step function
The mean is the probability that a parcel is inspected. It does not describe any single parcel, which is either inspected or not.
Marginal probability mass function
Definition Let and be discrete random variables with joint PMF . The marginal PMFs of and are
for all real and , where each sum runs over the possible values of the other variable. The first formula holds because the event is, apart from an event of probability , the union of the disjoint events over the possible values of , and the second holds for the same reason. Each marginal PMF is nonnegative and adds to , because adding all of its masses adds every joint mass exactly once.
In plain words In a joint table, the marginal PMF of the row variable is the list of row totals, and the marginal PMF of the column variable is the list of column totals. They are written in the margins of the table, which gives them their name.
Example The parcel table with its margins is
The row totals give , and the column totals give and . Each margin adds to , and both agree with the total of the four cells, which is a quick check on the arithmetic.
Summing out a variable
Definition Summing out means adding the joint PMF over the values of , which removes and leaves the marginal PMF of . For a fixed , the sum must include every value that can occur together with , that is, every with . Values of that cannot occur with contribute , so the sum may also run over all possible values of , but no pair of positive mass may be left out. When the joint support is not a rectangle, the values of compatible with change with , and the limits of the sum change with them. Summing out works the same way.
In plain words Hold fixed the value you are asking about, and let the other variable run through everything it can be alongside it. The variable you sum over disappears from the answer.
Example A constructed joint PMF puts mass on each pair of integers with , and mass on every other pair.
Row holds cells of mass , so for . For , the compatible values of are those with , so
This gives , and , which add to . Using the formula for every from to , without the restriction , would add values of the formula at pairs that cannot occur and make each of the three values , with total .
Information lost by marginalizing
Definition The joint PMF determines both marginal PMFs, but the two marginal PMFs do not in general determine the joint PMF. Different joint PMFs can have the same marginals and still assign different probabilities to events that involve both variables. The product equals for every pair exactly when and are independent, the subject of a later lesson, so without independence the margins cannot simply be multiplied. In special cases the margins do fix the joint PMF, for example when one of the two variables is constant.
In plain words The margins tell how each variable behaves by itself. They can limit how the values pair up, but in general they do not fix it. That pairing information is in the joint table.
Example The tables with rows and with rows both have row totals and and column totals and . They agree on the probability of express routing and on the probability of inspection, but the probability of both is in the first and in the second. In fact every number with is possible for that cell. The table
with rows for and columns for , has these margins for every , and its entries are nonnegative exactly when . Only makes every cell the product of its margins, since .
Check yourself
- A joint table has the row for and the row for , with columns for , and . Check that it is a joint PMF, find both marginal PMFs, and find and .
Show the answer
All six entries are nonnegative and add to . The row totals give . The column totals give , and , which add to . From the marginal of , the probability is , and
- Two labels are drawn without replacement from a bag with one blue label and two gold labels, with each remaining label equally likely at each draw. Let if the first label is blue and otherwise, and let if the second label is blue and otherwise. Build the joint table, find both marginal PMFs, and compare with .
Show the answer
The first label is blue with probability , and then the second is gold, so and . The first label is gold with probability , and then the second is blue with probability , so and .
Both draws have the same marginal PMF, with . The product , but the joint mass is , because the bag holds only one blue label. The margins do not show this, and multiplying them assumes an independence that the two draws do not have.
- Two codes and , each or , have and . Which values can take? Give the joint table at the smallest and at the largest possible value, and the table in which every joint mass is the product of its margins.
Show the answer
Write . The margins then force the other three cells,
All four cells are nonnegative exactly when , so the joint probability can be any number from to . At the rows for and are and . At they are and . The product table has , with rows and . The same margins fit infinitely many joint tables, so by themselves they restrict to this interval but do not determine its value.