cielo
- 14
- 0
Homework Statement
Suppose X ~ uniform (0,1) and the conditional distribution of Y given X = x is binomial (n, p=x), i.e. P(Y=y|X=x) = nCy x^{y} (1-x)^{n-y} for y = 0, 1,..., n.
Homework Equations
FInd E(y) and the distribution of Y.
The Attempt at a Solution
f(x) = \frac{1}{b-a} = \frac{1}{1-0} =1E[Y] = E [E[Y|X=x]
= \int E[Y|X=x] f(x) dx where the integral is from o to 1
= \int [\Sigma y f(y|x)] f(x) dx
= \int [\Sigma y nCy x^{y} (1-x)^{n-y}] f(x) dx
...but I do not know anymore what to do next...please help.