You have a coin and p is the probability of heads. You throw the coin until you obtain heads for the first time. You want to test H_0:p=1/2 against H_1:p<1/2. You reject H0 in favor of H_1 if T>=k, where T is the number of the throw which yielded heads for the first time and k an integer. Determine the smallest value of k corresponding to the level of significance alpha=0.01.

Jacoby Erickson

Jacoby Erickson

Answered question

2022-10-25

You have a coin and p is the probability of heads.
You throw the coin until you obtain heads for the first time.
You want to test H 0 : p = 1 / 2 against H 1 : p < 1 / 2. You reject H 0 in favor of H 1 if T k, where T is the number of the throw which yielded heads for the first time and k an integer.
Determine the smallest value of k corresponding to the level of significance α=0.01.
Answer k=8
I can't find the correct solution for this question, how it's possible to have H 1 : p < 1 / 2 and then they say that we reject H 0 in favor of H 1 if T k, shouldn't they be in the same direction?
I have to compute P ( T > k | H 0 ) = P ( T > k | p = 1 / 2 ) right? How can I compute it?

Answer & Explanation

bibliothecaqz

bibliothecaqz

Beginner2022-10-26Added 12 answers

You are in the right direction. You need to solve the inequality P ( T k | p = 1 2 ) 0.01
(I hope this makes sense for you, as this is just the definition of level of the test. Some authors also call it size. But there is a distinction between them. For e.g. look here. To be more precise, if you are given the size for the test of a simple hypothesis, we would have used equality sign above. )
T being the total no. of throws required for obtaining the first head, its probability distribution can be computed as mentioned in the comment above. I would apply rather an intuitive method to do the same.
P ( T k | p = 1 2 ) = 1 P ( T < k ) = 1 [ P ( T = 1 ) + P ( T = 2 ) + + P ( T = k 1 ) ] = 1 [ 1 2 + ( 1 2 ) 2 + ( 1 2 ) k 1 ] (When we say that  T = i , i > 1 , we mean that the first  ( i 1 )  results in tails.  Head is obtained only on the  i t h  toss. Since the trials are independent, this  probability is just  ( 1 2 ) i 1 . 1 2 = ( 1 2 ) i ) = ( 1 2 ) k 1 0.01
The least value of k for which this holds is 8.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in College Statistics

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?