Lecture 4_250311_143137
Lecture 4_250311_143137
Solution:
Computing the differences between salaries mean Xm - Xf using plus and
minus signs and noting the number of plus (+) signs (n+ )= 5 and the
number of minus (-) signs n− = 1.
1 6 1 1
!
y ∼ B(n, p) = B(6, ) = ( )( )( )6−y
2 y 2 2
y =0
y 2 2
!0 !6 !1 !5
6 1 1 6 1 1
! !
= =
0 2 2 1 2 2
!6 !1 !5 !6
1 1 1 1
= + =7+ = 0.109375
2 2 2 2
which is compared with α2 = 0.025.
(iii) Conclusion: We fail to reject at α = 0.05 since and conclude that
there is no significance difference in salary between the females and males.
Solution:
The number of plus (+) signs (for RA > RB ) and minus signs (for RA <
RB ) are n+ = 13 and n− = 4 respectively. The sample size n = 17 (since
there is one tie).
µy = np = 17(0.5) = 8.5
q q
σy = np(1 − p) = 17(0.5)(0.5) = 2.062
Hence the test-statistic,
y − 0.5 − µy 4 − 0.5 − 8.5
Z= = = −2.425
σy 2.062
which is compared with the critical value, or Zα/2 = Z0.05 = 1.65
student 1 2 3 4 5 6 7
Before 192 198 170 130 113 165 168
After 185 185 162 118 118 159 164
6 ni=1 di
P
rs = 1 −
n(n2 − 1)
where di = rx − ry
11 12
56 70
3.1 2.9
6 8
5 4
1 4
i=1
ii. Hypotheses:
H0 : ρ = 0 (Spoilage times do not correlate with taste ratings)
H1 : ρ ̸= 0 (Spoilage times correlate with taste ratings) at α = 0.05.
6 ni=1 di2
P
rs = 1 −
n(n2 − 1)
6(530.5)
rs = 1 −
12(122 − 1)
1 − 1.855 = −0.855.
which is compared with rα/2(n) = r0.0591
iv. Test Decision
H0 is rejected since |rs | = 0.855 > r0.025 = 0.0587 and conclude that
preservative does affect the taste of the food.
Employee 1 2 3 4 5 6 7 8 9 10
years of Emp. 4 6 10 2 12 6 5 10 13 9
Productivity 80 82 88 81 92 85 83 86 91 90
(iv) Decision Rule: Reject H0 if D > the critical value obtained from K-S
one-sample test-statistic Table at α - level of significance and sample size.
(v) Assumptions:
The sample is randomly selected.
The hypothesized distribution FT is continuous.
Dr. S.K. Appiah Non Parametric Statistics May 10, 2022 60 / 71
Remark:
(i) If the theoretical distribution FT (y ) has some parameters unspecified,
then these unknown parameters are estimated using the sample data
before the test is carried out.
(ii) The decision to reject or accept H0 could be taken using the modified
form of the K-S statistic given by Staple (1974) for three cases in the table
below:
f (y ) = 1/θe −y /θ , y ≥ 0 where F (y ) = (1 − e −y /θ ), y ≥ 0
(i) Hypotheses:
H0 : F (y ) = FT (y ), specified cumulative exponential distribution.
H1 : F (y ) ̸= FT (yi ) at α = 0.05 level of significance.
(ii) Test-statistic: We estimate θ by
n
1X 88.2
ȳ = yi = = 11.025
n i=1 8
X 0 1 2 3 4
f 6 38 58 47 11