Measures of Dispersion

Audio version created with Paper2Audio.

Listen on Paper2Audio

Chapter 3

3.4 Measures of Dispersion (Variability)

So far, the only descriptive measures we have discussed are measures of central tendency (the arithmetic mean, geometric mean, harmonic mean, median and mode) and measures of position (percentiles, deciles and quartiles). Generally, measures of central tendency indicate where the center or most typical value of a dataset lies while measures of position measure only location, that is, measure how an observation fits into the data relative to the other observations in the entire dataset.

It must be noted, however, that two datasets may have the same mean, the same median or the same mode and yet be different in other respects. To quantify such a difference, we need a measure of how far, on average, the observations in the dataset are from the central point or the mean. In Statistics, such a measure is its dispersion (also called variability, scatter, or spread). Thus, a measure of dispersion indicates the extent to which a distribution is stretched or squeezed. It is one of the most important aspects of the distribution of a dataset. A measure of statistical dispersion is a nonnegative real number that is zero if all the data are the same and increases as the data become more diverse. And, there are various measures of dispersion, as illustrated in the sequel.

Remark (Units of Measurement)

(i) Most measures of dispersion have the same units as the quantity being measured. In other words, if the measurements are in metres or seconds, so is the measure of dispersion. Examples include the Range, Interquartile range, Mean absolute deviation and the Standard deviation.

(2) Other measures of dispersion are dimensionless. In other words, they have no units even if the variable itself has units. These include the Coefficient of variation and Quartile coefficient of dispersion.

3.4.1 Range

This is the simplest measure of dispersion. The range of a set of data is the difference between the largest value and the smallest value. That is, for an increasingly ordered set of observations x 1, x 2, through x n,

Math summary: This expression calculates the range to provide a measure of dispersion for a set of data. It computes the difference between the largest input value and the smallest input value.

The range is the size of the smallest interval which contains all the data and provides a measure of dispersion. It is measured in the same units as the data.

When given two datasets with the same mean but different ranges, there is wider dispersion in the dataset with a larger range.

Example 3.13: The height, in inches, of the 5 starting players on each of 2 men's college basketball teams are as follows: Team I: 72, 73, 76, 76, 78 and Team 2: 67, 72, 76, 76, 84.

a) Calculate the mean, median and modal height for each team and compare the results.

b) Find the range for each team. Which team has more variability in the heights of players?

Solution: a) The two teams have the same mean heights (75 inches), the same median heights (76 inches) and the same modal heights (76 inches).

b)

Solution: Team I Range = 78 to 72 equals 6 inches

Team 2 Range = 84 to 67 equals 17 inches

Team 2 has more variability in the heights of players since it has a larger range than Team I.

The main weakness of the range is that since it only depends on two of the observations, in using the range a lot of information is ignored. And, because of its sensitivity to extreme values, the range is most useful in representing the dispersion of small data sets. This calls for more robust measures of dispersion, which are discussed in what follows.

3.4.2 Interquartile Range

The interquartile range (I.Q.R), also called the midspread or middle 50% or H-spread, is a measure of dispersion. It is defined as the difference between the 75th and 25th percentiles, or between the upper and lower quartiles, that is, I.Q.R = Q 3 — Q 1 . It is useful in comparing different datasets.

A dataset with a smaller I.Q.R has less dispersion/variability amongst the observations than a dataset with a larger I.Q.R.

Example 3.14: Data set in a plain-text box plot

Image summary: A diagram of a number line from 0 to 12, featuring two distinct intervals marked by brackets and dashed lines. The first interval spans from 2 to 5, and the second interval spans from 8 to 11. The diagram illustrates two separate segments on the number line.

For the dataset in this box plot, find the median, the I.Q.R and verify the length of each whisker.

Solution: Q 1 equals 7, median equals Q 2 equals 8.5, Q 3 equals 9,

Math summary: This expression calculates the interquartile range by finding the difference between the third quartile and the first quartile. Subtracting seven from nine results in a final value of two.

Length of lower whisker equals Q 1 minus 1.5 times I.Q.R equals 7 minus 3 equals 4,

Length of upper whisker equals Q 3 plus 1.5 times I.Q.R equals 9 plus 3 equals 12 Remark (Identifying Outliers): Data that is more than 1.5 times the value of the interquartile range beyond the quartiles are called outliers.

3.4.3 Semi-Interquartile Range (Quartile Deviation)

a) Semi-Interquartile Range (Quartile Deviation) for Ungrouped Data

The semi-interquartile range (S.I.Q.R), also called the quartile deviation (Q.D), is one-half the difference between the first and third quartiles. It is half the distance needed to cover half the scores. It is given by the formula

Math summary: This expression calculates the semi-interquartile range, also known as the quartile deviation. The process finds the difference between the third and first quartiles and multiplies that result by one half.

The semi-interquartile range (quartile deviation) is affected very little by extreme scores. This makes it a good measure of spread for skewed distributions. However, the S.I.Q.R or Q.D utilises only two observations, Q 1 and Q 3 , disregarding the rest of the observations, especially in the tails of the dataset.

b) Semi-Interquartile Range (Quartile Deviation) for Grouped Data

The S.I.R or Q.D is given by the formula

Math summary: This expression calculates the semi-interquartile range, also referred to as QD. It is computed by taking the difference between the third quartile and the first quartile and multiplying that result by one half.

where the quartiles are calculated using the formula used in Sections 3.3.1 to 3.3.3 of these Lecture Notes.

3.4.4 Coefficient of Quartile Deviation

A relative measure of dispersion based on S.I.Q.R or Q.D is called the Coefficient of quartile deviation (C.Q.D). It is obtained using the formula

Math summary: This expression calculates the Coefficient of quartile deviation to provide a relative measure of dispersion. It is computed by dividing the difference between the third and first quartiles by the sum of those same two quartiles.

Notice that the C.Q.D is a pure number free from any units of measurement. It can be used for comparing the dispersion in two or more than two sets of data.

The smaller the C.Q.D the less the dispersion.

Example 3.15: The wheat production (in Kg) of 20 acres is given as: 1120, 1240, 1320, 1040, 1080, 1200, 1440, 1360, 1680, 1730, 1785, 1342, 1960, 1880, 1755, 1720, 1600, 1470, 1750, and 1885.

Find the quartile deviation and coefficient of quartile deviation.

Solution: First, arranging the observations in ascending order to get

1040, 1080, 1120, 1200, 1240, 1320, 1342, 1360, 1440, 1470, 1600, 1680, 1720, 1730, 1750, 1755, 1785, 1880, 1885, 1960

Then, calculate Q 1 and Q 3 using the formula used in Sections 3.3.1 to 3.3.3 of these Lecture Notes to obtain Q 1 equals 1240 plus 20 equals 1260 and Q 3 equals 1750 plus 3.75 equals 1753.75

Quartile deviation is Q D equals Q 3 minus Q 1 divided by 2 equals 493.75 divided by 2 equals 246.875

Coefficient of Quartile deviation C.Q.D equals Q 3 minus Q 1 divided by Q 3 plus Q 1, which equals 1753.75 minus 1260 divided by 1753.75 plus 1260, which equals 493.75 divided by 3013.75, which equals 0.1638.

3.4.5 Mean Absolute Deviation

Several measures of dispersion are defined in terms of the absolute deviation. The mean absolute deviation (mad) is a robust measure of the variability of dataset and is computed by using all the observations in a dataset. The mad of a data set is the average of the absolute deviations from a central point. In this general form, the central point may be the arithmetic mean, median, mode, or the result of another measure of central tendency.

Advantage: In the mad, the deviations of a small number of outliers are irrelevant

a) Mean Absolute Deviation for Ungrouped Data

In general, the mean absolute deviation of a dataset x 1 through x n around a specified measure of central tendency, say m of x, is defined by

Math summary: This expression calculates the mean absolute deviation of a dataset around a measure of central tendency. It sums the absolute differences between each input value and the center measure, then divides that total by the number of values.

where m x may be the arithmetic mean x bar, median x or mode m. In this course we focus on the mad about the mean or median, called Mean absolute deviation and Median absolute deviation, respectively.

Let x 1, x 2, through x n be the n observations in a dataset. Then mean absolute deviation is given by

Mean absolute deviation mad equals the sum from i equals 1 to n of the absolute value of x i minus x bar, all divided by n where x bar equals the sum from i equals 1 to n of x i divided by n is the arithmetic mean for the dataset.

Similarly, the Median absolute deviation is given by

Median absolute deviation M A D equals the sum from i equals 1 through n of the absolute value of x i minus x tilde, all divided by n where x tilde is the median for the dataset.

The choice of measure of central tendency, m(x), has a marked effect on the value of the mean absolute deviation.

Example 3.15: For example, for the data set {2, 2, 3, 4, 14},

Table summary: The median provides the lowest mean absolute deviation at 2.8, indicating it is the most central measure of tendency for this dataset. In comparison, the mode results in a deviation of 3.0, and the mean has the highest deviation at 3.6.

From the table, it is clear that the mean absolute deviation about the median is less than the mean absolute deviation about the mean or mode.

In general, the mean absolute deviation from the median is always less than or equal to the mean absolute deviation from any other fixed number.

b) Mean Absolute Deviation for Grouped Data

Recall that in the case of grouped data, the individual observations within each of the k classes are represented by the classmark x i, i equals 1 through k.

Further, the Mean absolute deviation or Median absolute deviation is now weighted by using the class frequency, f i, i equals 1 through k, as the measure of size:

Mean absolute deviation M A D equals the sum from i equals 1 to k of f i times the absolute value of x i minus x bar, divided by the sum from i equals 1 to k of f i where x bar equals the sum of x i from i equals 1 to n divided by n is the arithmetic mean for the dataset.

Likewise, the Median absolute deviation is given by Median absolute deviation M A D equals the sum from i equals 1 through k of f i times the absolute value of x i minus x tilde, all divided by the sum from i equals 1 through k of f i where x tilde is the median for the dataset.

Example 3.16 (Baby Carrots Example)

Suppose a farmer grew 50 baby carrots using special soil. The farmer digs them up and measures their lengths (to the nearest millimetres) and then groups the results as follows:

Table summary: The distribution of carrot lengths shows a peak in the 175 to 179 millimeter range with 11 carrots. The number of carrots generally increases with length up to that peak and then declines, with the fewest carrots, 2, appearing in the 155 to 159 millimeter range.

(a) Verify that the arithmetic mean and the median lengths of these carrots are 170.6 millimeters and 171.7 millimeters, respectively.

(b) Determine the

(i) Mean absolute deviation

(2) Median absolute deviation.

(c) Which measure of dispersion calculated in (b) above is less than the other? Are you surprised?

Table summary: A frequency distribution of 50 carrots categorized by length. The lengths range from 150 to 189 millimeters, with the most frequent category being 175 to 179 millimeters, containing 11 carrots. The total sum of the product of frequency and classmark is 8,530. Calculations for mean and median are initiated in the final columns, using a calculated mean of 170.6 and a median of 171.7.

3.4.6 Variance and Standard Deviation

Variance and standard deviation (the positive square root of the variance) are the most commonly used measures of dispersion or spread. Unlike the range and quartiles, the variance, like the mean absolute deviation, combines all the values in a data set to produce a measure of spread. Variance is calculated as the average squared deviation of each number from the arithmetic mean of a data set. Calculating variance involves squaring deviations, so it does not have the same unit of measurement as the original observations. The variance is useful for comparing the variability of two or more separate data sets that have approximately the same mean.

The data set with the smaller (smallest) value of the variance has less (the least) variability of measurements around the mean.

Standard deviation is the measure of spread most commonly used in statistical practice (reports) when the arithmetic mean is used to calculate central tendency. That is, the standard deviation measures spread around the mean. It is obtained by taking the positive square root of the variance and, thus, has the same units of measurement as used in the original scale (data). And, Because of its close links with the arithmetic mean, the standard deviation can be greatly affected if the mean gives a poor measure of central tendency.

Like the variance, the standard deviation is useful for comparing the dispersion of two or more separate data sets that have approximately the same mean.

The data set with the smaller (smallest) standard deviation has a narrower (the narrowest) variability of measurements around the mean and, therefore, usually has comparatively fewer high or low values

a) Variance and Standard Deviation for Ungrouped Data

Variance

Let X 1, X 2, through X N be set of n observations. Then, the variance of distribution for the dataset, denoted by the Greek letter sigma squared, is given by

Math summary: This expression calculates the variance of a distribution for a dataset of observations. It computes the average of the squared differences between each input value and the arithmetic mean.

where X bar is the arithmetic mean, as defined before.

Remark: For large datasets, calculating the variance using this formula can be quite tedious and time-consuming. To overcome this difficulty, we can derive and use a shortcut formula (Computational formula) as follows:

Math summary: This expression calculates the variance using a computational shortcut formula. It divides the difference between the sum of the squared input values and the total number of items multiplied by the square of the average by the total number of items.

Or

Math summary: This expression calculates the variance for ungrouped data. It subtracts the square of the average value from the average of the squared input values.

Standard Deviation

For ungrouped data, the standard deviation is obtained as the positive square root of the variance:

Math summary: This expression calculates the standard deviation for ungrouped data. It computes the positive square root of the variance by dividing the difference between the sum of squared input values and the product of the sample size and squared mean by the total number of values.

Example 3.17

A hen lays eight eggs. Each egg was weighed and the weight, in kilograms, recorded as follows:

60 g, 56 g, 61 g, 68 g, 51 g, 53 g, 69 g, 54 g.

Calculate the variance and standard deviation of the distribution of the weight of the eggs using the (1) Long Method and (2) Computational formula (Shortcut Method).

Solution (i) Using Long Method

First, calculate the arithmetic mean X bar equals the sum of X i from i equals 1 through n divided by n equals 472 divided by 8 equals 59 g

Math summary: This expression calculates the variance of a set of values. It takes the sum of the squared differences between each input value and the mean, divides that total of three hundred twenty by the sample size of eight, and results in a final value of forty grams squared.

and standard deviation

Math summary: This computation calculates the standard deviation of a set of input values. It divides the sum of squared differences between each value and the mean by eight, then takes the square root of forty grams squared to reach a final result of six point three two four six grams.

: Table 1 summary: Data on the weight of eggs in grams across eight samples. The weights range from a minimum of 51 grams to a maximum of 69 grams, with a total sum of 472 grams. Statistical calculations for these weights include a total sum of squared deviations from the mean of 320 and a sum of the squared weights totaling 28168.

Solution (2) Using Computational Method

Given n equals 8, X bar equals 59 g and the sum from i equals 1 through n of X i squared equals 28168 we use calculate variance as

Math summary: This expression calculates the variance of a dataset. It subtracts eight times the square of the average value, fifty nine, from the sum of squared inputs, twenty eight thousand one hundred sixty eight, then divides the resulting three hundred twenty by eight to get a final result of forty grams squared.

which is exactly the same as that obtained using the Computational method.

Similarly, the standard deviation sigma equals the square root of 40 times g squared equals 6.3246 g, as before.

b) Variance and Standard Deviation for Grouped Data

As mentioned before, for grouped data the observations in a class are represented by the class mark, X i, i equals 1 through k, with k equals the number of groups (classes). Then the variance can be calculated using either the Long Method or the Computational Formula as follows:

(2) Variance and Standard deviation Using Long Method

Math summary: These expressions calculate the variance and standard deviation for grouped data. The process involves finding the sum of the squared differences between each class mark and the mean, scaling by the frequency of each class, and dividing by the total number of observations before taking the square root for the standard deviation.

(2) Variance Using Computational Formula

Math summary: These expressions calculate the variance and standard deviation for grouped data. The process involves subtracting the total count multiplied by the mean of squared values from the sum of squared class marks multiplied by their frequencies, dividing by the total count, and taking the square root for the standard deviation.

Example 3.18 (Baby Carrots Example 3.16 Ct'd)

Refer to the data of example 3.16. Find the variance and standard deviation of the distribution of lengths of Baby carrots grown by the farmer.

Solution (i) Using Long Method

First, calculate the arithmetic mean using the formula _ _

Math summary: This expression calculates the arithmetic mean using a weighted sum. The sum of the products of frequencies and input values, totaling eight thousand five hundred thirty, is divided by the total frequency of fifty to produce a final result of one hundred seventy point six millimeters.

The necessary calculations are summarised in Table 2.

Table 2 summary: The lengths of 50 baby carrots grown with special soil range from 150 to 189 millimeters. The most frequent carrot length falls in the 175 to 179 millimeter range with 11 carrots, followed by the 170 to 174 millimeter range with 9 carrots. The total sum of the product of classmarks and frequencies is 8530, and the sum of the frequency times the squared deviation from the mean is 4702.

From this Table 2, we have the following summary statistics:

Math summary: This computation calculates the population standard deviation for a dataset across eight groups. It divides the sum of squared deviations by the total count of fifty to find a variance of ninety-four point zero four square millimeters, then takes the square root to reach a final result of nine point six nine seven four millimeters.

(2) Solution Using Computational Formula

Math summary: This calculation determines the variance and standard deviation from summary statistics. It subtracts the product of fifty and the square of one hundred seventy point six from one million four hundred fifty nine thousand nine hundred twenty, divides that difference by fifty to get a variance of ninety four point zero four square millimeters, and takes the square root to find a final standard deviation of nine point six nine seven four millimeters.

3.4.7 Coefficient of Variation

The standard deviation can be used to compare the degree of variability in two or more distributions/datasets only if the observations in the datasets are of the same kind and are expressed in the same units of measurement. To compare variability in amongst datasets expressed in different units of measurement, we use a measure of dispersion that shows the extent of variability in relation to the mean of the population. This measure is called the coefficient of variation (C.V) and is defined as the ratio of the standard deviation to the mean. It is often expressed as a percentage. The C.V is also known as the relative standard deviation.

Math summary: This expression calculates the coefficient of variation to compare variability across different datasets. It divides the standard deviation by the mean and multiplies the result by one hundred to express the value as a percentage.

Remark: The coefficient of variation should be computed only for data measured on a ratio scale, as these are the measurements that allow the division operation. The coefficient of variation may not have any meaning for data on an interval scale.

Example 3.19: A researcher is comparing two multiple-choice tests with different conditions. In the first test, a typical multiple-choice test is administered. In the second test, alternative choices (that is incorrect answers) are randomly assigned to test takers. The results from the two tests are recoded in the table below.

: Table summary: Performance is higher for the Regular group compared to the Randomized group, with a mean score of 59.9 for Regular and 44.8 for Randomized. The Randomized group also shows greater variability, with a standard deviation of 12.7 and a coefficient of variation of 28.35, compared to 10.2 and 17.03 respectively for the Regular group.

Looking at the standard deviations of 10.2 and 12.7 for the Regular test and Randomised answer, respectively, you might think that the tests have similar results. However, when you adjust for the difference in the means by using the C.V, the results have more significance:

Regular test: C.V = 17.03

Randomized answers: C.V = 28.35

These results indicate that there is more variability in the scores for the Randomized answers than those for the Regular test.