I am working on a problem involving Bernoulli trials with an interesting twist. Here's the setup:
- $n$ independent Bernoulli trials are conducted.
- The success probability $Q$ is unknown and follows a uniform distribution between $0$ and $1$.
What is the probability of getting exactly $m$ successes out of these $n$ trials?
I can solve the question by applying the law of total probability. But my lecturer suggested that there's also a potential intuitive explanation using the indicator variable $\mathbb{I}_{\{Q<p\}}\sim \mathrm{Bern}(p)$, but I'm unsure how to apply it to reach the solution.