Median test is a non-parametric test for a difference in central location (median) between two or more independent samples.
The requirements of the test are:
Data in existing Excel worksheets can be used and should be arranged in a List dataset layout or Table dataset layout. The dataset must contain a continuous scale variable and a nominal/ordinal scale variable containing two or more independent groups.
When entering new data we recommend using New Dataset to create a new 2 variables (1 categorical) dataset ready for data entry.
To start the test:
Excel 97, 2000, 2002 & 2003:
Select any cell in the range containing the dataset to analyse, then click Analyse on the Analyse-it toolbar, click Compare Groups then click Median.
If the dataset is arranged using the list layout:Click Variable to select the dependent variable and click Factor to select the independent variable containing the groups to compare.
The report shows the number of observations analysed, and, if applicable, how many missing values were excluded. Since the test classifies the observations relative to the combined median, the combined median and the number of observations above and below are shown.
The hypothesis test is shown. The p-value is the probability of rejecting the null hypothesis, that the samples have the same median, when it is in fact true. A significant p-value implies that at least two samples have different medians.
METHOD The p-value is calculated using the Fisher exact test when there are two samples, otherwise the Chi-square test is used (see  or ).