How to find binomial pmf with probability = another random variable

272 Views Asked by At

Assume that $Q$ is a random variable with density proportional to $q$ for $0 < q < 1$. Given $Q = q$, $N$ has a binomial distribution with parameters $n$ and $q$.

What is the probability mass function of $N$?

1

There are 1 best solutions below

3
On

If $Q$ has density $f$ on $[0,1]$ and if, conditionally on $Q=q$, $N$ has conditional probability mass function $p(\ \mid q)$, then Bayes formula yields $$ P(N=k)=\int_0^1P(N=k\mid Q=q)\,f(q)\,\mathrm dq=\int_0^1p(k\mid q)\,f(q)\,\mathrm dq. $$ Can you finish?