The Student Room Group

S2 - Type II Errors

A pharmaceutical company is developing a new drug to treat a certain disease. The company will continue to develop the drug if the proportion of thos who have the disease show a substantial improvement after treatment is greater than 0.7. The company carries out a test at the 5% signif level, on a random sample of 14 patients who suffer from the disease.

a) find the critical region for the test

b) Given that 12 out of 14 patients show an improvemnt, carry out the test

c) find the prob that the test results in a type II error if in fact p=0.8


So far I have done this:

a) z>1.645

b) Xobserved = 12, X~B(14, 0.7), E(X) 12>14
so P(x>12)=1-p(x<11) = 1-0.8392 = 1.608
1.608<1.645 so accept H1.

c) P(type II error | p=0.8)
Now I did start doing this but got really confused as only done one question like this in class!! (We did lots on continuous data but only one for discrete!) Could someone explain how to do it??

Also I am unsure if (a) and (b) are correct as well, so if you can confirm this/find errors? :smile:

Thankyouu :smile:
Reply 1
(a) H0: p=0.7 H1: p>0.7
Under H0, X~B(14, 0.7)
The critical region will be of the form X>=c where P(X>=c) <0.05
Solve this to find c.
Original post by Stephhcharlene
A pharmaceutical company is developing a new drug to treat a certain disease. The company will continue to develop the drug if the proportion of thos who have the disease show a substantial improvement after treatment is greater than 0.7. The company carries out a test at the 5% signif level, on a random sample of 14 patients who suffer from the disease.

a) find the critical region for the test

b) Given that 12 out of 14 patients show an improvemnt, carry out the test

c) find the prob that the test results in a type II error if in fact p=0.8


So far I have done this:

a) z>1.645

b) Xobserved = 12, X~B(14, 0.7), E(X) 12>14
so P(x>12)=1-p(x<11) = 1-0.8392 = 1.608
1.608<1.645 so accept H1.

c) P(type II error | p=0.8)
Now I did start doing this but got really confused as only done one question like this in class!! (We did lots on continuous data but only one for discrete!) Could someone explain how to do it??

Also I am unsure if (a) and (b) are correct as well, so if you can confirm this/find errors? :smile:

Thankyouu :smile:


---NOTE: I haven't done stats for a while. I'm only trying to help here but if someone jumps in and corrects me, they're probably right :tongue:---

Not sure where z came from in part a) - you've recognised this is binomial, so why did you make it normal?

Also for part b), the bit in bold makes no sense -

so P(x>12)=1-p(x<11) = 1-0.8392 = 1.608
1.608<1.645 so accept H1.

I think for this sort of question you should be looking at your binomial tables... hint there :smile:
Original post by vc94
(a) H0: p=0.7 H1: p>0.7
Under H0, X~B(14, 0.7)
The critical region will be of the form X>=c where P(X>=c) <0.05
Solve this to find c.


Hmm.. god my brain is fuzzled. Sorry my teacher really rushed the whole bit of hypothesis testing so I keep getting bits muddled!!

Am I right in thinking then that I don't do the 'normal' critical region as this is binomial? Is that why you are suggesting the P(x>c) bit? Also, I do not quite understand what you mean by this, could you explain it a bit fuller? Thanks! :smile:
Original post by Xero Xenith
---NOTE: I haven't done stats for a while. I'm only trying to help here but if someone jumps in and corrects me, they're probably right :tongue:---

Not sure where z came from in part a) - you've recognised this is binomial, so why did you make it normal?

Also for part b), the bit in bold makes no sense -

so P(x>12)=1-p(x<11) = 1-0.8392 = 1.608
1.608<1.645 so accept H1.

I think for this sort of question you should be looking at your binomial tables... hint there :smile:


Ah sorry of course!! Sorry should have noticed all of that :P As I just said we did it all very quickly and I keep getting mixed up!! :P
Original post by Stephhcharlene
Hmm.. god my brain is fuzzled. Sorry my teacher really rushed the whole bit of hypothesis testing so I keep getting bits muddled!!

Am I right in thinking then that I don't do the 'normal' critical region as this is binomial? Is that why you are suggesting the P(x>c) bit? Also, I do not quite understand what you mean by this, could you explain it a bit fuller? Thanks! :smile:


Correct. If it's just binomial, with a sample size small enough so you can use tables without having to do any approximations, use the tables! :smile:
Ok... In my book I found something that may be it?

My notes say that
p(x>b) <0.05 -> 1-P(x<b-1) -> P(x<b-1)>0.95
Then look up the first number bigger than 0.95 in the tables and make it equal to b-1, (which I got as 13, so b=14 ?

Does this meanm my CR is x>14 ?
(edited 12 years ago)
Reply 7
Original post by Stephhcharlene
Hmm.. god my brain is fuzzled. Sorry my teacher really rushed the whole bit of hypothesis testing so I keep getting bits muddled!!

Am I right in thinking then that I don't do the 'normal' critical region as this is binomial? Is that why you are suggesting the P(x>c) bit? Also, I do not quite understand what you mean by this, could you explain it a bit fuller? Thanks! :smile:


Critical region are the X values that lead to rejection of H0. You reject H0 when
P(X>=c) <0.05
i.e. 1 - P(X <= c-1) <0.05
P(X <= c-1) >0.95

Use binomial tables to find the range of values for c-1 and hence for c.
Original post by vc94
Critical region are the X values that lead to rejection of H0. You reject H0 when
P(X>=c) <0.05
i.e. 1 - P(X <= c-1) <0.05
P(X <= c-1) >0.95

Use binomial tables to find the range of values for c-1 and hence for c.


I think that is what I just did in the post above :biggrin: Is that right?
Reply 9
Original post by Stephhcharlene
I think that is what I just did in the post above :biggrin: Is that right?


Yes, it's right!
P
P(X<=12) = 0.9525

So c-1 >=12, so critical region is X>=13
Made slight error in my post as silly mistake, but it should be x>=14 :smile: Thanks!!

Could you help me with part b?
Reply 11
(b) critical region tells you when to reject H0.
Here x=12, is this inside the critical region?

Quick Reply

Latest