You toss a coin $n$ times; $m$ times you get heads. What is the probability that it is a fair coin?
My solution:
A fair coin will give us probability of $0.5$ of getting heads.
Assume: $\;\;\;n=100$ tosses, $\;\;m=50$ heads, $\;\;p=0.5$.
$$P(X=50)=\frac{100!}{(50!*50!)}*0.5^{50}*0.5^{50} = 0.079.$$
So there's a $7.9$% chance that the coin is fair.
Am I right?
Thank you!