The mean is the average. The median is the middle value once sorted. When a few values are extreme, they pull the mean but barely move the median.
python · editable
Enroll in the course to run this code.
One very high salary lifts the mean far above what most people earn. For incomes, prices and waiting times, report the median.
Spread
The standard deviation says how far values typically are from the mean. Two classes with the same average can be very different:
python · editable
Enroll in the course to run this code.