5

$$Y \sim Geometric(P)\\ P \sim \mathcal B(2, 1)$$

I'm trying to compute $E[Y]$ without finding marginal distribution of $Y$. I need some hints here. I also need to find the pmf of $Y$. My approach is as follows:

Integrate from 0, 1 over $p: f(p)(1-f(p))^{(y-1)}$ where $f(p)$ is the pdf of $\mathcal B(a, b)$. This leads to some messy algebra. Am I on the right track?

gung - Reinstate Monica
  • 132,789
  • 81
  • 357
  • 650
fl4nders
  • 51
  • 1

1 Answers1

5

About your comment:

"How does the law of total expectation apply in a context where there are no conditionals?".

You don't see the conditional distribution because a more precise statement of the problem is $$Y\mid P=p\sim \textrm{Geo}(p) \qquad \textrm{and} \qquad P\sim \textrm{Be}(2,1) \, .$$

Now that you see the conditional distribution, just do the integral: $$\textrm{E}[Y]=\int_0^1 \textrm{E}[Y\mid P=p]\,f(p)\,dp \, .$$

Similarly for the pmf: $$p(y)=\int_0^1 \textrm{Pr}(Y=y\mid P=p)\,f(p)\,dp \, .$$

This is all that you need.

Zen
  • 21,786
  • 3
  • 72
  • 114