Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

If x1, x2,.. are identically distributed random variables with given mean, and N is a random variable >= 0 and N is independent of x1,x2,... If y=x_1+x_2+...x_n. How do we find E(y|N=n)?

E(y|N=n) = sum_Y(y*P(Y=y|N=n)) = sum_Y(y*P(Y=y,N=n)/P(N=n))

I am not sure how to count/compute P(Y=y,N=n). How do compute it?

share|improve this question

2 Answers

up vote 1 down vote accepted

You can use the fact that expectation is linear and compute $E(Y|N=n)$. The fact that $N$ is a random variable does not matter as you are computing the expected value of $Y$ conditional on a specific value of $N$.

share|improve this answer

Almost all statistics implicitly condition on N. We treat N as a constant that can come out from the expression $\mathbb{E}\left[\frac{1}{N}\sum_{i=1}^{N}{x_i}\right]$, for example. For that to be appropriate, N has to be a fixed value, which we get by conditioning. Without conditioning on N, as you said, we'd need to know the distribution of N, which is kind of strange to think about ("what are my chances of selecting each value of N for my study?").

It is important to assume that the $x_i$ are independent of N, however. This might be violated if, for example, a study has $100,000 to spend on its subjects and will spend it all no matter how many people are involved. If you are looking at the impact of this spending, then the spending-per-person declines as the number of people increases and N is correlated with your treatment (i.e., spending-per-person).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.