PROBABILITY & STATISTICS / 6. DESCRIPTIVE STATISTICS
Descriptive Statistics
Mean, Median, Mode, Variance, Std Dev — summarizing data
EXPLANATION
Descriptive statistics summarize and describe the key features of a dataset. Measures of Central Tendency: • Mean → arithmetic average. Sensitive to outliers • Median → middle value. Robust to outliers — use for skewed data • Mode → most frequent value. Used for categorical data Measures of Spread: • Range → max - min. Sensitive to outliers • Variance → E[(X-μ)²] — average squared deviation from mean • Std Dev → √Variance — same units as data, more interpretable • IQR → Q3-Q1, robust spread measure Sample vs Population: • Population variance: σ² = Σ(xᵢ-μ)² / N • Sample variance: s² = Σ(xᵢ-x̄)² / (N-1) ← Bessel's correction The (N-1) corrects for the bias from estimating μ with x̄ Skewness: measure of asymmetry • Positive skew: tail on right, mean > median • Negative skew: tail on left, mean < median Kurtosis: measure of tail heaviness vs Normal distribution
DIAGRAM
Symmetric data: Positively skewed:
mean=median=mode mean > median > mode
▓▓▓ ▓
▓▓▓▓▓ ▓▓▓
▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓
───────────── ────────────────────
mode=median=mean mode median mean
Variance vs Std Dev:
data = [2, 4, 4, 4, 5, 5, 7, 9]
mean = 5.0
deviations = [-3,-1,-1,-1,0,0,2,4]
squared = [9, 1, 1, 1, 0, 0, 4,16]
variance = mean(squared) = 4.0
std dev = √4.0 = 2.0CODE