Range and Other Measures of Spread: Complete Guide with Solved Exercises

Master range and other measures of spread: range, IQR, variance, standard deviation, and coefficient of variation through 5 detailed exercises with comprehensive solutions.

Solution: Exercises 1 to 3
1 Basic Range Calculation
Exercise 1
Calculate the range for the following dataset: 12, 15, 18, 20, 22, 25, 28, 30, 35, 40
Definition:

Range: The difference between the maximum and minimum values in a dataset. It represents the total spread of the data.

Formula: Range = Maximum - Minimum

Calculation Method:
  1. Identify the maximum value in the dataset
  2. Identify the minimum value in the dataset
  3. Subtract the minimum from the maximum
Step 1: Identify maximum and minimum values

Dataset: 12, 15, 18, 20, 22, 25, 28, 30, 35, 40

Maximum: 40 (largest value)

Minimum: 12 (smallest value)

Step 2: Calculate the range

Range = Maximum - Minimum

Range = 40 - 12 = 28

Step 3: Interpret the result

The data spans 28 units from the lowest to highest value

Range is sensitive to outliers as it only considers extreme values

Maximum

40

Minimum

12

Range

28

Range = 28
Final Answer:

Range: 28

Interpretation: The data spans 28 units from minimum to maximum.

Applied Rules:

• Range formula: Range = Max - Min

• Sensitivity: Range is highly sensitive to outliers

• Simple measure: Only uses two values from dataset

2 IQR vs Range Comparison
Exercise 2
For the dataset: 5, 8, 10, 12, 15, 18, 20, 22, 25, 40, calculate both the range and IQR. Compare their values and discuss the impact of the outlier.
Statistical Comparison:

Range: Total spread (sensitive to outliers)

IQR: Middle 50% spread (robust to outliers)

Outlier impact: How extreme values affect different measures of spread.

Step 1: Calculate the range

Dataset: 5, 8, 10, 12, 15, 18, 20, 22, 25, 40

Maximum: 40

Minimum: 5

Range: 40 - 5 = 35

Step 2: Calculate IQR

Lower half: 5, 8, 10, 12, 15 → Q1 = 10 (median of lower half)

Upper half: 18, 20, 22, 25, 40 → Q3 = 22 (median of upper half)

Q1: 10

Q3: 22

IQR: 22 - 10 = 12

Step 3: Compare the measures

Range: 35 (affected by outlier 40)

IQR: 12 (not affected by outlier)

Range is almost 3 times larger than IQR

Step 4: Analyze the outlier impact

Value 40 is an outlier that inflates the range

IQR ignores the outlier and focuses on middle 50%

IQR provides a more representative measure of typical spread

Step 5: Interpret the comparison

Large difference between range and IQR indicates presence of outliers

For this dataset, IQR is more reliable for describing typical variability

Range

35

IQR

12

Difference

23

Range = 35, IQR = 12 (outlier inflates range significantly)
Final Answer:

Range: 35

IQR: 12

Comparison: Range is inflated by outlier (40), IQR is robust.

Applied Rules:

• Range sensitivity: Affected by all extreme values

• IQR robustness: Resistant to outliers

• Comparison insight: Large difference suggests outliers

3 Variance and Standard Deviation Calculation
Exercise 3
Calculate the variance and standard deviation for the dataset: 10, 12, 14, 16, 18, 20, 22, 24
Variance and Standard Deviation:

Variance: The average of squared deviations from the mean. Measures spread around the mean.

Standard Deviation: The square root of variance. Measured in the same units as the original data.

Formulas: Variance = Σ(xi - x̄)²/n, Standard Deviation = √Variance

Calculation Method:
  1. Calculate the mean of the dataset
  2. Find the deviation of each value from the mean
  3. Square each deviation
  4. Find the average of squared deviations (variance)
  5. Take the square root of variance (standard deviation)
Step 1: Calculate the mean

Dataset: 10, 12, 14, 16, 18, 20, 22, 24

Sum = 10 + 12 + 14 + 16 + 18 + 20 + 22 + 24 = 136

Count = 8

Mean (x̄): 136 ÷ 8 = 17

Step 2: Calculate deviations from mean

Deviations: (10-17), (12-17), (14-17), (16-17), (18-17), (20-17), (22-17), (24-17)

Deviations: -7, -5, -3, -1, 1, 3, 5, 7

Step 3: Square each deviation

Squared deviations: (-7)², (-5)², (-3)², (-1)², (1)², (3)², (5)², (7)²

Squared deviations: 49, 25, 9, 1, 1, 9, 25, 49

Step 4: Calculate variance

Sum of squared deviations = 49 + 25 + 9 + 1 + 1 + 9 + 25 + 49 = 168

Variance: 168 ÷ 8 = 21

Step 5: Calculate standard deviation

Standard Deviation: √21 ≈ 4.58

Mean

17

Variance

21

Std Dev

4.58

Variance = 21, Standard Deviation ≈ 4.58
Final Answer:

Variance: 21

Standard Deviation: ≈4.58

Interpretation: On average, values deviate by about 4.58 units from the mean.

Applied Rules:

• Variance formula: σ² = Σ(xi - x̄)²/n

• Standard deviation: σ = √variance

• Units: Standard deviation in same units as original data

Spread Measures: Formulas and Applications
Range = Max - Min
Simple Spread Measure
Range
Max - Min
Sensitive to outliers
IQR
Q3 - Q1
Robust to outliers
Variance
Σ(xi - x̄)²/n
Average squared deviation
Key Definitions:

Range: The difference between the maximum and minimum values in a dataset. It represents the total spread of the data.

Interquartile Range (IQR): The difference between the third quartile (Q3) and the first quartile (Q1), representing the range of the middle 50% of the data.

Variance: The average of the squared deviations from the mean, measuring the spread around the central value.

Standard Deviation: The square root of variance, expressed in the same units as the original data.

Coefficient of Variation: The ratio of the standard deviation to the mean, expressed as a percentage, used for comparing variability across different scales.

Complete Calculation Methods:
  1. Range: Max - Min
  2. IQR: Q3 - Q1
  3. Variance: Σ(xi - x̄)²/n
  4. Standard Deviation: √Variance
  5. Coefficient of Variation: (σ/x̄) × 100%
Tip 1: Range is simplest but least reliable measure of spread.
Tip 2: IQR is robust and ideal when outliers are present.
Tip 3: Standard deviation is most commonly used in statistics.
Tip 4: Coefficient of variation allows comparison across different scales.
Advantages: Range is simple, IQR is robust, variance/SD use all data, CV allows cross-scale comparison.
Applications: Quality control, risk assessment, performance evaluation, statistical inference.
Essential Rules:

• Range formula: R = Max - Min

• IQR formula: IQR = Q3 - Q1

• Variance formula: σ² = Σ(xi - x̄)²/n

• Standard deviation: σ = √σ²

• CV formula: CV = (σ/x̄) × 100%

Solution: Exercises 4 to 5
4 Coefficient of Variation
Exercise 4
Two investment portfolios have the following returns: Portfolio A: Mean = 8%, SD = 2%; Portfolio B: Mean = 12%, SD = 3%. Which portfolio has higher relative variability?
Coefficient of Variation:

Coefficient of Variation (CV): A standardized measure of dispersion that allows comparison of variability across different scales or units.

Formula: CV = (Standard Deviation / Mean) × 100%

Step 1: Calculate CV for Portfolio A

Portfolio A: Mean = 8%, SD = 2%

CV_A: (2 ÷ 8) × 100% = 0.25 × 100% = 25%

Step 2: Calculate CV for Portfolio B

Portfolio B: Mean = 12%, SD = 3%

CV_B: (3 ÷ 12) × 100% = 0.25 × 100% = 25%

Step 3: Compare the coefficients of variation

CV_A = 25%

CV_B = 25%

Both portfolios have the same relative variability

Step 4: Interpret the results

Despite different absolute values, both portfolios have the same relative risk

Portfolio B has higher absolute returns but the same relative volatility

Portfolio A CV

25%

Portfolio B CV

25%

Comparison

Equal

Both portfolios have equal relative variability (25%)
Final Answer:

Portfolio A CV: 25%

Portfolio B CV: 25%

Conclusion: Both portfolios have equal relative variability.

Applied Rules:

• CV formula: CV = (σ/μ) × 100%

• Relative comparison: Allows comparison across different scales

• Risk assessment: Higher CV indicates higher relative risk

5 Real-World Application
Exercise 5
A factory produces widgets with the following diameters (in mm): 10.2, 10.5, 9.8, 10.1, 10.4, 9.9, 10.3, 10.6, 10.0, 15.2. Calculate all measures of spread and determine which is most appropriate for quality control.
Quality Control Application:

Manufacturing context: Understanding which measure of spread is most appropriate for monitoring production consistency.

Step 1: Calculate the range

Dataset: 9.8, 9.9, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 15.2 (sorted)

Range: 15.2 - 9.8 = 5.4 mm

Step 2: Calculate IQR

Lower half: 9.8, 9.9, 10.0, 10.1, 10.2 → Q1 = 10.0

Upper half: 10.3, 10.4, 10.5, 10.6, 15.2 → Q3 = 10.5

IQR: 10.5 - 10.0 = 0.5 mm

Step 3: Calculate mean and standard deviation

Mean: (104.2) ÷ 10 = 10.42 mm

Standard Deviation: ≈ 1.68 mm

Step 4: Analyze the outlier

Value 15.2 appears to be an outlier

This significantly affects range and standard deviation

IQR is unaffected by this extreme value

Step 5: Determine most appropriate measure for quality control

Range: Too sensitive to outlier (5.4 mm)

Standard Deviation: Affected by outlier (1.68 mm)

IQR: Robust to outlier (0.5 mm), represents typical spread

Recommendation: Use IQR for routine quality control

Range

5.4 mm

IQR

0.5 mm

Std Dev

1.68 mm

IQR = 0.5 mm most appropriate for quality control (robust to outlier)
Final Answer:

Range: 5.4 mm

IQR: 0.5 mm

Standard Deviation: ≈1.68 mm

Recommendation: Use IQR (0.5 mm) for quality control as it's robust to the outlier.

Applied Rules:

• Quality control: Robust measures preferred for routine monitoring

• Outlier sensitivity: Consider impact of extreme values

• Process consistency: Focus on typical variation rather than outliers

Comprehensive Guide: Spread Measures Laws, Methods, Rules, and Definitions
Range, IQR, Variance, Std Dev, CV
Core Formulas
Key definitions:

Range: The difference between the maximum and minimum values in a dataset (R = Max - Min). It's the simplest measure of spread but highly sensitive to outliers.

Interquartile Range (IQR): The difference between the third quartile (Q3) and the first quartile (Q1), representing the spread of the middle 50% of the data (IQR = Q3 - Q1).

Variance: The average of squared deviations from the mean, measuring how far values are spread from the central point (σ² = Σ(xi - x̄)²/n).

Standard Deviation: The square root of variance, expressed in the same units as the original data (σ = √σ²).

Coefficient of Variation: A relative measure of spread that allows comparison across different scales (CV = (σ/x̄) × 100%).

Complete calculation methodology:
  1. Range: Identify max and min values, subtract min from max
  2. IQR: Find Q1 and Q3, subtract Q1 from Q3
  3. Variance: Calculate mean, find squared deviations, average them
  4. Standard Deviation: Take square root of variance
  5. CV: Divide standard deviation by mean, multiply by 100%
Tip 1: Use IQR when outliers are present as it's robust to extreme values.
Tip 2: Standard deviation is most commonly used in statistical analysis.
Tip 3: CV is useful when comparing variability across different scales.
Tip 4: Range is simple but unreliable when outliers are present.
Tip 5: Always consider the context when choosing which measure to use.
Advantages: Range is simple, IQR is robust, variance/SD use all data, CV allows cross-scale comparison.
Applications: Quality control, risk assessment, performance evaluation, statistical inference, process monitoring.
Considerations: Sensitivity to outliers varies, units of measurement, context of application.
Essential formulas and rules:

• Range: R = Max - Min

• IQR: IQR = Q3 - Q1

• Variance: σ² = Σ(xi - x̄)²/n

• Standard Deviation: σ = √σ²

• Coefficient of Variation: CV = (σ/x̄) × 100%

Detailed Summary: Spread Measures Mastery Guide
Range, IQR, Variance, Std Dev, CV
Core Concepts
Comprehensive Definitions:

Measures of Spread: Statistical measures that quantify how much the values in a dataset vary from the central tendency. They provide information about the dispersion or variability of the data.

Range: The simplest measure of spread, calculated as the difference between the maximum and minimum values. It's highly sensitive to outliers and doesn't consider the distribution of values between extremes.

Interquartile Range (IQR): A robust measure that represents the spread of the middle 50% of the data. It's resistant to outliers and provides a more reliable measure of typical variability.

Variance: The average of squared deviations from the mean, providing a comprehensive measure of how far values are spread from the central point. It's expressed in squared units of the original data.

Standard Deviation: The square root of variance, expressed in the same units as the original data. It's the most commonly used measure of spread in statistical analysis.

Complete Analysis Process:
  1. Data preparation: Organize and sort the dataset
  2. Range calculation: Identify max and min values
  3. IQR calculation: Find Q1 and Q3, compute difference
  4. Variance calculation: Compute mean, squared deviations, average them
  5. Standard deviation: Take square root of variance
  6. CV calculation: If needed, compute coefficient of variation
  7. Interpretation: Analyze results in context
Example 1 (Simple): Dataset [1, 2, 3, 4, 5]: Range=4, IQR=2, Variance=2, SD≈1.41. All measures show small spread.
Example 2 (Advanced): Dataset [1, 2, 3, 4, 100]: Range=99, IQR=2, Variance≈1584. SD≈39.8. Range is inflated by outlier.
Common Mistake: Forgetting to square deviations when calculating variance - always square the differences from the mean.
Memory Aid: "Range is Rough, IQR is Refined, SD is Standard" - from least to most sophisticated.
Key Notes: Range is most sensitive to outliers, IQR is most robust, SD is most commonly used, CV allows cross-scale comparison.
Takeaways: Choose measure based on context and presence of outliers; IQR preferred when outliers present; SD most versatile.
Core Principles for Success:

• Consider outliers: Choose robust measures when extreme values are present

• Context matters: Select measure based on analysis goals and data characteristics

• Units consistency: Standard deviation in same units as original data

• Comparison considerations: Use CV when comparing different scales

• Robustness preference: IQR preferred for routine monitoring applications

Questions & Answers

Question: When should I use standard deviation versus IQR as my primary measure of spread? What's the deciding factor?

Answer: The deciding factor is the presence of outliers and your analysis goals:

  • Use standard deviation when: Data is normally distributed, no significant outliers, you want to use all data points, performing parametric statistical tests
  • Use IQR when: Outliers are present, data is skewed, you want robust measure, doing exploratory data analysis

Standard deviation is more mathematically convenient for advanced statistical procedures, while IQR is more reliable when data quality is questionable. If the two measures give very different pictures of spread, investigate for outliers.

A good practice is to calculate both and compare - large differences suggest the presence of outliers.

Question: Why do we square the deviations when calculating variance? Why not just use the absolute values?

Answer: Squaring deviations serves several important purposes:

  • Mathematical convenience: Squared functions are differentiable, making calculus operations possible
  • Penalizing outliers: Squaring gives more weight to values far from the mean, highlighting extreme deviations
  • Positive values: Squaring ensures all deviations contribute positively to the measure

While absolute deviations (mean absolute deviation) are also valid, squaring became standard because of its mathematical properties and its role in many statistical formulas. The square root of variance (standard deviation) brings us back to original units while maintaining these beneficial properties.

This approach emphasizes larger deviations more than smaller ones, which is often desirable in statistical analysis.

Question: What is the coefficient of variation really telling me? When is it useful compared to just using standard deviation?

Answer: The coefficient of variation (CV) expresses standard deviation as a percentage of the mean, giving you a relative measure of variability:

  • CV = (SD/Mean) × 100%: This standardizes the measure of spread
  • Unit-free comparison: Allows comparison between datasets with different units or scales
  • Relative variability: Shows how much variation exists relative to the average value

Use CV when comparing variability across different datasets with different means or units. For example, comparing the variability of heights (in cm) to weights (in kg) - standard deviations aren't directly comparable, but CVs are.

CV is particularly useful in finance for comparing risk-adjusted returns, quality control for comparing process consistency, and scientific research for comparing variability across different measurements.