What's the statistics module for?
statistics
It provides methods to help with common statistical calculations.