20050501
2-Prop Z Test
Command: TwoPropZTestⅪ
Description: This command compares the proportion of successes for two populations.
A 2-Prop Z Test is used for normal distribution.
Z =
n
1
x
1
n
2
x
2
–
p(1 – p )
n
1
1
n
2
1
+
x1 : data value of sample 1
x2 : data value of sample 2
n1 : size of sample 1
n2 : size of sample 2
ˆp : estimated sample proportion
Command Syntax
“p1 condition”, x1 value, n1 value, x2 value, n2 value
Definition of Terms
p1 condition : sample proportion test conditions (“≠” specifies two-tail test, “<”
specifies one-tail test where sample 1 is smaller than sample 2, “>”
specifies one-tail test where sample 1 is greater than sample 2.)
x1 : data value (integer, x1 > 0) of sample 1
n1 : size of sample 1 (positive integer)
x2 : data value (integer, x2 > 0) of sample 2
n2 : size of sample 2 (positive integer)
Input Example:
TwoPropZTest “>”,15,20,25,30
Calculation Result Output
p1>p2 : test condition
z : z value
p : p-value
ˆp 1 : estimated proportion of sample 1
ˆp 2 : estimated proportion of sample 2
ˆp : estimated sample proportion
n1 : size of sample 1
n2 : size of sample 2
7-9-5
Tests