Spread: range, interquartile range (IQR), standard deviation, variance
Understanding Measures of Spread in One-Variable Data
When analyzing a single variable, measures of central tendency (like mean or median) tell us where the center of the data lies. However, they don't tell us how spread out the data points are. Measures of spread (or variability) quantify this dispersion, providing a more complete picture of the data distribution.
Range
The range is the simplest measure of spread. It is calculated as the difference between the maximum and minimum values in a dataset.
- Formula: Range = Maximum Value - Minimum Value
- Example: For the dataset {10, 12, 15, 18, 20}, the range is 20 - 10 = 10.
- Advantage: Easy to calculate and understand.
- Disadvantage: Highly susceptible to outliers, as it only considers the two extreme values.
Interquartile Range (IQR)
The Interquartile Range (IQR) measures the spread of the middle 50% of the data. It is less sensitive to outliers than the range.
- First, arrange the data in ascending order.
- Find the median (Q2), which divides the data into two halves.
- Find the first quartile (Q1), which is the median of the lower half of the data.
- Find the third quartile (Q3), which is the median of the upper half of the data.
- Formula: IQR = Q3 - Q1
- Example: For the dataset {10, 12, 15, 18, 20, 22, 25}, Q1 = 12, Q3 = 22. So, IQR = 22 - 12 = 10. (Note: different methods for calculating quartiles can lead to slight variations, but the core concept remains the same).
- Advantage: Robust against outliers.
- Disadvantage: Only uses the middle 50% of the data, ignoring the extreme values.
- The IQR is crucial for constructing box plots and identifying potential outliers (values falling below Q1 - 1.5*IQR or above Q3 + 1.5*IQR).
Standard Deviation
The standard deviation (s or σ) is the most common measure of spread and provides a typical distance of data points from the mean. A larger standard deviation indicates more spread-out data.
- Steps to calculate:
- Calculate the mean (x̄) of the dataset.
- Find the deviations from the mean for each data point (x - x̄).
- Square each deviation to eliminate negative values and give more weight to larger deviations.
- Sum the squared deviations.
- Divide by (n-1) for a sample standard deviation (s) or by N for a population standard deviation (σ). The (n-1) is known as degrees of freedom and is used to provide an unbiased estimate of the population standard deviation from a sample.
- Take the square root of the result.
- Formula for sample standard deviation:
s = √[ Σ(xᵢ - x̄)² / (n - 1) ] - Example: For {1, 2, 3, 4, 5}, mean = 3.
- Deviations: {-2, -1, 0, 1, 2}. Squared deviations: {4, 1, 0, 1, 4}. Sum = 10.
- s = √(10 / (5-1)) = √(10 / 4) = √2.5 ≈ 1.58.
- Advantage: Uses all data points and is often preferred for inferential statistics. It has the same units as the original data.
- Disadvantage: Sensitive to outliers due to the squaring of deviations.
Variance
The variance (s² or σ²) is simply the standard deviation squared. It represents the average of the squared deviations from the mean.
- Formula for sample variance: s² = Σ(xᵢ - x̄)² / (n - 1)
- Example: Using the previous example, variance = 2.5.
- Advantage: Mathematically convenient for many statistical calculations.
- Disadvantage: Units are squared, making it harder to interpret directly in the context of the original data compared to standard deviation.
Practice questions
Which measure of spread is most affected by a single extreme outlier in a dataset?
A dataset has Q1 = 25 and Q3 = 45. What is the Interquartile Range (IQR)?
Why is (n-1) used in the denominator when calculating the sample standard deviation instead of n?
If the standard deviation of a dataset is 5, what is its variance?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/statistics/unit-1-exploring-one-variable-data/spread-range-interquartile-range-iqr-standard-deviation-variance