• Free preview
  • Text
  • 12m

Mean, median and spread

Three numbers that describe a column, and when the mean misleads.

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.

This was a free lesson from Data Analysis with Plain Python

See the full course outline and enroll to keep going.

View the course