When a data set has an outlier, the mean and median can behave differently. The mean uses every value, so one very large or very small number can pull it toward that extreme. The median is the middle value after the data are ordered, so it is usually less affected by an outlier.
Make sure the data are ordered before finding the median, and recheck the sum used for the mean. If one value is far from the others, see whether it changed the mean a lot while leaving the median nearly the same.
© 2023-2026 AI MATH COACH