Statistics

Learn how to apply statistical metrics to NumPy data.

Chapter Goals:

  • Learn about basic statistical analysis in NumPy
  • Write code to obtain statistics for NumPy arrays

A. Analysis

It is often useful to analyze data for its main characteristics and interesting trends. There are few techniques in NumPy that allow us to quickly inspect data arrays.

For example, we can obtain minimum and maximum values of a NumPy array using its inherent min and max functions. This gives us an initial sense of the data's range, and can ...