- Machine Learning With Go
- Daniel Whitenack
- 144字
- 2021-07-08 10:37:32
Statistical measures
To quantify what a distribution looks like, we will use various statistical measures. Generally, there are two types of these measures:
- Central tendency measures: These measure where most of the values are located, or where the center of the distribution is located (for example, along the preceding linear representation).
- Spread or dispersion measures: These measure how the values of the distribution are spread across the distribution's range (from the lowest value to the highest value).
There are various packages that allow you to quickly calculate and/or utilize these statistical measures. We will make use of gonum.org/v1/gonum/stat (you are probably starting to notice that we will be making heavy use of gonum) and github.com/montanaflynn/stats.
Note, there is a one letter difference in the names of the gonum.org/v1/gonum/stat and github.com/montanaflynn/stats packages. Keep this in mind as you review the examples in the following sections.