Median Test step by step procedure with mathematical example

Median Test

Median Test 

The median test is one of the simplest and most widely used procedure for testing the Ho that the independent sample have been drawn from the population with equal median value. This process is a non-parametric testing procedure.

Assumptions of Median Test

  •      The date consist of two independent random samples x1,x2,...,xn and y1,y2,...,yn of size n1 and n2 respectively.
  •      Scale of measurement is at least ordinal.
  •       Samples are drawn independently.
  •      If the population have the same median, then for each population, the probability P is the same that an observed value will exceed the grand median.

Hypothesis of Median Test

H0 : The two population are identical.


 H1 : Ho is not true.

Test Statistic Median Test

If the two population have the same median, we would expect about half of observation in each of the two samples to be above the common median and about hlf to be low.

Under the Ho the two population median are equal, we may estimate the common parameter by estimating. the median of the sample values by combining two samples of size (n1 + n2).  If Ho is true we expect about half of observation in each sample to fall above the combine sample median. And about half to fall below. The median test allow us to conclude on the basis  of sample data whether it is likely that the  Ho is false.

The usual test statistic is,


A= number of observation from sample -1 falling above the median.

B= number of obs from sample-2 falling above me

n1 = 1st Sample size

n2= 2nd sample size


If the combined sample size N = (n1+n2) is such that Np and N (1-P) are larger than 5 and if Ho is true is approximately distributed  as mean zero and variance one therfore the conclusion can be made as usual by following the level of significance q= 0.0s the CV is ± 1.96 and for α= 0.01 the CV is ± 2.58

Mathematical Example of Median Test

The following data give the marks obtained in a test of a certain subject by two groups A and B consisting of 32 and 16 student respectively. Test whether these data provide sufficient evidence to indicate that the median of the two population from which two group of students are selected are same. Consider α= 0.05

Marks obtained by Group A Student. 


 Marks obtained by Group B students :



Ho : The population median of marks of two groups are equal.


H1 : Ho is not true.

Combining two sample :


Median = (25+25)/2=25 

From A the number of marks above median mark is 12, A= 12

From B the number of marks above median mark 12 ; B= 12

median test testing procedure

The calculated value is in the critical Region then we may reject our null hypothesis at 5% level of significance. Thus, Median are not equal.

Post a Comment