Range
Range: Max - Min
Range is the simplest measure of spread: maximum value minus minimum value. It tells you the total span of your data—how far apart the extremes are.
Sensitivity to Outliers
Range is extremely sensitive to outliers. One extreme value completely changes the range, making it unreliable for data with outliers. It uses only 2 of n data points.
Appropriate Uses
• Quality control limits
• Small, clean datasets
• When extremes matter
• Comparing groups
• Inferential statistics
• Large datasets
Range is useful for quick checks and when you specifically care about extremes (temperature ranges, stock price swings). But for serious analysis, use IQR or standard deviation.
Interquartile Range (IQR)
Understanding Quartiles
Quartiles divide sorted data into four equal parts. Q1 is the 25th percentile, Q2 (median) is the 50th, and Q3 is the 75th. Each quartile contains 25% of the data.
The Interquartile Range
IQR measures the spread of the middle 50% of data. By ignoring the bottom and top 25%, it's immune to outliers. It's like range, but focused on the 'core' of your data.
Step-by-Step Example
1. Sort the data. 2. Find Q1 (median of lower half): 5. 3. Find Q3 (median of upper half): 12. 4. IQR = Q3 - Q1 = 12 - 5 = 7. The middle 50% spans 7 units.
Detecting Outliers with IQR
Lower fence: 5 - 1.5(7) = -5.5
Upper fence: 12 + 1.5(7) = 22.5
Values below -5.5 or above 22.5 are outliers
The 1.5×IQR rule identifies outliers. Calculate fences at Q1 - 1.5×IQR and Q3 + 1.5×IQR. Any value beyond these fences is considered an outlier. This is what box plots use.
Variance
Average Squared Deviation
Variance measures how far values spread from the mean. For each value, calculate the squared difference from the mean. Then average these squared differences. Squaring ensures all deviations are positive.
Population vs Sample Variance
Population variance divides by N. Sample variance divides by n-1 (Bessel's correction) to give an unbiased estimate of population variance. In practice, almost always use n-1.
Step-by-Step Example
(2-5)²=9, (4-5)²=1, (4-5)²=1, (4-5)²=1,
(5-5)²=0, (5-5)²=0, (7-5)²=4, (9-5)²=16
1. Calculate the mean. 2. Subtract mean from each value and square. 3. Sum all squared deviations. 4. Divide by n-1 for sample variance. The result (4.57) is in squared units.
Problems with Variance
Hard to interpret: 'average 4.57 cm² from mean' means what?
Heights in mm: variance might be 10,000+, making comparison difficult.
Variance is hard to interpret because it's in squared units. If heights are in centimeters, variance is in square centimeters. To return to original units, we take the square root.
Standard Deviation
Square Root of Variance
Standard deviation (SD or σ) is the square root of variance. It returns the spread measure to original units, making it directly interpretable: 'typical deviation is about 2.14 cm from the mean.'
What SD Tells You
SD describes the typical distance from the mean. Small SD means data clusters tightly around the mean. Large SD means data is spread widely. It's the most commonly used spread measure.
The Empirical Rule
For normal distributions: ~68% of data falls within 1 SD of the mean, ~95% within 2 SDs, and ~99.7% within 3 SDs. This 68-95-99.7 rule helps interpret SD in context.
Comparing Distributions
Same mean (100), different SDs. Group A (SD=5) is highly consistent—most values near 100. Group B (SD=15) is more variable—values spread further from 100. SD quantifies this difference.
Choosing a Spread Measure
All Measures at a Glance
| Measure | Formula | Robust? | Best For |
|---|---|---|---|
| Range | Max - Min | No | Quick check |
| IQR | Q3 - Q1 | Yes | Skewed data |
| Variance | Σ(x-x̄)²/(n-1) | No | Calculations |
| Std Dev | √Variance | No | General use |
Range is simplest but least reliable. IQR is robust for skewed data. Variance is used in formulas. Standard deviation is the go-to measure for most purposes.
Match Center with Spread
Always pair center and spread measures: Mean goes with SD (both affected by outliers). Median goes with IQR (both robust). Mixing them (mean with IQR) makes less sense.
Which Measure to Choose?
Simple decision: Check for skewness/outliers. If data is symmetric and well-behaved, use SD. If skewed or outliers exist, use IQR. When in doubt, report both.
Interactive Spread Calculator
Add your own data to see all spread measures calculated live! Try adding an outlier (like 100) to see how Range and SD change dramatically while IQR stays relatively stable. This demonstrates why IQR is 'robust'.
Real-World Examples
Apply your knowledge to practical scenarios
Manufacturing Quality Control
A factory produces steel rods with a target length of 100mm. Two machines produce rods with the same mean length (100mm), but Machine A has SD = 0.5mm and Machine B has SD = 2.0mm. Quality specifications require rods between 98mm and 102mm.
Sample Data
{
"machineA": {
"mean": 100,
"sd": 0.5,
"range": "98.5-101.5mm typical"
},
"machineB": {
"mean": 100,
"sd": 2,
"range": "96-104mm typical"
}
}
Key Insights
- Same mean, vastly different outcomes—spread matters enormously in quality control
- SD directly translates to defect rates and costs
- Six Sigma methodology focuses on reducing SD to 1/6 of tolerance
Salary Negotiation Intelligence
You're negotiating a salary for a data analyst position. You've gathered salary data: Mean = $75,000, Median = $68,000, SD = $15,000, IQR = $18,000. The range is $45,000 to $150,000.
Key Insights
- Median + IQR are better for skewed salary data than mean + SD
- Understanding spread helps you gauge where an offer falls
- Large range with small IQR indicates outlier-driven extremes
The Suspicious Test Scores
A teacher analyzes test scores: 72, 75, 78, 80, 82, 85, 88, 90, 92, 98. One student scored 45 on the same test. Should this be flagged as an outlier?
Sample Data
{
"originalScores": [
72,
75,
78,
80,
82,
85,
88,
90,
92,
98
],
"suspiciousScore": 45
}
Key Insights
- IQR method provides objective outlier detection
- Statistical outliers need human judgment—detection ≠ deletion
- Outliers may be the most important data points (fraud, errors, special cases)
Spread Measures Quiz
Test your understanding • Passing score: 70%