Sie sind auf Seite 1von 3

Handout 14 Hypothesis Tests Regarding a Population Proportion

Example : Gambling with Dr. K. ( Never a good idea ...) From conversations with my former students, it is known that I use two different kinds of coin when I gamble with my students : one coin is fair, the other is loaded to come up heads 70% of the time. The two kinds of coin look, feel, smell and sound the same. And, of course, Im not going to tell you which coin Im using ! I will allow you 64 practice tosses on which to base your decision about p, the probability the coin I give you comes up heads. In technical terms this sample is your basis for testing the pair of hypotheses : H0 : p = 0.5 versus H1 : p = 0.7 (A) One of your fellow students proposes that the null hypothesis be rejected if the number of tosses which come up heads is 40 or more, and otherwise one accepts the null hypothesis that the coin is fair. Find the probability of an error of Type I ; find the probability of an error of Type II. Solution : In terms of the sample proportion, the proposed test is to reject the null hypothesis if the sample proportion of heads is at least 40/64 = 0.625, and reject the null hypothesis otherwise. If p = 0.5 , P( Type I error ) = The key to our computations is to recall that, as a consequence of the Central Limit Theorem, for large n, is approximately a .

standard normal random variable. Thus P( Type I error ) =

. P( Z $ 2 ) = 1 - P ( Z # 2 ) = 1 - 0.9772 = 0.0228.
And if p = 0.7 , P ( Type II error ) =

. P ( Z # -1.31 ) = 0.0951.
(B) Suppose that one wishes to have a test so that the probability of a Type I error is no more than 0.05, and the probability of a Type II error is no more than 0.02. Find such a test. Solution : A reasonable test is to reject the null hypothesis if , and accept the

null hypothesis otherwise. Specifying a test comes down to specifying the critical value, c , and the sample size, n. Calculating as before, P( Type I error ) =

. From the specification on Type I error,

one must have

; so , in terms of n, the

critical value is :

Now consider the Type II error : P ( Type II error ) =

Now substitute

for c to obtain :

. Since we want to commit a Type II error with probability no more than 0.02, set , and solve for n to find

n = 78 .

Then the critical value c is

Just so you understand what this means : the test weve found consists in flipping the coin 78 times ; if there are at least 0.5931( 78 ) . 46 tosses that turn up heads , then one rejects the null hypothesis ; if there are fewer than 46 tosses that come up heads one accepts the null hypothesis ( i.e. the hypothesis that the coin youve got is fair. )

Das könnte Ihnen auch gefallen