14-18 Stat Inferential Non-Parametric
14-18 Stat Inferential Non-Parametric
14-18 Stat Inferential Non-Parametric
2
x =∑2 (O − E )
E
Where:
X2 = the Chi-Square test
O = the observed frequencies
E = the expected frequencies
Sample Scenario
A researcher conducted an experiment on the blood
type proportions of 400 people with A, B, O and AB
in the populations when picked randomly and
examined and the results are, respectively, 148, 96,
106, and 50. It is believed that that the proportions
are as follows: 0.4, 0.2, 0.3 and 0.1 respectively. Test
the hypothesis that these data bear out the stated
belief. Use 5% level of significance.
Tabulated Value
α = 0.05
df = h-1
= 4-1 = 3
X2 = 7.815
Decision Rule:
If the chi square computed is greater than the tabulate chi square
value, reject the null hypothesis.
Sample Scenario 2
25 28 24 18 17 27
25 28 24 18 17 27
The Test of Homogeneity
A test concerning two or more samples, with only one criterion variable
and used to determine if two or more populations are homogenous.
Formula
2
2 N (D1 − D2 )
Where: x =∑
N = the grand total TcTr
D1 = the product of the diagonal value from the north-west
D2 = the product of the diagonal value from the south-east
Tc = the product of the column values
Tr = the product of the row values
Sample Scenario
Lakas 65 35 100
Laban 50 50 100
α = 0.05
df = (c-1)(r-1)
= (2-1)(2-1) = 1
X2 = 3.841
Decision Rule:
If the chi square computed is greater than the chi square tabulated
value, reject the null hypothesis.
The Test of Independence
Male 18 28 46
Female 32 12 44
Total 50 40 90
Tabulated Value
α = 0.05
df = (c-1)(r-1)
= (2-1)(2-1) = 1
X2 = 3.841
Decision Rule:
If the Chi square computed is greater than the chi square tabulated
value, reject the null hypothesis.
Sample Scenario 2
Recovered 12 3 15
Died 2 13 15
Total 14 16 30
Tabulated Value
α = 0.01
df = (c-1)(r-1)
= (2-1)(2-1) = 1
X2 = 6.635
Decision Rule:
If the computed lowest U value is lesser than the tabulated U value,
reject the null hypothesis.
Wilcoxon Two Sample Test
With Treatment
2.9 3.1 5.3 4.2 4.5 3.9 2.0 3.7 4.1 4.0
No Treatment
1.9 0.5 0.9 2.2 3.1 2.0 1.7 2.5
Tabulated Value
α = 0.05
df ; n1 = 10 n2 = 10
U = 17
Decision Rule:
If the computed lowest U value is lesser than the U tabulated value,
reject the null hypothesis.
Sample Scenario 2
Brand X
4.1 0.7 3.1 2.5 4.0 6.2
Brand Y
2.1 4.0 5.4 4.8 3.3 1.6 1.7 5.4
Tabulated Value
α = 0.05
df ; n1 = 6 n2 = 8
U = 8
Decision Rule:
If the lowest computed U value is lesser than the tabulated U value,
reject the null hypothesis.
The Kruskal-Wallis Test
Method 1
94 88 90 95 92 90
Method 2
85 88 90 80 79 85 80
Method 3
8 9 78 75 65 80
Tabular Value
α = 0.05
df = h-1
= 3-1 = 2
X2 = 5.991
Decision Rule:
If the computed H value is greater than the tabulated H value, reject
the null hypothesis.
Sample Scenario 2
The following are the mileage yield per gallon which a test driver
consumed for 5 tankfuls each of four kinds of gasoline.
Check whether the claim that there is a significant difference in the
true average mileage of the four kinds of gasoline at 5 % level of
significance.
Data
Gasoline C
24 17 21 31 22
Gasoline P
21 31 32 19 17
Gasoline S
28 23 26 31 14
Gasoline T
29 16 18 31 20
Tabular Value
α = 0.05
df = h-1
= 4-1 = 3
X2 = 7.815
Decision Rule:
If the computed H value is greater than the tabulated H value, reject
the null hypothesis.
Spearman Rank Order Correlation,
rs
A method used to measure the association between two variables
measured on each item by ranking their values in order of their
magnitude which cannot be expressed by exact measurement but
from which ranked data can be obtained.
Formula
2
6∑ D
rs = 1 −
Where: (
n n −12
)
rs = Spearman Rank Order Coefficient
∑D2 = sum of the squares of the difference between ranks of the
variables
n = sample size
6 = constant
Sample Scenario
The following are the number of hours which 12 students studied for
midterm examination and the grades they obtained in statistics. Is
there a significant relationship between the number of hours spent
in studying statistics and the corresponding grades in the midterm
examination?
Data
Midterm grades
50 60 79 90 85 92 80 82 65 85 94 70
Level of Significance
α = 0.05
df = n-1
= 12-1 = 11
rs = 0.532
Decision:
if the r computed value is greater than the r tabulated value, reject
the null hypothesis.
Sample Scenario 2
The following is the ranking of two judges given to the work of eight (8)
artists. Determine if the two judges differ most of their opinions about
the artists’ works. Use a 5 % level of significance.
Data
Judge A
5 8 4 2 1 7 3 6
Judge B
8 5 6 4 2 1 3 7
Level of Significance
α = 0.05
df = n-1
= 8-1 = 7
rs = 0.714
Decision:
if the r computed is greater than the r tabulated value, reject null
hypothesis
SIGN TEST
Two Independent Samples
(Median Test Case)
This test is known as the median test used to compare the
median of two independent samples.
Formula:
2
x=
2
N (ad − bc )
klmn
Nomenclature
X2 = Chi-square test
a and c = observed (+) frequencies
b and d = observed (-) frequencies
K and l = the row total
M and n = the column total
N = the grand total
Sample Scenario 1
Female : 122625101010222019171715
Male : 6 22197 8 12168 19
Continued…
D −1
z =
N
Where:
Z = the Fisher Sign Test
D = the difference between the
number of + and - signs.
Sample Scenario 1
T1: 5 6 16 15 15
T2: 8 15 12 15 10
T3: 17 18 15 12 13
T4: 10 12 20 20 25
MC Nemar’s Test for Correlated
Proportions
A chi-square test for the situations
when samples are matched, which
means they are not independent
that can be applied to a research
design trying to test whether there
is a significant change between
the before and after the situations.
Formula
2
c 2
=
(b − c)
b+c
Where: X2 = chi-square
b = the first cell of the 2nd column in a 2x2 table
c = the first cell of the 2nd row in a 2x2 table
Sample Scenario 1
After the
Debate
Before Yes No
the Yes 19 11
Debate No 8 12
The Friedman Test for Randomized
Block Design
A test used for comparing the
distributions of measurements for k
treatments laid out in b blocks using
randomized block design in either
the number of k treatments or the
number of b of blocks is larger than
five.
Formula
12 2
Fr = ∑ T − 3b(K + 1)
bk (k + 1)
Where:
Fr = the Friedman’s Test
B = the number of blocks
K = the number of treatments
Ti = rank sum fro treatment I
i = element
Sample Scenario 1
Child 1 2 3 4
1 5.8 2.5 6.7 6.2
2 9.0 9.0 6.6 9.5
3 5.0 2.6 3.5 6.6
4 7.9 9.4 5.3 8.4
5 3.9 7.5 2.5 2.5
Sample Scenario 2
Conditions
Subject 1 2 3
1 30 35 40
2 11 15 12
3 21 29 17
4 3 5 18
5 12 10 15