Exercise
The stock prices of two companies at the end of any given year are modeled with random variables [math]X[/math] and [math]Y[/math] that follow a distribution with joint density function
Determine the conditional variance of [math]Y[/math] given that [math]X = x[/math].
- 1/12
- 7/6
- [math]x + 1/2 [/math]
- [math]x^2 - 1/6[/math]
- [math]x^2 +x + 1/3[/math]
The marginal density function of [math]X[/math], denoted as [math]f_X(x)[/math], is found by integrating the joint density function [math]f(x,y)[/math] with respect to [math]y[/math] over its defined range.
The conditional density function of [math]Y[/math] given [math]X=x[/math], denoted as [math]f_{Y|X}(y|x)[/math], is calculated using the formula [math]f_{Y|X}(y|x) = \frac{f(x,y)}{f_X(x)}[/math]. We are given the joint density function [math]f(x,y) = 2x[/math] for [math]0 \lt x \lt 1, x \lt y \lt x+1[/math], and from Step 1, we found the marginal density function [math]f_X(x) = 2x[/math] for [math]0 \lt x \lt 1[/math]. Substituting these into the formula:
For a random variable uniformly distributed over an interval [math](a,b)[/math], the expectation is [math]\frac{a+b}{2}[/math]. In this case, [math]a=x[/math] and [math]b=x+1[/math]. Alternatively, we can calculate it by integration:
The conditional second moment is calculated by integrating [math]y^2[/math] multiplied by the conditional density function:
The conditional variance [math]\operatorname{Var}[Y|X=x][/math] is given by the formula:
- Calculating conditional variance requires determining both the conditional expectation [math]E[Y|X=x][/math] and the conditional second moment [math]E[Y^2|X=x][/math] of the random variable.
- The fundamental formula for conditional variance is [math]\operatorname{Var}[Y|X] = E[Y^2|X] - (E[Y|X])^2[/math].
- To find the conditional density function [math]f_{Y|X}(y|x)[/math], one must first compute the marginal density function [math]f_X(x)[/math] and then apply the definition [math]f_{Y|X}(y|x) = \frac{f(x,y)}{f_X(x)}[/math].
- Recognizing a conditional distribution as a standard probability distribution (e.g., uniform) can significantly simplify calculations. For a uniform distribution [math]U(a,b)[/math], the variance is given by [math]\frac{(b-a)^2}{12}[/math]. In this problem, [math]Y|X=x \sim U(x, x+1)[/math], so [math]a=x[/math] and [math]b=x+1[/math]. Thus, [math]\operatorname{Var}[Y|X=x] = \frac{((x+1)-x)^2}{12} = \frac{1^2}{12} = \frac{1}{12}[/math], which directly confirms the result obtained through integration.
- Even if the limits of integration for the conditional distribution depend on [math]x[/math], the conditional variance can still be a constant if the length of the interval of the conditional distribution is fixed. In this case, the interval length for [math]Y|X=x[/math] is [math](x+1) - x = 1[/math], which is constant.
Solution: A
Let [math]f_1(x)[/math] denote the marginal density function of X. Then
Consequently,
Consequently,