The Median Test
Lecture 53
The median test is a
non-parametric version of the one-sample and two-sample t-tests and one-way
ANOVA. The median test is used to test the null hypothesis that the sample(s) drawn from the population(s) have the same median. The alternative hypothesis
can be either that the median is equal to a specified value or two or more
medians are different (two-tailed test) or that one median is greater than the
other (one-tailed test). The median test is based on the
following assumptions.
The observations in the
sample(s) can be measured in terms of an ordinal scale.
Each observation in the
sample(s) occurs in the random manner.
Each observation is
independent of the other observations.
The two or more samples
will be independent.
One Sample Median Test
The one-sample median
test is used to test the hypothesis that the median of a sample is equal to the population hypothesised median.
Procedure: Place the number of observations above and below the hypothesised value of the median in the following 2 X 2 table and find the expected frequency as:
Expected Frequency = n / 2
Where:
n is the number of observations.
|
|
Observed Frequency |
Expected Frequency |
Total |
|
Above median |
a |
b |
(a+b) |
|
Below median |
c |
d |
(c+d) |
|
Total |
(a+c) |
(b+d) |
n |
The test statistic to be used is
Median test in case of two samples
Find the median of the combined observations of both samples and develop a table
|
|
|
Sample 2 |
Total |
|
Above Median |
a |
b |
(a + b) |
|
Below median |
c |
d |
(c + d) |
|
Total |
(a + c) |
(b + d) |
n |
Median test in case of k
samples
Given k samples with n₁, n₂, ...,and nₖ observations, compute the grand median of all n₁ + n₂ + ... + nₖ observations. Then construct a 2xk contingency
table as:
The test statistic is
to be used is
Follow chi-square with (k – 1) degrees of freedom.
Example 13.4: The policy of an administration those students are eligible whose median is at least 65. The scores of a student in the last five examinations are 64, 67, 75, 80, 56, and 70. Test the null hypothesis: the student is eligible for admission.
Solution:
i. State the null and alternative hypotheses
|
|
Observed
Frequency |
Expected
Frequency |
Total |
|
Above Median |
4 |
3 |
7 |
|
Below median |
2 |
3 |
5 |
|
Total |
6 |
6 |
12 |
|
Method
1 |
92 |
63 |
30 |
78 |
24 |
19 |
26 |
79 |
54 |
57 |
|
97 |
46 |
58 |
74 |
77 |
80 |
93 |
99 |
78 |
50 |
|
|
Method
2 |
77 |
87 |
99 |
62 |
76 |
47 |
66 |
83 |
72 |
80 |
|
53 |
80 |
48 |
75 |
76 |
78 |
97 |
53 |
64 |
67 |
Use the median test at the 5% level to test the null hypothesis that the
two samples are drawn from a population with the same median of recovery.
The combined median is
75.50
|
|
Sample 1 |
Sample 2 |
Total |
|
Above
Median |
10 |
10 |
20 |
|
Below
median |
10 |
10 |
20 |
|
Total |
20 |
20 |
40 |
|
Sample
1 |
29 |
40 |
43 |
30 |
46 |
34 |
32 |
27 |
|
Sample
2 |
35 |
39 |
33 |
31 |
40 |
34 |
33 |
29 |
|
Sample
3 |
34 |
43 |
42 |
31 |
35 |
40 |
35 |
42 |
|
Sample
4 |
33 |
34 |
32 |
26 |
48 |
30 |
35 |
42 |
The median = 34
Drop the observation that is equal to the median and construct the following table:
|
|
Sample
1 |
Sample
2 |
Sample
3 |
Sample
4 |
Total |
|
Above Median |
3 |
3 |
5 |
3 |
14 |
|
Below
Median |
4 |
4 |
2 |
4 |
14 |
|
Total |
7 |
7 |
7 |
7 |
28 |
Read More:Run Test
%20(1)%20(1).png)
%20(1)%20(1).png)
%20-%20Copy.png)
%20-%20Copy.png)
%20(1)%20(1).png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
No comments:
Post a Comment