Range and Interquartile Range - Complete Guide

Master range and interquartile range: calculating, interpreting, and applying measures of spread through 3 detailed exercises with visual demonstrations.

Range and Interquartile Range Exercises
1 Range Calculation
Exercise 1
Find the range of the following test scores: 85, 92, 78, 96, 89, 76, 94, 88, 82, 91.
Definition:

Range: The difference between the highest and lowest values in a dataset. Range = Maximum - Minimum.

Solution method:
  1. Arrange the data in ascending order
  2. Identify the minimum and maximum values
  3. Subtract the minimum from the maximum
  4. State the range
76 78 82 85 88 89 91 92 94 96 Range = 20
Sorted Data
76,78,82,85,88,89,91,92,94,96
Max - Min
96 - 76 = 20
Range
20
Step 1: Arrange data in ascending order

76, 78, 82, 85, 88, 89, 91, 92, 94, 96

Step 2: Identify maximum and minimum

Maximum = 96, Minimum = 76

Step 3: Calculate the range

Range = Maximum - Minimum = 96 - 76 = 20

Range = 20
Final answer:

The range of the test scores is 20 points.

Applied rules:

• Range formula: Maximum - Minimum

• Ordering: Always arrange data to identify min/max

• Subtraction: Calculate difference between extremes

2 Quartiles and IQR
Exercise 2
Find the first quartile (Q1), third quartile (Q3), and interquartile range (IQR) for the following data set: 12, 15, 18, 20, 22, 25, 28, 30, 35.
Definition:

Quartiles: Values that divide a data set into four equal parts. Q1 is the median of the lower half, Q3 is the median of the upper half. IQR: Q3 - Q1, representing the middle 50% of data.

12 15 18 20 22 25 28 30 35 Q1 Q2 Q3 IQR = 12
Sorted Data
12,15,18,20,22,25,28,30,35
Q1, Q3
Q1=16.5, Q3=29
IQR
29-16.5=12.5
Step 1: Arrange data in ascending order

Already sorted: 12, 15, 18, 20, 22, 25, 28, 30, 35

Step 2: Find the median (Q2)

With 9 values, median is the 5th value: Q2 = 22

Step 3: Find Q1 (median of lower half)

Lower half: 12, 15, 18, 20 (4 values)

Q1 = (15 + 18) ÷ 2 = 16.5

Step 4: Find Q3 (median of upper half)

Upper half: 25, 28, 30, 35 (4 values)

Q3 = (28 + 30) ÷ 2 = 29

Step 5: Calculate the IQR

IQR = Q3 - Q1 = 29 - 16.5 = 12.5

Q1 = 16.5, Q3 = 29, IQR = 12.5
Final answer:

Q1 = 16.5, Q3 = 29, and the IQR = 12.5.

Applied rules:

• Quartile calculation: Q1 is median of lower half, Q3 is median of upper half

• IQR formula: Q3 - Q1

• Median rule: For even number of values, average the two middle values

3 Comparing Spread
Exercise 3
Compare the spread of two classes' test scores:
Class A: 70, 75, 80, 85, 90, 95, 100
Class B: 60, 70, 80, 85, 90, 95, 100
Calculate range and IQR for each class and compare.
Definition:

Comparing spread: Using range and IQR to determine which dataset has more variability. Range is sensitive to outliers, IQR focuses on the middle 50%.

Class A Class B Range A = 30 Range B = 40 IQR A = 30 IQR B = 25
Class A
Range=30, IQR=30
Class B
Range=40, IQR=25
Comparison
B has larger range, A has larger IQR
Step 1: Calculate range for Class A

Sorted: 70, 75, 80, 85, 90, 95, 100

Range = 100 - 70 = 30

Step 2: Calculate IQR for Class A

Q1 = 75 (median of 70,75,80), Q3 = 95 (median of 90,95,100)

IQR = 95 - 75 = 20

Step 3: Calculate range for Class B

Sorted: 60, 70, 80, 85, 90, 95, 100

Range = 100 - 60 = 40

Step 4: Calculate IQR for Class B

Q1 = 70 (median of 60,70,80), Q3 = 95 (median of 90,95,100)

IQR = 95 - 70 = 25

Step 5: Compare the results

Class B has a larger range (40 vs 30), indicating more spread overall

Class A has a larger IQR (30 vs 25), indicating more spread in the middle 50%

Class A: Range = 30, IQR = 20
Class B: Range = 40, IQR = 25
Class B has more overall spread, Class A has more middle spread
Final answer:

Class B has a larger range (40 vs 30) due to the outlier (60), while Class A has a slightly larger IQR (20 vs 25) showing more variability in the middle 50%.

Applied rules:

• Range sensitivity: Range is affected by outliers

• IQR robustness: IQR is not affected by outliers

• Comparative analysis: Use both measures for complete picture

Range and Interquartile Range Overview
Range
Formula: Maximum - Minimum
Advantage: Easy to calculate
Disadvantage: Affected by outliers
Best for: Simple spread measurement
Interquartile Range
Formula: Q3 - Q1
Advantage: Not affected by outliers
Disadvantage: More complex to calculate
Best for: Robust spread measurement
Quartiles
Q1: 25th percentile
Q2: 50th percentile (median)
Q3: 75th percentile
Use: Dividing data into quarters
Range
• Simple to calculate
• Uses only min and max
• Sensitive to outliers
• Good for quick comparison
• Formula: Max - Min
Interquartile Range
• Focuses on middle 50%
• Resistant to outliers
• More robust measure
• Better for skewed data
• Formula: Q3 - Q1
Key Insight
The range is sensitive to extreme values (outliers), while the interquartile range focuses on the middle 50% of the data and is not affected by outliers. This makes IQR a more robust measure of spread.
\(\text{IQR} = Q_3 - Q_1\)
Interquartile Range Formula
Range: Affected by outliers and extreme values.
IQR: Focuses on the middle 50% of the data.
Summary: Range and Interquartile Range
Complete Summary

Definitions:

  • Range: The difference between the maximum and minimum values in a dataset.
  • Quartiles: Values that divide a dataset into four equal parts (Q1, Q2, Q3).
  • Interquartile Range (IQR): The difference between the third and first quartiles (Q3 - Q1).
  • First Quartile (Q1): The median of the lower half of the data.
  • Third Quartile (Q3): The median of the upper half of the data.

Core Rules and Properties:

  • Range formula: Range = Maximum - Minimum
  • IQR formula: IQR = Q3 - Q1
  • Quartile calculation: Q1 and Q3 are medians of respective halves
  • Outlier resistance: IQR is not affected by outliers
  • Range sensitivity: Range is affected by outliers

Step-by-Step Methods:

  1. For range: Arrange data, subtract minimum from maximum.
  2. For quartiles: Arrange data, find median, then medians of halves.
  3. For IQR: Calculate Q3 - Q1.
  4. Verification: Check calculations and reasonableness.
  5. Interpretation: Consider what the measure tells about data spread.

Examples:

  • Simple range: 5, 10, 15 → Range = 15 - 5 = 10
  • Quartiles: 1, 2, 3, 4, 5, 6, 7, 8 → Q1 = 2.5, Q3 = 6.5
  • IQR: Q3 - Q1 = 6.5 - 2.5 = 4
  • Outlier impact: Range changes dramatically, IQR changes minimally

Tips and Tricks:

  • Always sort data before calculating range or quartiles
  • Remember that IQR represents the middle 50% of data
  • Use IQR when outliers are present
  • Range gives the full spread, IQR gives the central spread

Common Pitfalls:

  • Forgetting to sort data before finding quartiles
  • Confusing Q1 and Q3 calculations
  • Using the wrong formula for IQR
  • Not considering the impact of outliers on range

Key Takeaways:

  • Range measures total spread from min to max
  • IQR measures spread of the middle half of data
  • IQR is more robust against outliers than range
  • Both measures provide insight into data variability
\(\text{Range} = \text{Maximum} - \text{Minimum}\)
Range Formula
Key definitions:

Spread: How spread out the values are in a dataset

Percentile: A value below which a percentage of data falls

Outlier: A value that is significantly different from other values

Robust measure: A statistic that is not heavily influenced by outliers

Calculation Strategy:
  1. Organize data: Sort values in ascending order
  2. Calculate range: Find difference between max and min
  3. Find quartiles: Calculate Q1 and Q3
  4. Calculate IQR: Find difference between Q3 and Q1
  5. Interpret results: Consider what measures tell about data
Tip 1: Use range for quick spread assessment, IQR for robust analysis.
Tip 2: IQR is especially useful when data contains outliers.
Tip 3: Always sort data before calculating quartiles.
Tip 4: IQR represents the middle 50% of the data.
Common errors: Incorrect quartile calculation, forgetting to sort data, misapplying formulas.
Exam preparation: Practice quartile calculations, understand when to use range vs IQR.
Important Rules:

• Range: Maximum - Minimum

• IQR: Q3 - Q1

• Q1: Median of lower half of data

• Q3: Median of upper half of data

Questions & Answers

Question: When should I use range and when should I use interquartile range? They both seem to measure spread.

Answer: The choice depends on your data characteristics:

  • Use range when: You want a quick measure of total spread and your data doesn't have extreme outliers.
  • Use IQR when: Your data has outliers or you want to measure the spread of the middle portion of your data.

For example, if you're analyzing household incomes in a neighborhood that includes a billionaire, the range would be extremely large due to that outlier. The IQR would give you a better sense of how spread out the typical households are.

Question: How can I help my child understand quartiles? The concept of "median of the lower half" is confusing.

Answer: Think of quartiles as dividing your data into four equal groups:

  • Imagine: You have 100 students ranked by height. The 25th student is Q1, the 50th is the median (Q2), and the 75th is Q3.
  • Simple approach: Once you find the median, ignore it and find the median of the lower half (that's Q1) and the upper half (that's Q3).
  • Visual aid: Draw a number line and mark where the quartiles divide the data into four equal parts.

Practice with small, even-sized datasets first: 1, 2, 3, 4, 5, 6 → Median = 3.5, Q1 = 2, Q3 = 5.

Question: Can the range ever be smaller than the IQR? What's the relationship between them?

Answer: Yes, the range can be smaller than the IQR in certain cases! This happens when the data is highly clustered in the middle with extreme outliers:

Example: 1, 2, 99, 100

Range = 100 - 1 = 99

Q1 = 1.5, Q3 = 99.5, IQR = 99.5 - 1.5 = 98

However, this is rare. Usually, the range is larger than the IQR because the range considers the entire spread of data while IQR only considers the middle 50%. The IQR is always ≤ the range, and IQR is always ≤ (range - 2 × smallest distance to extremes).