Suppose we flip 10 times an unfair coin that fall a probability of $p$ on 'heads'. Knowing that we obtained 'heads' 6 times out of the 10 flips, find the conditionnal probability of the first three flips being heads, tails, tails.
My effort: Since we don't know the exact probability of getting heads i would think it would be somthing like:
A: Probability of getting 6 'head' out of 10 B: Probability for the first 3 flip to be 'heads''tails''tails'
$A:\binom{10}{6}(p)^6(1-p)^4$
$B:p(1-p)^2$
$(B|A):???$
Any help to point me in the right direction would be greatly appreciated.
Thank you.
$P(\text{first 3 flips were HTT }|\text{ 6/10 flips were heads overall})$
$=\frac{P(\text{first 3 flips were HTT } \cap \text{ 6/10 flips were heads overall}) }{ P(\text{6/10 flips were heads overall})}$
$=\frac{P(\text{first 3 flips were HTT } \cap \text{ 5 heads in the final 7 flips}) }{ P(\text{6/10 flips were heads overall})}$
$=\frac{p(1-p)(1-p) \cdot \binom{7}{5}p^5(1-p)^2}{ \binom{10}{6}p^6(1-p)^4}$
$=\frac{1}{10}$