Exercise
A diagnostic test for the presence of a disease has two possible outcomes: 1 for disease present and 0 for disease not present. Let [math]X[/math] denote the disease state (0 or 1) of a patient, and let [math]Y[/math] denote the outcome of the diagnostic test. The joint probability function of [math]X[/math] and [math]Y[/math] is given by:
Calculate [math]\operatorname{Var}(Y | X = 1) .[/math]
- 0.13
- 0.15
- 0.20
- 0.51
- 0.71
The objective is to calculate the conditional variance of [math]Y[/math] given that [math]X=1[/math], which is denoted as [math]\operatorname{Var}(Y | X = 1)[/math]. The joint probability function of [math]X[/math] and [math]Y[/math] is provided:
| [math]X[/math] | [math]Y=0[/math] | [math]Y=1[/math] |
|---|---|---|
| [math]X=0[/math] | 0.800 | 0.025 |
| [math]X=1[/math] | 0.050 | 0.125 |
To determine conditional probabilities given [math]X=1[/math], we first need the marginal probability [math]\operatorname{P}(X=1)[/math]. This is found by summing the joint probabilities for all possible values of [math]Y[/math] when [math]X=1[/math].
We use the definition of conditional probability: [math]\operatorname{P}(A|B) = \frac{\operatorname{P}(A \cap B)}{\operatorname{P}(B)}[/math]. For [math]Y=0[/math]:
The conditional expectation of [math]Y[/math] given [math]X=1[/math] is calculated as:
The conditional second moment of [math]Y[/math] given [math]X=1[/math] is calculated as:
The conditional variance is found using the formula:
- Conditional probabilities are computed by dividing the joint probability of two events by the marginal probability of the conditioning event: [math]\operatorname{P}(A|B) = \frac{\operatorname{P}(A \cap B)}{\operatorname{P}(B)}[/math].
- For a binary random variable (e.g., taking values 0 or 1), its expectation is simply the probability of it taking the value 1. That is, if [math]Z \in \{0,1\}[/math], then [math]\operatorname{E}(Z) = \operatorname{P}(Z=1)[/math].
- Similarly, for a binary random variable [math]Z \in \{0,1\}[/math], its second moment is also equal to the probability of it taking the value 1: [math]\operatorname{E}(Z^2) = (0^2)\operatorname{P}(Z=0) + (1^2)\operatorname{P}(Z=1) = \operatorname{P}(Z=1)[/math].
- The variance of a Bernoulli random variable [math]Z[/math] with [math]\operatorname{P}(Z=1)=p[/math] is given by the formula [math]\operatorname{Var}(Z) = p(1-p)[/math]. In this problem, the conditional distribution of [math]Y[/math] given [math]X=1[/math] is Bernoulli with [math]p = \operatorname{P}(Y=1|X=1) \approx 0.714[/math]. Thus, [math]\operatorname{Var}(Y|X=1) \approx 0.714 \times (1 - 0.714) = 0.714 \times 0.286 \approx 0.204[/math]. This formula provides a direct shortcut for calculating the variance once the conditional probability [math]\operatorname{P}(Y=1|X=1)[/math] is known.
Solution: C
Note that
Therefore