Learning Objectives
Terminology:
· Range
· Interquartile range (IQR)
· Variance, standard deviation
· Outliers (atypical values), box plot (box-and-whisker plot)
Knowledge and Skills:
· Calculate measures of dispersion (variability) for sample datasets: range, interquartile range, variance, and standard deviation.
· Understand and explain the practical significance of dispersion measures in evaluating data stability, variability, and uniformity.
· Detect and process outliers in a dataset using mathematical criteria and box plots.
Range and Interquartile Range
a) Range
Definition: The range of a dataset, denoted by , is the difference between the maximum value () and the minimum value ():
Statistical Meaning: The range measures the total spread of a dataset. A larger range indicates that the data are more dispersed (less consistent, less uniform).
Remarks: The advantage of the range is its computational simplicity and intuitive appeal; however, it only takes into account the two extreme values (minimum and maximum) and completely ignores all other data points. Consequently, it is highly sensitive to outliers.
Example 1: Math semester exam scores for Group 1 and Group 2 in class 10A are recorded as follows: Group 1: 7, 8, 8, 9, 8, 8, 8. Group 2: 10, 6, 8, 9, 9, 7, 8, 7. a) Do the two groups have the same mean score? b) Compute the range for each group. Based on this measure, which group displays more consistent academic performance?
Solution for Example 1: • a) Mean score of Group 1: . Mean score of Group 2: . Thus, both groups have the same mean score (equal to 8). • b) Range of Group 1: . Range of Group 2: . Since , Group 1 demonstrates more consistent and uniform academic performance than Group 2.
Practice 1: The following dataset shows the heights (in cm) of students in a study group: 163, 159, 172, 167, 165, 168, 170, 161. Compute the range of this dataset.
Solution for Practice 1: • The maximum value is , and the minimum value is . • The range is:
b) Interquartile Range
Definition: The interquartile range (IQR), denoted by , is the difference between the third quartile () and the first quartile ():
Nature and Statistical Meaning: • In essence, the interquartile range represents the range of the central of the ordered dataset. • The IQR measures the dispersion of the middle half of the distribution and is resistant (robust) to outliers at either extreme. • A larger value of indicates greater spread within the central portion of the data.
Example 2: The following data record the number of empty seats at a cinema across 9 days: 7, 8, 22, 20, 15, 18, 19, 13, 11. Find the interquartile range for this dataset.
Solution for Example 2: • Arrange the observations in non-decreasing order (): 7, 8, 11, 13, 15, 18, 19, 20, 22. • The median is the 5th observation: . • The lower half consists of 4 values: 7, 8, 11, 13. The first quartile is . • The upper half consists of 4 values: 18, 19, 20, 22. The third quartile is . • The interquartile range is:
Practice 2: The following dataset gives the number of tracks per album in An’s music collection: 12, 7, 10, 9, 12, 9, 10, 11, 10, 14. Find the interquartile range for this dataset.
Solution for Practice 2: • Arrange the data in non-decreasing order (): 7, 9, 9, 10, 10, 10, 11, 12, 12, 14. • The median is the arithmetic mean of the 5th and 6th values: . • The lower half contains 5 values (7, 9, 9, 10, 10); its median is the middle value, so . • The upper half contains 5 values (10, 11, 12, 12, 14); its median is the middle value, so . • The interquartile range is:
Variance and Standard Deviation
a) Formulas for Variance and Standard Deviation
Concepts: For a dataset with mean : • The difference is called the deviation of the observation from the mean. • The sample variance, denoted by , is the mean of the squared deviations: When data are grouped in a frequency table with frequencies : • The standard deviation, denoted by , is the non-negative square root of the variance:
Statistical Meaning: Variance and standard deviation quantify the degree of dispersion of all observations around the mean. A smaller variance or standard deviation indicates that data points are clustered closely around the mean (indicating greater consistency and stability). Standard deviation shares the same unit of measurement as the original data, providing direct physical and practical interpretability.
b) Examples and Practice on Variance and Standard Deviation
Example 3: The following dataset shows the class sizes of 5 tenth-grade classes at a high school: 43, 45, 46, 41, 40. Find the variance and standard deviation.
Solution for Example 3: • Mean: . • Calculation of squared deviations: + + + + + Sum of squared deviations: . • Variance: . • Standard deviation: .
Practice 3: Using a digital timer with resolution of 0.001 s, the free-fall time of an object was measured 7 times: 0.398, 0.399, 0.408, 0.410, 0.406, 0.405, 0.402 (seconds). Compute the variance and standard deviation. What does this indicate about the precision of the experiment?
Solution for Practice 3: • Mean time: • Sum of squared deviations: • Variance: . • Standard deviation: . • Evaluation: The standard deviation is very small (), indicating that the measurements are tightly clustered around the mean value. This demonstrates high repeatability and excellent experimental precision.
Detecting Outliers Using Box Plots
a) Mathematical Criteria for Outlier Detection
IQR Criterion for Outlier Detection (Tukey’s Fences): In a dataset, an observation is classified as an outlier if it satisfies either of the following conditions: • (lower outlier) • (upper outlier) where is the interquartile range.
Statistical Significance: A box plot visually summarizes the five-number summary (Minimum, , Maximum) and provides an effective tool for identifying recording errors, instrumentation anomalies, or genuine extreme phenomena.
b) Examples and Practice on Outlier Detection
Example 4: Sodium content (mg/100 g cereal) in a sample of breakfast cereals: 0, 340, 70, 140, 200, 180, 210, 150, 100, 130, 140, 180, 190, 160, 290, 50, 220, 180, 200, 210. Identify any outliers using the box plot criteria.
Solution for Example 4: • From the ordered dataset of 20 values, we have: and . • Interquartile range: . • Outlier boundaries (fences): + Lower fence: . + Upper fence: . • Conclusion: The dataset contains two outliers: (since ) and (since ).
Practice 4: A dataset has a first quartile of and a third quartile of . Determine whether either of the values or is considered an outlier.
Solution for Practice 4: • Given: , . • Interquartile range: . • Lower fence: . • Upper fence: . • Comparison: The value , so is an outlier. The value lies within , so it is not an outlier.
Applications and Exercises
a) Conceptual and Theoretical Exercises
Exercise 5.11: State whether each of the following statements is True or False: (1) If data values are more concentrated around the mean, the standard deviation is larger. (2) The range uses only information from the maximum and minimum values, ignoring all other data points. (3) The interquartile range utilizes information from the maximum and minimum values. (4) The interquartile range is the range of the lower half of the ordered dataset. (5) All measures of dispersion are non-negative.
Solution for Exercise 5.11: • (1) FALSE. When data values cluster more tightly around the mean, deviations are smaller, resulting in a smaller standard deviation. • (2) TRUE. By definition , the range depends solely on the two extrema. • (3) FALSE. The interquartile range does not depend on or . • (4) FALSE. The interquartile range is the range of the middle of the ordered observations. • (5) TRUE. The range , interquartile range , variance , and standard deviation .
Exercise 5.12: Consider two dot plots representing datasets A and B on the number line from 3 to 9 (each dot represents one observation frequency). Without calculating: a) Do both datasets have the same range and mean? b) Which dataset has a larger variance?
Solution for Exercise 5.12: • a) YES. Both datasets have and , giving the same range . Both dot distributions are symmetric about 6, so both have a mean of . • b) Dataset B has a larger variance. In dataset B, observations are heavily distributed toward the extremes (3 and 9), far from the center, whereas in dataset A observations are densely concentrated around the mean 6.
Exercise 5.13: Consider a dataset of 10 positive numbers that are not all identical. How do the measures of dispersion (range, interquartile range, standard deviation) change if: a) Each value in the dataset is multiplied by 2? b) Each value in the dataset is increased by 2?
Solution for Exercise 5.13: • a) When multiplying each value by 2 (): + The range is multiplied by 2: . + The interquartile range is multiplied by 2: . + The standard deviation is multiplied by 2: (the variance is multiplied by ). • b) When adding 2 to each value (): + The range is unchanged: . + The interquartile range is unchanged: . + The standard deviation is unchanged: (since deviations are invariant under translation).
b) Computational and Outlier Detection Exercises
Exercise 5.14: From a sample of cigarette taxes across 51 cities in a country, the computed statistics are: Minimum = 2.5; ; ; ; Maximum = 205. a) What proportion of cities have a cigarette tax rate greater than 36? b) Identify two values such that of the observations in the dataset lie between them. c) Find the interquartile range of the dataset.
Solution for Exercise 5.14: • a) Since represents the first quartile ( of cities have tax rates less than or equal to 36), approximately of cities have a cigarette tax greater than 36. • b) Approximately of the data values lie between the first quartile and the third quartile . • c) The interquartile range is: .
Exercise 5.15: The following data record the birth weights of 10 newborn infants (in kg): 2.977, 3.155, 3.920, 3.412, 4.236, 2.593, 3.270, 3.813, 4.042, 3.387. Compute the range, interquartile range, and standard deviation for this dataset.
Solution for Exercise 5.15: • Arrange the data in non-decreasing order (): 2.593, 2.977, 3.155, 3.270, 3.387, 3.412, 3.813, 3.920, 4.042, 4.236. • Range: • Quartiles: + Median . + The lower half has 5 values; its middle value is . + The upper half has 5 values; its middle value is . + Interquartile range: . • Mean: • Variance: • Standard deviation: .
Exercise 5.16: The unemployment rates in several countries in 2007 (in %) were recorded as follows: 7.8, 3.2, 7.7, 8.7, 8.6, 8.4, 7.2, 3.6, 5.0, 4.4, 6.7, 7.0, 4.5, 6.0, 5.4. Identify any outliers in the dataset.
Solution for Exercise 5.16: • Arrange the observations in non-decreasing order: 3.2, 3.6, 4.4, 4.5, 5.0, 5.4, 6.0, 6.7, 7.0, 7.2, 7.7, 7.8, 8.4, 8.6, 8.7. • Median (8th observation): . • The lower half consists of the first 7 values (3.2 to 6.0); the middle value (4th position) is . • The upper half consists of the last 7 values (7.0 to 8.7); the middle value (12th position) is . • Interquartile range: . • Outlier boundaries (fences): + Lower fence: . + Upper fence: . • Comparison: All observations lie within (minimum and maximum ). • Conclusion: The dataset contains no outliers.