39.3. Exercises#
Exercise 39.1 (Random and colorblind)
The gene responsible for color blindness is located on the X chromosome. In other words, red-green color blindness is an X-linked recessive condition and is much more common in males (with only one X chromosome). According to the Howard Hughes medical institute about 7% of men and 0.4% of women are red-green colorblind. Furthermore, sccording to SCB, the Swedish population is 50,3% male and 49,7% female. What is the probability that a person selcted at random is colorblind?
Exercise 39.2 (Conditional discrete probability mass function)
The joint probability mass function of the discrete variables \(X,Y\) is
Find the conditional probability mass function \(\pdf{y}{x}\).
Verify that it is properly normalized.
Exercise 39.3 (Conditional probability for continuous variables)
The continuous random variables \(X,Y\) have the joint density
Find the probability \(\cprob{Y<2}{X=5}\).
Exercise 39.4 (Conditional expectation)
Assume that the continuous random variables \(X,Y\) have the joint density
Find the conditional expectation \(\expect{Y \vert X=x}\).
Solutions#
Solution to Exercise 39.1 (Random and colorblind)
Let \(C\), \(M\), \(F\) denote the events that a random person is colorblind, male, and female, respectively. By the law of total probability
Solution to Exercise 39.2 (Conditional discrete probability mass function)
The conditional probability mass function can be obtained from the ratio
Let us therefore find the marginal probability mass function
Thus we get \(\pdf{y}{x} = \frac{(x+y)/18}{(x+1)/6} = \frac{x+y}{3(x+1)}\) for \(y \in \{0,1,2\}\).
We find that this pdf (over \(y\)) is properly normalized since
Solution to Exercise 39.3 (Conditional probability for continuous variables)
The desired probability is
To find the conditional density \(p_{Y|X}(y \vert x)\) we need the marginal one
for \(x > 0\). This gives
for \(0 < y < x\). Note that this is a uniform distribution for \(y\) given \(x\). Therefore
Solution to Exercise 39.4 (Conditional expectation)
We need the marginal density
to get the conditional one
The conditioned expectation is therefore