1 PP: Joint, Conditional, and Marginal Distributions
The latest series of collectible Lego Minifigures contains 3 different Minifigure prizes (labeled 1, 2, 3). Each package contains a single unknown prize. Suppose we only buy 3 packages and we consider as our sample space outcome the results of just these 3 packages (prize in package 1, prize in package 2, prize in package 3). For example, 323 (or (3, 2, 3)) represents prize 3 in the first package, prize 2 in the second package, prize 3 in the third package. Let
It can be shown that the joint distribution of
0 | 1 | 2 | 3 | |
1 | 2/27 | 0 | 0 | 1/27 |
2 | 6/27 | 6/27 | 6/27 | 0 |
3 | 0 | 6/27 | 0 | 0 |
1. Briefly explain why there are 27 possible outcomes.
There are 27 possible outcomes because in each of the 3 packages, any of the 3 prizes could occur, and
- 1, 1, 1 -> X=1, Y=3
- 1, 1, 2 -> X=2, Y=2
- 1, 1, 3 -> X=2, Y=2
- 1, 2, 1 -> X=2, Y=2
- 1, 3, 1 -> X=2, Y=2
- 1, 2, 3 -> X=3, Y=1
- 1, 3, 2 -> X=3, Y=1
- 1, 2, 2 -> X=2, Y=1
- 1, 3, 3 -> X=2, Y=1
- 2, 1, 3 -> X=3, Y=1
- 2, 3, 1 -> X=3, Y=1
- 2, 2, 2 -> X=1, Y=0
- 2, 1, 1 -> X=2, Y=2
- 2, 3, 3 -> X=2, Y=0
- 2, 1, 2 -> X=2, Y=1
- 2, 3, 2 -> X=2, Y=0
- 2, 2, 1 -> X=2, Y=1
- 2, 2, 3 -> X=2, Y=0
- 3, 1, 2 -> X=3, Y=1
- 3, 2, 1 -> X=3, Y=1
- 3, 3, 3 -> X=1, Y=0
- 3, 2, 2 -> X=2, Y=0
- 3, 1, 1 -> X=2, Y=2
- 3, 3, 1 -> X=2, Y=1
- 3, 3, 2 -> X=2, Y=0
- 3, 1, 3 -> X=2, Y=1
- 3, 2, 3 -> X=2, Y=0
2. Show that
(2, 2, 2) -> X=1, Y=0
(3, 3, 3) -> X=1, Y=0
3. Show that
(1, 1, 1) -> X=1, Y=3
4. Show that
(2, 3, 3) -> X=2, Y=0
(2, 3, 2) -> X=2, Y=0
(2, 2, 3) -> X=2, Y=0
(3, 2, 2) -> X=2, Y=0
(3, 3, 2) -> X=2, Y=0
(3, 2, 3) -> X=2, Y=0
5. Make a table representing the marginal distribution of
x | 1 | 2 | 3 |
p(x) | 3/27 | 18/27 | 6/27 |
6. Make a table representing the marginal distribution of
y | 0 | 1 | 2 | 3 |
p(y) | 8/27 | 12/27 | 6/27 | 1/27 |
7. Find the conditional distribution of
Y | 0 | 1 | 2 | 3 |
P(Y | X = 1) | 2/3 | 0 | 0 | 1/3 |
Y | 0 | 1 | 2 | 3 |
P(Y | X = 2) | 6/18 | 6/18 | 6/18 | 0 |
Y | 0 | 1 | 2 | 3 |
P(Y | X = 3) | 0 | 1 | 0 | 0 |
8. Make a table representing the distribution of
X | E(Y | X = x) |
1 | 1 |
2 | 1 |
3 | 1 |
9. Find the conditional distribution of
X | 1 | 2 | 3 |
P(X | Y = 0) | 2/8 | 6/8 | 0 |
X | 1 | 2 | 3 |
P(X | Y = 1) | 0 | 6/12 | 6/12 |
X | 1 | 2 | 3 |
P(X | Y = 2) | 0 | 1 | 0 |
X | 1 | 2 | 3 |
P(X | Y = 3) | 1 | 0 | 0 |
10. Make a table representing the distribution of
Y | E(X | Y = y) |
0 | 1.75 |
1 | 2.5 |
2 | 2 |
3 | 1 |
11. Describe three methods for how you could use physical objects (e.g., cards, dice, spinners) to simulate an
a) Method 1: simulate outcomes from the probability space (i.e., prizes in the packages)
Assign equal probabilities (1/27) to all 27 outcomes, simulate by randomly selecting, compute X and Y to get an (X, Y) pair.
b) Method 2: simulate an
Using the joint distribution, we have the probabilities for each (X, Y) pair, so randomly select an (X, Y) pair according to each of the pairs probabilities.
c) Method 3: simulate an
First simulate X using its marginal distribution, once you have an X, use the appropriate Y given X = x distribution giving you the Y.
12. Suppose you have simulated many
a)
Number of pairs where X = 3 / number of total pairs
b) the marginal distribution of
For each value of X, count how many times that X appears in a pair
For each X, number of pairs where X is that x / number of total pairs
c)
Take an average of X from all pairs
d)
e)
Number of pairs where X = 2 and Y =1 / total number of pairs
f)
For all pairs, multiply X*Y, then take average
g)
h)
Number of pairs where X = 1 and Y = 0 / number of pairs where Y = 0
i) the conditional distribution of
Filter out to only look at pairs where Y = 0
For each value of X, count how many times that X appears in a pair where Y = 0
For each X, number of pairs where X is that x and Y = 0 / number of total pairs where Y = 0
j)
Filter out to only look at pairs where Y = 0
Take an average of all X values
k)
Number of pairs where Y = 0 and X =1 / number of pairs where X = 1
l) the conditional distribution of
Filter out to only look at pairs where X = 1
For each value of Y, count how many times that Y appears in a pair where X = 1
For each Y, number of pairs where Y is that y and X = 1 / number of total pairs where X = 1
m)
Filter out to only look at pairs where X = 1
Take an average of all Y values