In: Statistics and Probability
what is the test statistic and pvalue of the data?
Hypothesis test results:
| Difference | Count1 | Total1 | Count2 | Total2 | Sample Diff. | Std. Err. | Z-Stat | P-value | 
|---|---|---|---|---|---|---|---|---|
| p1 - p2 | 9 | 31 | 8 | 30 | 0.023655914 | 0.1148271 | 0.20601333 | 0.8368 | 
first sample size,     n1=  
31          
number of successes, sample 1 =     x1=  
9          
proportion success of sample 1 , p̂1=  
x1/n1=   0.2903      
   
          
       
sample #2   ----->   standard  
       
second sample size,     n2 =   
30          
number of successes, sample 2 =     x2 =
   8      
   
proportion success of sample 1 , p̂ 2=   x2/n2 =
   0.267      
   
          
       
difference in sample proportions, p̂1 - p̂2 =    
0.2903   -   0.2667   =  
0.0237
          
       
pooled proportion , p =   (x1+x2)/(n1+n2)=  
0.2787          
          
       
std error ,SE =    =SQRT(p*(1-p)*(1/n1+
1/n2)=   0.1148      
   
Z-statistic = (p̂1 - p̂2)/SE = (  
0.024   /   0.1148   ) =  
0.2060
          
       
p-value =       
0.8368   [excel formula =2*NORMSDIST(z)]  
   
.....................
test stat = 0.20601333
p value = 0.8368
..........
thanks