10  Conditional Distributions

Example 10.1

Roll a fair four-sided die twice. Let \(X\) be the sum of the two rolls, and let \(Y\) be the larger of the two rolls (or the common value if a tie). We have previously found the joint and marginal distributions of \(X\) and \(Y\), displayed in the two-way table below.

\((x, y)\)
1 2 3 4 Total
2 1/16 0 0 0 1/16
3 0 2/16 0 0 2/16
4 0 1/16 2/16 0 3/16
5 0 0 2/16 2/16 4/16
6 0 0 1/16 2/16 3/16
7 0 0 0 2/16 2/16
8 0 0 0 1/16 1/16
Total 1/16 3/16 5/16 7/16
  1. Compute \(\text{P}(X=6|Y=4)\).




  2. Construct a table, plot, and spinner to represent the conditional distribution of \(X\) given \(Y=4\).




  3. Construct a table, plot, and spinner to represent the conditional distribution of \(X\) given \(Y=3\).




  4. Construct a table, plot, and spinner to represent the conditional distribution of \(X\) given \(Y=2\).




  5. Construct a table, plot, and spinner to represent the conditional distribution of \(X\) given \(Y=1\).




  6. Compute \(\text{P}(Y=4|X=6)\).




  7. Construct a table, plot, and spinner to represent the distribution of \(Y\) given \(X=6\).




  8. Construct a table, plot, and spinner to represent the distribution of \(Y\) given \(X=5\).




  9. Construct a table, plot, and spinner to represent the distribution of \(Y\) given \(X=4\).




Example 10.2

We have already discussed two ways for simulating an \((X, Y)\) pair in the dice rolling example: simulate a pair of rolls and measure \(X\) (sum) and \(Y\) (max), or spin the joint distribution spinner for \((X, Y)\) once.

  1. Now describe another way for simulating an \((X, Y)\) pair using the spinners in Example 10.1. (Hint: you’ll need one more spinner in addition to the four from the previous example.)




  2. Describe in detail how you can simulate \((X, Y)\) pairs and use the results to approximate \(\text{P}(X = 6 | Y = 4)\).




  3. Describe in detail how you can simulate \((X, Y)\) pairs and use the results to approximate the conditional distribution of \(X\) given \(Y = 4\).




  4. Describe in detail how you can simulate values from the conditional distribution of \(X\) given \(Y=4\) without simulating \((X, Y)\) pairs.




  5. We have seen that the long run average value of \(X\) is 5. Would you expect the conditional long run average value of \(X\) given \(Y= 4\) to be greater than, less than, or equal to 5? Explain without doing any calculations. What about given \(Y = 2\)?




  6. How could you use simulation to approximate the conditional long run average value of \(X\) given \(Y = 4\)?




\[ \text{joint} = \text{conditional}\times\text{marginal} \]

Example 10.3 consider again the case of the meeting problem which assumes that the \((R, Y)\) pairs of arrival times follow a Bivariate Normal distribution with means (30, 30), standard deviations (10, 10) and correlation 0.7.

Provide answers to the following questions without doing any calculations. It helps to think of the “long run” here as Regina and Cady meeting for lunch each day over many days.

  1. Interpret \(\text{P}(Y < 30 | R = 40)\) in context. Is \(\text{P}(Y < 30 | R = 40)\) greater than, less than, or equal to \(\text{P}(Y < 30)\)?




  2. Interpret \(\text{P}(Y < 30 | R = 15)\) in context. Is \(\text{P}(Y < 30 | R = 15)\) greater than, less than, or equal to \(\text{P}(Y < 30)\)?




  3. Interpret \(\text{P}(Y < R | R = 40)\) in context. Is \(\text{P}(Y < R | R = 40)\) greater than, less than, or equal to \(\text{P}(Y < R)\)?




  4. Interpret the conditional long run average value of \(Y\) given \(R= 40\) in context. Is it greater than, less than, or equal to 30?




  5. Interpret the conditional long run average value of \(Y\) given \(R= 15\) in context. Is it greater than, less than, or equal to 30?




  6. Interpret the conditional standard deviation of \(Y\) given \(R= 40\) in context. Is it greater than, less than, or equal to 10?




  7. Interpret the conditional standard deviation of \(Y\) given \(R= 15\) in context. Is it greater than, less than, or equal to 10?




Example 10.4

Donny Don’t writes the following Symbulate code to approximate the conditional distribution of \(Y\) given \(R=40\), the conditional distribution of Cady’s arrival time given Regina arrives at 12:40. What do you think will happen when Donny runs his code?

R, Y = RV(BivariateNormal(mean1 = 30, sd1 = 10, mean2 = 30, sd2 = 10, corr = 0.7))

(Y | (R == 40) ).sim(10000)






Example 10.5

In the meeting problem, assume that \(R\) follows a Normal(30, 10) distribution. For any value \(r\), assume that the conditional distribution of \(Y\) given \(R=r\) is a Normal distribution with mean \(30 + 0.7(r - 30)\) and standard deviation 7.14 minutes.

  1. How can we simulate a value of \(R\) using only the standard Normal spinner?




  2. Suppose the simulated value of \(R\) is 40. What is the distribution that we want to simulate the corresponding \(Y\) value from?




  3. How can we simulate a value of \(Y\) from the distribution in the previous part using only the standard Normal spinner?




  4. Now suppose the simulated value of \(R\) is 15. What is the distribution that we want to simulate the corresponding \(Y\) value from?




  5. How can we simulate a value of \(Y\) from the distribution in the previous part using only the standard Normal spinner?




  6. Suggest a general method for simulating an \((R, Y)\) pair.




  7. Simulate many \((R, Y)\) pairs and summarize the results, including the correlation. How does the simulated joint distribution compare to the Bivariate Normal distribution from Example 10.3?




  8. What is the approximate marginal distribution of \(Y\)?




Be sure to distinguish between joint, conditional, and marginal distributions.