Professional Documents
Culture Documents
Di = X1i - X2i
n
The point estimate for the
paired difference
D i
population mean μD is D : D =
i =1
n
n
The sample standard i
(D − D ) 2
deviation is SD SD = i=1
n −1
a a a/2 a/2
M.O. 4 0 - 4
n −1
-21
= 5.67
Paired Difference Test:
Solution
• Has the training made a difference in the number of complaints (at
the 0.01 level)?
Reject Reject
H0: μD = 0
H1: μD 0
a/2 a/2
a = .01 D = - 4.2 - 4.604 4.604
- 1.66
t0.005 = ± 4.604
d.f. = n - 1 = 4
Decision: Do not reject H0
(tstat is not in the reject region)
Test Statistic:
D − μ D − 4.2 − 0 Conclusion: There is not a
t STAT = = = −1.66 significant change in the
S D / n 5.67/ 5 number of complaints.
Wilcoxon Signed-Rank Test
This test is the nonparametric alternative to the
parametric paired t-test .
Summary
• Compute the differences between the paired
observations.
• Discard any differences of zero.
• Rank the absolute value of the differences from
lowest to highest. Tied differences are assigned
the average ranking of their positions.
• Give the ranks the sign of the original difference
in the data.
• Sum the signed ranks.
Hypothesis Testing 18
Signed Rank Test
Example
You work in the finance department. Is the new
financial package faster (α = .05)? You collect the
following data entry times:
User Current New
Donna 9.98 9.88
Santosha 9.88 9.86
Sam 9.90 9.83
Tamika 9.99 9.80
Brian 9.94 9.87
Jorge 9.84 9.84
Signed Rank Test
Computation Table
X1i X2i Di |Di | Ri Sign Sign Ri
9.98 9.88 +0.10 0.10 4 + +4
9.88 9.86 +0.02 0.02 1 + +1
9.90 9.83 +0.07 0.07 2 2.5 + +2.5
9.99 9.80 +0.19 0.19 5 + +5
9.94 9.87 +0.07 0.07 3 2.5 + +2.5
9.84 9.84 0.00 0.00 ... ... Discard
Total T+= 15, T–= 0
Wilcoxon Signed Rank
Table (Portion)
One-Tailed Two-Tailed n=5 n=6 n=7 ..
a = .05 a = .10 1 2 4 ..
a = .025 a = .05 1 2 ..
a = .01 a = .02 0 ..
a = .005 a = .01 ..
n = 11 n = 12 n = 13
: : : :
Signed Rank Test
Solution
• H0: Identical Distrib.
Test Statistic:
• Ha: Current Shifted T– = 0
Right
• a = .05
• n' = 5 (not 6; 1 elim.)
• Critical Value(s): Decision:
Reject at a = .05
Do Not
Reject
H0 Reject Conclusion:
H0 There is evidence new
1 T0 package
© 2011 Pearson Education, Inc is faster
Mc Nemar Test
• The Mc Nemar test is a non-parametric test for paired
nominal data. It’s used when you are interested in finding a
change in proportion for the paired data and is especially
useful with before-after measurement of the same subjects.
Do not Favor a b
Favor c d
After
Before Unfavorable Favorable
Favorable 10 90
Unfavorable 60 40
H0: same change in proportion
Ha: Change in proportion not the same
= 30*30/50=18 ; df=1
We reject the null hypothesis and conclude there has been a change in
attitude.
Example: Express Deliveries
A firm has decided to select one
of two express delivery services to
provide next-day deliveries to its
district offices.
To test the delivery times of the two services, the
firm sends two reports to a sample of 10 district
offices, with one report carried by one service and the
other report carried by the second service. Do the data
on the next slide indicate a difference in the two
services? Use a non-parametric test.
District Office OverNight NiteFlite
Seattle 32 hrs. 25 hrs.
Los Angeles 30 24
Boston 19 15
Cleveland 16 15
New York 15 13
Houston 18 15
Atlanta 14 15
St. Louis 10 8
Milwaukee 7 9
Denver 16 11
Example:
Compare the two years of sales data for 10 companies. Is there a
significant difference between the two years of sales? Use both a
parametric and a non-parametric test.
Company Sales Year 2 Sales Year 1
A 126932 123505
B 54574 49662
C 86656 78944
D 62710 59512
E 96146 92300
F 36112 35173
G 50220 48111
H 35099 32427
I 53794 49975
J 23966 20779
Example: