April 2024
Beginner to intermediate
500 pages
24h 20m
English
One of the most often used measures of a collection of data is known as central tendency—a measure that estimates where the “typical value” of a collection will be found. Three common ways to compute central tendency are (1) the mean, (2) the median, and (3) the mode.
The most common measure of central tendency is the mean (more commonly called the average). The mean is simply the sum of all the values in the data collection divided by the number of items. As shown in Listing 4.4, to compute the mean, we add up the values in the collection and divide by the length. Specifically, given a list of values, we use the built-in sum function, shown in Table 4.6, to compute a total and the len function shown in Table ...
Read now
Unlock full access