In: Math
This is a case of binomial testing for population proportion.
We are testing for the probability of getting heads, The claim is that Stacy is cheating that means the probability of getting heads is more than getting tails.
The coin is unbiased and that Stacy is not cheating. (P(heads) = 0.5)
VS
The coin is biased and that Stacy is cheating. (P(heads) > 0.5)
Since this a binomial experiment we take the normal approximation and also because it is being tested in only one direction (right ) we will use a 1-tailed z-test.
Critical value at 0.01 level of significance
= 2.3264 ............................using normal percentage tables.
The experiment is conducted 14 times. Therefore n = 14. heads appear 8 times. Therefore x = 8
Test Statistic: ........................ Null proportion
=
= 0.5400
We reject the null hypothesis if |Test Stat| > Critical value
Since 0.5400 < 2.3264
Decision: We do not reject the null hypothesis at 1% level of significance and conclude that P(heads) = 0.5 and Stacy is not cheating.
If heads appears to comes up 12 times then our
Test Stat : = 3.8188
Since Test Stat > Critical
We would reject the null hypothesis and conclude that Stacy was cheating.
Since we assume that Stacy is cheating, we conclude that P(heads) = 55% is assumed to be true.
Power of test =
where is the probability of making type 2 error. Type 2 error is not rejecting the null hypothesis when it is false.
The test states that a biased coin has 55% chance of getting heads. Therefore out of 14 trials if the heads appears 8 or more than 8 () times we would reject it. Means Stacy is cheating.
Not rejecting the null hypothesis means Heads will appear less than 8 times.
Type 2 error is not reject null hypothesis if it is false. At false hypothesis P(Heads) = 0.55
= P( X < 8) | p = 0.55)
= P(X = 0) + P (X = 1 ) + P(X = 2)....P(X = 7) | p = 0.55
=
= 0.21
Power of test = 1 - = 1 - 0.21
Power of test = 0.79
Power of test means the probability of making a correct decision by rejecting the null hypothesis when it is false. A good power is 0.8 (80%).
In our case the power is 0.79 which is good. The decision of rejecting null hypothesis means that Stacy is cheating. A good power of the test is working against Stacy so Stacy was stupid to propose the test.