what is the probability of flipping three heads in a row?
I started by doing binomial,
so to calculate the probability of three consecutive head would be (.5)^3 which yields .125 but that assumes the coin is fair. How would you account for a biased coin?
Denote by $X$ the random variable which produces $p$ (the probability that the coin gets heads) - it's distribution is $U[0,1]$.
$$P(2 \space heads)=\int_{x=0}^ {1} {f_X(x)\bullet x^2dx} =\int_{x=0}^ {1} {1 x^2dx}= \frac{1}{3}$$
$$P(3 \space heads)=\int_{x=0}^{1} {f_X(x)\bullet x^3} = \frac{1}{4}$$
$$P(3\space heads\space |\space 2\space heads) = \frac{P(3 \space heads)}{P(2\space heads)} = \frac{\frac{1}{4}}{\frac{1}{3}} = \frac{3}{4}$$
And that's our answer.