20021201
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
+
x
1
: data value of sample 1
x
2
: data value of sample 2
n
1
: size of sample 1
n
2
: size of sample 2
ˆp
: estimated sample proportion
Command Syntax
“p
1
condition”,
x
1
value,
n
1
value,
x
2
value,
n
2
value
Definition of Terms
p
1
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.)
x
1
:
data value (integer,
x
1
>
0) of sample 1
n
1
:
size of sample 1 (positive integer)
x
2
:
data value (integer,
x
2
>
0) of sample 2
n
2
:
size of sample 2 (positive integer)
Input Example:
TwoPropZTest “>”,15,20,25,30
Calculation Result Output
p
1
>
p
2
: 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
n
1
:
size of sample 1
n
2
:
size of sample 2
7-9-5
Tests