描述統計:平均值、離散程度與誠實的摘要
僅在記錄預測與觀察證據之後允許求助。
前置要求
完成第 27 天數學模組;具備基礎算術能力以及第 01 天的預測—回顧流程。
學習目標
在小資料集上手工計算並解釋平均值、中位數、母體/樣本變異數與標準差,並說明兩個平均值相同的資料集仍可能不同。
操作指引
統計首先從把資料壓縮為少數幾個數字開始。平均值刻畫中心位置;變異數與標準差度量圍繞中心的離散程度。母體變異數把偏差平方和除以 n;樣本變異數除以 n−1(貝塞爾校正),以避免系統性低估離散程度。先用紙筆預測每個數值,再執行 python3 核對——核對必須發生在預測記錄之後。
自主實作與記錄
對於 data = [2, 4, 4, 4, 5, 5, 7, 9]:計算平均值、中位數、偏差平方和、母體變異數、母體標準差與樣本變異數(除數為 n−1)。然後對 data2 = [4, 5, 5, 5, 5, 5, 5, 6] 計算平均值與母體標準差,說明什麼保持不變、什麼發生變化。
平均值 = 40/8 = 5。偏差為 −3, −1, −1, −1, 0, 0, 2, 4;平方得 9, 1, 1, 1, 0, 0, 4, 16,合計 32。母體變異數除以 8,樣本變異數除以 7。data2 的平均值同樣是 5,但偏差平方和為 2。
平均值 = 5.0,中位數 = (4+5)/2 = 4.5,Σ(x−μ)² = 32,母體變異數 = 32/8 = 4.0,母體標準差 = 2.0;樣本變異數 = 32/7 ≈ 4.571(樣本標準差 ≈ 2.138)。data2 平均值同為 5.0,但 SS = 2,母體變異數 0.25,標準差 0.5——僅靠平均值會掩蓋離散程度的差異。
手算結果與 Python 核對全部一致,並能說明平均值相等並不意味著分布相同。
權威來源資源與權利證明
NIST/SEMATECH e-Handbook of Statistical Methods
對應章節 / 時間戳: Section 1.3.5 (Quantitative Techniques): measures of location and scale
驗證版本與日期: Current online edition (Verified: 2026-10-30)
Primary engineering reference for descriptive statistics, exploratory data analysis, and uncertainty quantification with worked formulas.
High-school arithmetic; no calculus required for the descriptive sections.
Every formula used in the lesson (mean, variance, standard error) is reproduced as original explanation; all exercises run fully offline.
對比候選資源與選型分析 (2)
Undergraduate statistics text with a stronger narrative bridge from probability to inference; retained as the second linked source for inferential framing.
Strong interactive visualizations of probability and sampling, but a browser-only interactive format is a weaker fit for an offline-capable 480-minute ledger.
OpenIntro Statistics (4th edition)
對應章節 / 時間戳: Chapters 1-2: data basics and summary statistics
驗證版本與日期: 4th edition, 2019 (Verified: 2026-10-30)
Rigorous open textbook treatment of sampling distributions, standard error, and the difference between an inferential claim and an anecdotal observation.
Introductory algebra; comfort reading mathematical notation.
All required definitions and worked computations are given in the lesson itself; the book is a further-reading link.
對比候選資源與選型分析 (2)
Engineering handbook strength for formulas, tables, and measurement practice; OpenIntro supplies the probability-to-inference narrative.
Strong probability course, but lectures and the print book are under full copyright and the syllabus spans a semester rather than a single study block.