A machine produces a weighted coin that lands on heads with an unkown probability $p$, and we know that $P(p\le x) = x^4$. You flip the coin $5$ times, and every time it lands on heads. What is the probability that the next flip will also land on heads?
I am not exactly sure how to tackle this problem. I attempted going a conditional probability route, but was not sure what to put as the values for the numerator and denominator. It looks like the probability the coin is less than x is a cumulative distribution function, but I don't know if that intuition is correct or helpful. How should I go about solving this?
$F(x) = x^4, f(x) = 4x^3$, $P(N = 5 \mid p = x) = x^5$.
Define $H(x) = P(p\leq x\mid N = 5) = \int_0^x h(t)\,dt$. Since $ P(N = 5) = \int_0^1 P(N = 5 \mid p = t)f(t)\,dt =\int_0^1 t^5 f(t)\,dt = \frac{4}{9}, $ the density is $$ h(x) = P(p=x\mid N = 5) = \frac{P(N=5\mid p = x) f(x)}{P(N=5)} = x^5 4 x^3\frac{9}{4} = 9 x^8. $$ Therefore $ E[p \mid N = 5] = \int_0^1 x h(x) dx = 9 \int_0^1 x^9 dx = \frac{9}{10}. $
Perhaps its easier to calculate $P(N^+ = 6) =\int_0^1 t^6 f(t)\,dt= \frac{2}{5}$ and $$ P(N^+ = 6 \mid N = 5) = \frac{P(N^+ = 6 \cap N = 5)}{P(N=5)} = \frac{2/5}{4/9} =\frac{9}{10} $$ but this does not give the distribution of $p$.