Chapter 3
Chapter 3
STATISTICAL
INFERENCES (WEEK 10)
3.1 Introduction
3.2 Sampling distribution WEEK 8
NPS use median in making inferences about a population (parametric tests use mean).
NPS is also used to infer non-numerical data that require ranking approach such as
1. Nominal data
2. Ordinal data
3. Interval scale or ratio scale data but there is no assumption regarding the probability
distribution of the population where the sample is selected.
Normal distributed data ➔ Parametric test (CI, HT, t-test, F-test,
ANOVA)
Non-normal distributed data ➔ Nonparametric test.
NPS are:
❑ Sign Test
❑ Mann-Whitney Test
❑ Kruskal Wallis Test
❑ Wilcoxon Signed Rank Test
❑ Spearman’s Rank Correlation Test
Sign Test
➔The simplest NPS
➔Test the value of the median from a single sample.
➔Convert the data value into +/- sign.
Sign Test Procedures
1. State the hypotheses (determine the type of test: 2-tailed test,
left/right tailed test).
Put a + sign for the value greater than the hypothesized median value
Put a - sign for the value less than the hypothesized median value
Put a 0 for the value equal to the hypothesized median value
5. Make a decision
Reject Ho if test statistic, k ≤ critical value
6. Conclusion
Example 1:
The following data constitute a random sample of 15 measurement of the octane rating of a
certain kind gasoline:
99.0 102.3 99.8 100.5 99.7 96.2 99.1 102.5
103.3 97.4 100.4 98.9 98.3 98.0 101.6
Test the null hypothesis median = 98 against the alternative hypothesis median > 98 at 0.05
level of significance.
Solution:
1. H0: median = 98
H1: median > 98 (Claim) ➔ Right-tailed test
2. 99.0 102.3 99.8 100.5 99.7 96.2 99.1 102.5
+ + + + + - + + + sign = 12
103.3 97.4 100.4 98.9 98.3 98.0 101.6 -sign = 2
+ - + + + 0 + +/- sign = 14
6. There is enough evidence to support the claim that the median of the octane rating of
a certain kind gasoline is greater than 98.
Example 2:
An owner of a souvenir shop hypothesizes that the median number of items sold per day is 40.
A random of 20 days yields the following data for the number of items sold each day. At α =
0.05 test the owner’s hypothesis.
18 43 40 16 22
30 29 32 37 36
39 34 39 45 28
36 40 34 39 52
Solution:
1. H0: median = 40 (Claim)
H1: median ≠ 40 ➔ two-tailed test
2.
- + 0 - -
- - - - -
+ sign = 3
- - - + -
-sign = 15
- 0 - - +
+/- sign = 18
3. This is two-tailed test, so test statistic, k = minimum number between + and - signs = 3
cont:
6. There is enough evidence to reject the claim that the median number of items sold per
day is 40.
Mann-Whitney Test (MWT)
• To determine whether a difference exist between two populations median of non-
normal distribution.
• Sometimes called as Wilcoxon rank sum test.
• Equivalent parametric test to MWT is the t-test for two independent samples.
Note:
means not included.
6. Conclusion
Example:
Data below show the marks obtained by electrical engineering students in an
examination:
Gender Marks
Male 60
Male 62
Male 78
Male 83
Female 40
Female 65
Female 70
Female 88
Female 92
n1 = 4this
3. Since
We have 5; T1 = test,
, n2is= two-tailed R1 =thus
2 + 3test
+ 6statistic, T1* = 4 ( 4 +(T51+, T
+ 7 = 18;T = minimum 1)1*−)18 = 22
T = min (T1 ,T1* ) = min (18, 22 ) = 18
4. Critical value, Tcv = [TL , TU ]
α = 0.1 ➔ α/2 = 0.05 ; n1 = 4, n2 = 5, thus from table TL = 13
Calculate TU = n1(n1+ n2+1) - TL = 4(4+5+1) – 13 = 27
➔ Tcv = [13,27]
5. Make a decision
T TL , TU
For two-tailed test, we reject H0 when
Since T = 18 ϵ Tcv = [13,27], thus we we fail to reject H0 .
6. Conclusion
There is not enough evidence to support the claim that there is a difference in the
achievement between male and female students.