Range: The difference between the maximum and minimum values in a dataset. It represents the total spread of the data.
Formula: Range = Maximum - Minimum
- Identify the maximum value in the dataset
- Identify the minimum value in the dataset
- Subtract the minimum from the maximum
Dataset: 12, 15, 18, 20, 22, 25, 28, 30, 35, 40
Maximum: 40 (largest value)
Minimum: 12 (smallest value)
Range = Maximum - Minimum
Range = 40 - 12 = 28
The data spans 28 units from the lowest to highest value
Range is sensitive to outliers as it only considers extreme values
40
12
28
Range: 28
Interpretation: The data spans 28 units from minimum to maximum.
• Range formula: Range = Max - Min
• Sensitivity: Range is highly sensitive to outliers
• Simple measure: Only uses two values from dataset
Range: Total spread (sensitive to outliers)
IQR: Middle 50% spread (robust to outliers)
Outlier impact: How extreme values affect different measures of spread.
Dataset: 5, 8, 10, 12, 15, 18, 20, 22, 25, 40
Maximum: 40
Minimum: 5
Range: 40 - 5 = 35
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
Range: 35 (affected by outlier 40)
IQR: 12 (not affected by outlier)
Range is almost 3 times larger than IQR
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
Large difference between range and IQR indicates presence of outliers
For this dataset, IQR is more reliable for describing typical variability
35
12
23
Range: 35
IQR: 12
Comparison: Range is inflated by outlier (40), IQR is robust.
• Range sensitivity: Affected by all extreme values
• IQR robustness: Resistant to outliers
• Comparison insight: Large difference suggests outliers
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
- Calculate the mean of the dataset
- Find the deviation of each value from the mean
- Square each deviation
- Find the average of squared deviations (variance)
- Take the square root of variance (standard deviation)
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
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
Squared deviations: (-7)², (-5)², (-3)², (-1)², (1)², (3)², (5)², (7)²
Squared deviations: 49, 25, 9, 1, 1, 9, 25, 49
Sum of squared deviations = 49 + 25 + 9 + 1 + 1 + 9 + 25 + 49 = 168
Variance: 168 ÷ 8 = 21
Standard Deviation: √21 ≈ 4.58
17
21
4.58
Variance: 21
Standard Deviation: ≈4.58
Interpretation: On average, values deviate by about 4.58 units from the mean.
• Variance formula: σ² = Σ(xi - x̄)²/n
• Standard deviation: σ = √variance
• Units: Standard deviation in same units as original data
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.
- Range: Max - Min
- IQR: Q3 - Q1
- Variance: Σ(xi - x̄)²/n
- Standard Deviation: √Variance
- Coefficient of Variation: (σ/x̄) × 100%
• Range formula: R = Max - Min
• IQR formula: IQR = Q3 - Q1
• Variance formula: σ² = Σ(xi - x̄)²/n
• Standard deviation: σ = √σ²
• CV formula: CV = (σ/x̄) × 100%
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%
Portfolio A: Mean = 8%, SD = 2%
CV_A: (2 ÷ 8) × 100% = 0.25 × 100% = 25%
Portfolio B: Mean = 12%, SD = 3%
CV_B: (3 ÷ 12) × 100% = 0.25 × 100% = 25%
CV_A = 25%
CV_B = 25%
Both portfolios have the same relative variability
Despite different absolute values, both portfolios have the same relative risk
Portfolio B has higher absolute returns but the same relative volatility
25%
25%
Equal
Portfolio A CV: 25%
Portfolio B CV: 25%
Conclusion: Both portfolios have equal relative variability.
• CV formula: CV = (σ/μ) × 100%
• Relative comparison: Allows comparison across different scales
• Risk assessment: Higher CV indicates higher relative risk
Manufacturing context: Understanding which measure of spread is most appropriate for monitoring production consistency.
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
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
Mean: (104.2) ÷ 10 = 10.42 mm
Standard Deviation: ≈ 1.68 mm
Value 15.2 appears to be an outlier
This significantly affects range and standard deviation
IQR is unaffected by this extreme value
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
5.4 mm
0.5 mm
1.68 mm
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.
• Quality control: Robust measures preferred for routine monitoring
• Outlier sensitivity: Consider impact of extreme values
• Process consistency: Focus on typical variation rather than outliers
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%).
- Range: Identify max and min values, subtract min from max
- IQR: Find Q1 and Q3, subtract Q1 from Q3
- Variance: Calculate mean, find squared deviations, average them
- Standard Deviation: Take square root of variance
- CV: Divide standard deviation by mean, multiply by 100%
• Range: R = Max - Min
• IQR: IQR = Q3 - Q1
• Variance: σ² = Σ(xi - x̄)²/n
• Standard Deviation: σ = √σ²
• Coefficient of Variation: CV = (σ/x̄) × 100%
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.
- Data preparation: Organize and sort the dataset
- Range calculation: Identify max and min values
- IQR calculation: Find Q1 and Q3, compute difference
- Variance calculation: Compute mean, squared deviations, average them
- Standard deviation: Take square root of variance
- CV calculation: If needed, compute coefficient of variation
- Interpretation: Analyze results in context
• 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.