To find the median delivery time for each pizza shop, we first need to arrange the delivery times in ascending order.
Pizza Shop 1 delivery times: 18, 23, 15, 22, 21, 24, 28, 20
- Arranged: 15, 18, 20, 21, 22, 23, 24, 28
There are 8 data points (even number), so the median is the average of the middle two numbers (the 4th and 5th values).
- Middle values: 21 and 22
- Median for Pizza Shop 1 = (21 + 22) / 2 = 21.5 minutes
Pizza Shop 2 delivery times: 20, 17, 16, 38, 21, 20, 18, 25
- Arranged: 16, 17, 18, 20, 20, 21, 25, 38
Similarly, with 8 data points, we take the average of the 4th and 5th values.
- Middle values: 20 and 20
- Median for Pizza Shop 2 = (20 + 20) / 2 = 20 minutes
Now we can summarize:
- The median delivery time of Pizza Shop 1 is 21.5 minutes.
- The median delivery time of Pizza Shop 2 is 20 minutes.
Based on the median, Pizza Shop 2 has a faster delivery time.