Worked example 1
A local authority claims the median response time for an ambulance is 8 minutes. A random sample of 10 emergency calls had the following response times (in minutes): 7.5, 9.1, 8.2, 10.5, 7.9, 8.0, 9.5, 11.2, 7.1, 8.9. Test the authority's claim at the 5% significance level.
Show solution outline
Let be the median response time. 1. Hypotheses: (two-tailed test)
2. Calculate Signs: We compare each value to the hypothesised median of 8. 7.5 (-), 9.1 (+), 8.2 (+), 10.5 (+), 7.9 (-), 8.0 (0), 9.5 (+), 11.2 (+), 7.1 (-), 8.9 (+) We discard the one value of 8.0, so our effective sample size is . Number of '+': Number of '−':
3. Test Statistic: The test statistic is .
4. P-value Calculation: Let be the number of '−' signs. Under , . We are conducting a two-tailed test, so we find the probability of a result as or more extreme than . The p-value is . p-value =
5. Conclusion: Since the p-value (0.5078) is greater than the significance level (0.05), we do not reject . There is insufficient evidence to suggest that the median response time is different from 8 minutes.