Measures of Spread and Boxplots

Context: FIT1043_MOC, FIT2086_MOC · how far samples differ from the centre · percentiles feed the IQR and the boxplot · outlier rule shared with Data Quality Problems FIT2086 framing: sample variance where (same unit as the data); the percentile generalises the median , with quartiles — the population analogue is the quantile function.

Quick Revision

  • 🎯 Objective: quantify dispersion ➔ range, variance/standard deviation, and the IQR from percentiles.
  • 📦 Core Components: range (max−min) | variance / SD | IQR | boxplot = five-number summary.
  • ⚡ Key Constraint: range and SD are outlier-sensitive; the IQR (middle 50%) is robust and drives the boxplot outlier rule.

📝 How It Works

1. Range, Variance, Standard Deviation

  • Range; simplest, but only two values.
  • Variance = mean of squared deviations from the sample mean; easier to work with algebraically.
  • Standard deviation; in the data’s units, sensitive to changes like the mean.

2. Percentiles & Quartiles

  • -th percentile = value with of the sample below it.
  • Median; quartiles, .
  • IQR = spread of the middle 50% (robust to outliers).

3. Boxplot (five-number summary)

  • Five numbers ➔ min, , median, , max ➔ captures centrality, spread, and skew in one plot.
  • Outlier rule ➔ suspected outliers are or .

⚖️ Core Decision Matrix

MeasureFormulaRobust to outliers?
Range❌ (extremes only)
Standard deviation❌ (uses all values)
IQR✅ (middle 50%)

When It Flips: a wider spread ( from ) fattens the distribution and lengthens the range; the boxplot shows the same story visually — a taller box = larger IQR.

📊 Exam Execution Trace

Applied Exercise

Problem: , . Give the IQR and the upper outlier threshold. Derivation Proof / Hand-Calculation Walkthrough:

Final Extracted Output: IQR ; any value (or ) is a suspected outlier.

🧠 Active Recall