4.8 Summary
This chapter introduced three types of Python collections: lists, tuples, and dictionaries. Together with strings, these four data types provide us with a powerful set of tools for solving problems. To investigate the use of these collections, we developed a set of algorithms for performing basic statistical analysis. In particular, we implemented functions to compute the following:
Dispersion (simple range and standard deviation)
Central tendency (mean, median, and mode)
Frequency distribution
We introduced the functions of the statistics module, which also perform these operations. We used matplotlib to create a graphical representation of a frequency histogram. Finally, we used functions of the math module to calculate the standard ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access