Expected value and variance of a conditional pdf (I think I have it)

Click For Summary

Homework Help Overview

The problem involves finding the expected value and variance of a random variable \(X_2\) that is conditionally distributed as \(N(x_1, x_1^2)\) given another random variable \(X_1\) which follows a uniform distribution \(U(0,1)\). The original poster expresses uncertainty about their understanding of the relationships between the expected values and variances involved.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to clarify their understanding of the expected value and variance calculations, questioning whether their interpretations of the conditional expectations and variances are correct. They also explore the implications of the uniform distribution of \(X_1\) on the calculations.

Discussion Status

Some participants affirm the calculations presented by the original poster, indicating that the expected value of \(X_2\) is \(1/2\) and the variance is \(5/12\). There is an acknowledgment of the complexity of the concepts involved, with one participant noting a preference for a different method of calculating variance.

Contextual Notes

The discussion includes references to specific theorems and equations related to conditional expectations and variances, highlighting the mathematical framework within which the problem is situated. There is a mention of the potential for confusion due to the vagueness of the textbook material.

phiiota
Messages
29
Reaction score
0

Homework Statement


Suppose the distribution of X2 conditional on X1=x1 is N(x1,x12), and that the marginal distribution of X1 is U(0,1). Find the mean and variance of X2.


Homework Equations


Theorem: E(X_{2})=E_{1}(E_{2|1}(X_{2}|X_{1}))
Var(X_{2})=V_{1}(E_{2|1}(X_{2}|X_{1}))+E_{1}(V_{2|1}(X_{2}|X_{1}))

The Attempt at a Solution


If I understand the above right, which I'm not sure I do, in words, the first part says that the expected value of X2 is going to be the expected value of the conditional function. Here, the expected value of X2|X1 is X1, itself a random variable, and the expected value of that is 1/2 (just the expected value of the marginal uniform distribution.
The second part, a little trickier for me, is the same idea, I'm finding the variance of the random variable X1 (which is the expected value of the conditional distribution X2, and that is 1/12. Then I add that to the expected value of the variance of the conditional distribution. That variable is X1^2, which is equal to the variance of X1 plus the mean of X1 squared.
Am I understanding this right?

Long story short, E(X2)=1/2, Var(X2)= 5/12 (this part is 1/12 + 1/12 + (1/2)^2

Sorry, I hope this is readable.b]
 
Physics news on Phys.org
5/12 looks right to me.
 
Awesome, thanks. This concept took me a little while to get, but I think I got it. It's not very hard, but my book is kind of vague.
 
phiiota said:

Homework Statement


Suppose the distribution of X2 conditional on X1=x1 is N(x1,x12), and that the marginal distribution of X1 is U(0,1). Find the mean and variance of X2.


Homework Equations


Theorem: E(X_{2})=E_{1}(E_{2|1}(X_{2}|X_{1}))
Var(X_{2})=V_{1}(E_{2|1}(X_{2}|X_{1}))+E_{1}(V_{2|1}(X_{2}|X_{1}))

The Attempt at a Solution


If I understand the above right, which I'm not sure I do, in words, the first part says that the expected value of X2 is going to be the expected value of the conditional function. Here, the expected value of X2|X1 is X1, itself a random variable, and the expected value of that is 1/2 (just the expected value of the marginal uniform distribution.
The second part, a little trickier for me, is the same idea, I'm finding the variance of the random variable X1 (which is the expected value of the conditional distribution X2, and that is 1/12. Then I add that to the expected value of the variance of the conditional distribution. That variable is X1^2, which is equal to the variance of X1 plus the mean of X1 squared.
Am I understanding this right?

Long story short, E(X2)=1/2, Var(X2)= 5/12 (this part is 1/12 + 1/12 + (1/2)^2

Sorry, I hope this is readable.b]

To understand the above, just think of X1 as discrete (and X2 may be discrete, continuous or mixed). Then
E\,X_2 = \sum_{x_1} P\{ X_1 = x_1 \} \, E(X_2 |X_1 = x_1), \\<br /> E\,X_2^2 = \sum_{x_1} P\{ X_1 = x_1 \} \, E(X_2^2 |X_1 = x_1),\\<br /> \text{Var}(X_2) = E\,X_2^2 - (E\, X_2)^2.
When X1 is continuous, just replace a sum by an integral, etc.

In your case X2|X1=x1 ~ N(x1,x1^2) and X1~U(0,1), so
E\,X_2 = \int_0^1 x_1 \, dx_1 = 1/2, as you said, and
E(X_2^2 |X_1 = x_1) = \text{Var}(X_2|X_1=x_1) + (E(X_2|X_1=x_1))^2 = <br /> 2 x_1^2,\\<br /> \Longrightarrow \text{Var}(X_2) = \int_0^1 2x_1^2 \, dx_1 - (1/2)^2 = 5/12,
as you also stated. Personally, I prefer this last way of getting the variance, as opposed to using the formulas you gave. However, either way works if you are careful.

RGV
 

Similar threads

Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
5
Views
2K
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K