I am trying to understand the concept of "Power of Test" using the example of a coin experiment.
I have a coin that I want to prove is biased towards heads. I toss the coin 10 times, and get 9 heads and 1 tails. The probability of this happening to a fair coin is $0.0107$. On Excel, we can calculate this as:
= BINOM.DIST(9, 10, 0.5, 0) + BINOM.DIST(10, 10, 0.5, 0)
. Or I can calculate this manually as $\binom{10}{9}\cdot0.5^9\cdot0.5^1 + \binom{10}{10}\cdot0.5^{10}\cdot0.5^0 = 0.0107$
This probability is so low, that I can say I have enough evidence to claim that the coin is not fair.
$H_0$ = Coin is Fair; $H_A$ = Coin is biased towards heads
Assuming $H_0$, the probability of at least 9 heads in 10 tosses - the $p-value$ - is so low that I reject $H_0$.
Is $0.0107$ the probability of incorrectly rejecting $H_0$? And $1-0.0107$ the probability of correctly not rejecting the null hypothesis (confidence)? How can I interpret this "confidence"?
And then, how do I calculate power of the test, and interpret it in this situation?
Thanks for your help!