The median is the midpoint of the data set. This midpoint value is the point at which half of the observations are above the value and half of the observations are below the value. The median is determined by ranking the observations and finding the observation at the number [N + 1] / 2 in the ranked order. If your data contain an even number of observations, the median is the average value of the observations that are ranked at numbers N / 2 and [N / 2] + 1.
The sample median is an estimate of the population median of each group. The overall median is the median of all observations.
N> (greater than the overall median). These values represent the number of observations in each group that are greater than the overall median. Minitab creates a table with the N≤ values and the N> values. Minitab uses these values to perform the chi-square test of association and to calculate the p-value for the test.
If a group has a large number of observations in this category, the median of the group is likely to be greater than the overall median.
N≤ (less than or equal to the overall median) is the number of observations in each group that are less than or equal to the overall median. Minitab creates a table with the N≤ values and the N> values. Minitab uses these values to perform the chi-square test of association and to calculate the p-value for the test.
If a group has a large number of observations in this category, the median of the group is likely to be less than the overall median.
The interquartile range (Q3 – Q1) measures the spread of the data in each group. The range is the distance between the 75th percentile (Q3) and the 25th percentile (Q1).
Interquartile ranges that differ substantially indicate that the groups do not have the same spread. This condition suggests that the data may not satisfy the assumption for Mood's median test that the groups have the same shape and spread.
The confidence intervals are ranges of values that are likely to contain the true median of each population.
Because samples are random, two samples from a population are unlikely to yield identical confidence intervals. But, if you repeat your sample many times, a certain percentage of the resulting confidence intervals contain the unknown population parameter. The percentage of these confidence intervals that contain the parameter is the confidence level of the interval.
Use the confidence interval to assess the estimate of the population median for each group.
For example, with a 95% confidence level, you can be 95% confident that the confidence interval contains the group median. The confidence interval helps you assess the practical significance of your results. Use your specialized knowledge to determine whether the confidence interval includes values that have practical significance for your situation. If the interval is too wide to be useful, consider increasing your sample size.
Temp | Median | N <= Overall Median | N > Overall Median | Q3 – Q1 | 95% Median CI |
---|---|---|---|---|---|
38 | 19 | 4 | 3 | 4.00 | (17.4667, 22.5333) |
42 | 19 | 3 | 3 | 9.50 | (15.3571, 25.6429) |
46 | 22 | 2 | 4 | 7.25 | (15.7857, 26.5714) |
50 | 18 | 4 | 2 | 4.25 | (14.4286, 20.6429) |
Overall | 19 |
The intervals show that a temperature of 38 has a median of 19.0 and the confidence interval extends from approximately 17.5 to 22.5.
The degrees of freedom (DF) equals the number of groups in your data minus 1. Under the null hypothesis, chi-square distribution approximates the distribution of the test statistic, with the specified degrees of freedom. Minitab uses the chi-square distribution to estimate the p-value for this test.
The chi-square statistic is calculated from a table comprised of cells that are based on the groups in your data and the groups' corresponding N≤ values and N> values. Minitab calculates each cell's value as the square of the difference between the observed and expected values for a cell, divided by the expected value for that cell. The chi-square statistic is the sum of these values.
A higher chi-square value indicates that the difference between the observed and expected values is higher. A sufficiently large chi-square value indicates that at least one difference between the medians is statistically significant. Minitab uses the chi-square statistic, in conjunction with the chi-square distribution, to calculate the p-value.
You can use the chi-square statistic to determine whether to reject the null hypothesis. However, using the p-value of the test to make the same determination is usually more practical and convenient.
The p-value is a probability that measures the evidence against the null hypothesis. Lower probabilities provide stronger evidence against the null hypothesis.
Use the p-value to determine whether any of the differences between the medians are statistically significant.