Quiz 2
Registry Synced

stats1-week3

573 words
3 min read

Reading compass

Now · Week map

Numerical data asks for center, spread, and five-number summary — then reading boxplots.

Week map

Sort data → mean vs median → quartiles Q1, Q3 → IQR → five-number summary → boxplot → outlier sensitivity.

Center notation

  • Mean xˉ\bar{x} → sum divided by count → xˉ=xin\bar{x} = \frac{\sum x_i}{n}.
  • Median → middle of sorted list → resists extremes.
  • nn odd → median is middle value.
  • nn even → median average of two middle values.
Mini-data: [3, 7, 8, 12], n=4n=4, sorted same. Median = (7+8)/2=7.5(7+8)/2 = 7.5. Mean = (3+7+8+12)/4=7.5(3+7+8+12)/4 = 7.5 here coincidentally.

Spread notation

  • Range → max − min → sensitive to outliers.
  • Q1 → median of lower half (convention varies — follow problem).
  • Q3 → median of upper half.
  • IQRQ3Q1Q3 - Q1 → middle 50% spread.
  • Five-number summary → min, Q1, median, Q3, max.

Boxplot read

  • Box from Q1 to Q3.
  • Line inside box at median.
  • Whiskers to min/max or to fences (course rule).
  • Outliers sometimes plotted as points beyond fences.

Mean vs median (when to use)

SituationPrefer
symmetric, no outliersmean
skewed or outliersmedian
ordinal dataneither mean (usually)
Mini-example: salaries [30k, 32k, 35k, 200k]. Mean pulled high; median ~32.5k more typical.

Pattern families

Easy — Mean and median

  • Compute on small list.
  • Sort first for median.
  • Even vs odd nn.

Medium — Five-number summary

  • Split halves for Q1, Q3 with stated convention.
  • IQR from quartiles.
  • Compare two datasets via medians and IQRs.

Hard — Outlier effect

  • Add extreme point; track mean shift vs median.
  • Which measure changes more for one outlier?
  • Interpret boxplot: skew direction from median position in box.

Worked mini-examples

Example 1 — Median odd.
[4, 1, 9, 2, 7] → sort [1,2,4,7,9] → median 4.
Example 2 — Mean.
[10, 20, 30] → mean 20.
Example 3 — Five-number (simple convention).
[2, 4, 5, 7, 9, 11, 15] (n=7n=7).
  • min 2, max 15, median 7 (middle)
  • Lower half [2,4,5] Q1=4; upper [9,11,15] Q3=11
  • IQR = 11 − 4 = 7
(If problem uses inclusive/exclusive split differently, follow their rule — note it.)
Example 4 — Outlier.
[5,6,6,7,7,8,100]. Mean ≈ 18.9, median 7 — median better center tag.
Example 5 — Boxplot skew.
Median near Q1 with long whisker to max → right skew suggested.

Traps

  • Median without sorting.
  • Q1/Q3 by wrong half split (include median in both halves vs exclude).
  • Mean on ordinal codes.
  • Range as only spread measure when outliers present.
  • Confusing IQR with full range.

Diagnostic (try yourself)

  1. Find mean and median of [8, 3, 11, 3, 9].
  2. Sorted data [1, 3, 4, 6, 8, 10, 12]. Report min, max, median, Q1, Q3, IQR (use lower/upper half excluding overall median for quartiles).
  3. Two datasets same median 50. A has IQR 10, B has IQR 40. Which is more spread in the middle 50%?
  4. Add outlier 500 to [10, 12, 11, 13, 12]. Which changes more: mean or median?
  5. A boxplot shows median line near the top of the box and longer whisker below. Describe skew direction.
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.