C. POWER FUNCTIONS 1. A one-sided Test.

advertisement
1
252powert 2/8/01
(Open this document in 'Page Layout' view!)
C. POWER FUNCTIONS
1. A one-sided Test.
H 0 :    0
If we consider the problem: 
for a give value of  , to construct an operating characteristic
H 1 :    0
curve, we must find the value of  for all possible values of 1 above  0 . As a practical matter, let
1 equal  0 ,  0  1 2 z  x ,  0  z  x  x cv  ,  0  3 2 z  x and so on until  is almost one. The
power function is a plot of 1   instead of  , and crosses the operating characteristic curve at the critical
value.
H :   500
Example: Assume that   .025 and test  0
when   35 and n  50 , so that
H 1 :   500

35
x 

 4.95 and xcv   0  z  x  500  1.960 4.95   509 .7 . We thus reject the null
n
50
hypothesis if the sample mean is above 509.7. Since the interval between  0 and x cv is about 10, the
interval between values of 1 should be about half that, so let 1 equal 505, 509.7, 515, and 520. (One
value of 1 should be  0 , and one should be x cv .)


Start then, by assuming that 1  505 . Then   P ' Accepting' H 0 H 0 is false

x  1 
509 .7  505 

 Px  509 .7   505   P  z  cv
  Pz 
  Pz  0.95  .5  .3289  .8289
x 
4.95



An illustration would help. Since our critical value is 509.7,
we accept the null hypothesis only if the sample
mean is less than or equal to 509.7. But let us assume that the
population mean is actually 505. In all the following diagrams,
the ‘reject’ region is shaded southwest to northeast and the
region representing the probability of wrongly failing to reject
the null hypothesis is shaded northwest to southeast.
Then we can draw two Normal curves, one centered at 505
and one centered at 500. The probability of rejecting the null
hypothesis when it is true is the right shaded area, while the
probability of accepting the null hypothesis when the mean is
505 is the left shaded area.
Now, try the second value, 509.7, for 1 .
  P' Accepting' H 0 H 0 is false

x  1 
 Px  509 .7   509 .7  P z  cv

x 

509 .7  509 .7 

 Pz 
  Pz  0  .5000 Note that  at
4.95


1  xcv is always .5000.
1
2
Next, let's try 1  515 .
  Px  509.7   515
509 .7  515 

 Pz 
  Pz  1.07  .1423 .
4.95


For 1  520 .
  Px  509.7   520
509 .7  520 

 Pz 
  Pz  2.08  .0188
4.95


Finally, to get a limiting value, let
1  500 .   P x  509.7   500


509 .7  500 

 Pz 
  Pz  1.96  .9750 . Note that 
4.95


at  1   0 is always 1   .
We can summarize our results in the table and graph below.

Power 1  
1
500
505
509.7
515
520
.9750
.8289
.5000
.1423
.0188
2.50%
17.11%
50.00%
85.77%
98.12%
2. A Two-Sided Test.
This is the same as a one sided test except that we must consider values of 1 on both sides of
 0 . This is
little additional effort since points at the same distance from  0 have the same values of  .
 H 0 :   165
Example: Assume that   .05 and test 
when   48 and n  36 , so that
 H 1 :   165
x 

n

48
 8.00
36
x cv   0  z   x  165  1.960 8.00   165  15 .7
2
We thus reject the null hypothesis if the sample mean is below
149.3 or above 180.7.
Since the interval between  0 and x cv is actually between 15.6 and 15.7, space 1 at half that, or about 7.8
or 7.9. The points that I picked above 165 were 172.8, 180.7, 188.5,and 196.4. The points below 165 were
157.2, 149.3, 141.5 and 133.6. Note that, for example 172.8 and 157.2 are at the same distance from 165.
2
3

 P149.3  x  180.7   172.8

Now, try 172.8 for 1 .   P ' Accepting' H 0 H 0 is false
180 .7  172 .8 
149 .3  172 .8
 P
z
  P 2.94  z  0.99
8
8


= .4984 + .3389 = .8373. Now try the same calculation for
1  157 .7 , which is the same distance to the left of 165 as
172.8 is to the right.
This time
  P ' Accepting' H 0 H 0 is false  P 149.3  x  180.7   157.7

 

180 .7  157 .7 
149 .3  157 .7
 P
z
  P0.99  z  2.94  .3389  .4984  .8373 , which is the same
8
8


result as for 1  172 .8 . In other words the operating characteristics curve and power curve for values of
1 to the left of  0 is the mirror image of the curve to the right of  0 . The table below summarizes our
results and further calculations. x cvL means a lower critical value and x cvU means an upper critical value.
These become z L and zU . Note that, as above, when 1   0 Power   , and when 1  x cv Power =
50%.
Power
1
zL
zU
x cvL  1
x cvU  1

1  


165
172.8 (Same
as 157.2)
180.7 (Same
as 149.3)
188.5 (Same
as 141.5)
196.4 (Same
as 133.8)
x
x
149 .3  165
8
149 .3  172 .8
8
149 .3  180 .7
8
149 .3  188 .5
8
149 .3  196 .4
8
180 .7  165
8
180 .7  172 .8
8
180 .7  180 .7
8
180 .7  188 .5
8
180 .7  196 .4
8
-1.96
1.96
.4750 + .4750
= .9500
5.00%
-2.94
0.99
.4984 + .3389
= .8373
16.27%
-3.93
0.00
.5000
50.00%
-4.90
-0.98
83.65%
-5.98
-1.96
.5000  .3365
 .1635
.5000  .4750
 .0250
97.50%
3
Download