Beruflich Dokumente
Kultur Dokumente
Before-after study :
blood pressure of a patient before/after intake of a drug
performance of staff before/after receiving training
Name
Before
After
A
B
C
D
E
F
210
185
215
198
187
225
196
192
204
193
181
233
Blood
Blood
Pressure (am) Pressure (pm)
135
136
121
121
:
116
117
126
129
124
119
:
123
120
Husband
Wife
1
2
3
4
5
6
2.1
1.8
1.5
1.6
1.8
1.7
1.9
1.9
1.4
1.3
1.8
2.3
1st sample
2nd sample
Difference
1
2
:
n
X11
X12
:
X1n
X21
X22
:
X2n
D1 = X11 X21
D2 = X12 X22
:
Dn = X1n X2n
D2
Hypotheses :
H0: D
H0: D
H0: D =
D is estimated by D where
n
D (X
i1
i1
1i
X 2i )
X1 X 2
Paired Z Test
Used when :
populations normal
D known
Test statistic :
D
Z
D n
Paired t Test
Used when :
populations normal
D unknown
Test statistic :
D
t
SD
n
where
SD
2
(
D
D
)
i
i 1
n 1
Difference
0.10
0.02
0.09
0.19
0.07
0.00
- 0.01
0.14
0.07
0.05
(continued)
H 0 : D 0
H1 : D > 0
t0.05,101 1.8331
SD
0.072
D D
i
n 1
0.06215
Test Statistic
D0
0.072 0
t
3.66
S D n 0.06215 10
(continued)
Since t = 3.66 is in
the rejection region,
we reject the null
hypothesis.
There is sufficient
evidence that the
new system is faster
than the existing
system
Rejection
region
0.5
1.5
2.5
t0.05,101 1.8331
3.5
t 3.66
2
(
D
D
)
S D2 i
n 1
i 1
n
(( X 1i X 1 ) ( X 2i X 2 )) 2
=
n 1
i 1
n
n
( X 1i X 1 ) 2 n ( X 2i X 2 ) 2
( X 1i X 1 )( X 2i X 2 )
2
n 1
n 1
n 1
i 1
i 1
i 1
n
S12 S 22 2 S12
S12 S 22 2rS1S 2