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$?
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$?
Copyright © 2021 JogjaFile Inc.
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?