A jar has 300 buttons in it. 299 buttons have one side red, the other side blue. One of the buttons has both sides blue. I randomly take a button from the jar and toss it 5 times getting 5 blues in a row. What is the probability I chose the special blue button?
I did: $$ \begin{align} P(\text{chose blue button}|\text{5 blue tosses}) &= \frac{P(\text{choose blue button and 5 blue tosses})}{P(\text{5 blue tosses})}\\ &= \frac{\frac{1}{300}\cdot 1^5}{\frac{299}{300} \left(\frac{1}{2}\right)^5 + \frac{1}{300}1^5} \end{align} $$ Is this correct?
It is correct. Maybe it is more clear when it is written as
$$\begin{align}P(\text{chose blue }|\text{5 blue tosses}) &= \frac{P(\text{5 blue tosses|blue})P(\text{blue})}{P(\text{5 blue tosses|blue })P(\text{blue })+P(\text{5 blue tosses|other})P(\text{other})} \\[10pt] &= \frac{(1^5)\frac{1}{300}}{(1^5)\frac{1}{300}+(\frac{1}{2})^5\frac{299}{300}}\end{align}$$