Standardization, Normal Model, and the Golden Framework

Course Progress and Core Statistical Frameworks

  • Milestone: Completion of approximately 25% (Q1 mark) of fundamental statistical concepts.
  • Distinction between Individual Numbers and Sample Means:
    • Center & Spread Metrics for Individual Numbers:
    • Measurement Unit: Individual numeric values.
    • Key Descriptive Tools: Frequency counts, mode, median, quantile, quartile, mean, and standard deviation.
    • Center & Spread Metrics for Sample Means (Sampling Distributions):
    • Measurement Unit: Means calculated from samples.
    • Key Analytical Tools: Mean of sample means, sampling variance, Mean Squared Error (MSE), and bias.

The Golden Framework for Measuring Distance from a Target

  • Fundamental Metric Framework:
    • Any statistical measure evaluating dispersion, variability, or prediction accuracy follows a structured formula calculating how far observed values deviate from a designated target.
    • General Mathematical Structure:
    • Let nn represent the total number of observations.
    • Let ValueiValue_i represent the ii-th observed data point.
    • Let TargetiTarget_i represent the benchmark or reference value for the ii-th observation.
    • Deviation is calculated as: (Valuei−Targeti)(Value_i - Target_i).
    • Squared Deviation is calculated as: (Valuei−Targeti)2(Value_i - Target_i)^2
    • Generalized Formula:     Something=1n∑i=1n(Valuei−Targeti)2\text{Something} = \frac{1}{n}\sum_{i=1}^{n}(Value_i - Target_i)^2
    • Standard Calculation Steps:
    1. Calculate individual deviations: (Valuei−Targeti)(Value_i - Target_i)
    2. Square each deviation: (Valuei−Targeti)2(Value_i - Target_i)^2
    3. Sum all squared deviations: ∑(Valuei−Targeti)2\sum (Value_i - Target_i)^2
    4. Divide by total observations or degrees of freedom (e.g., 1n\frac{1}{n} or 1n−1\frac{1}{n-1})
    5. Take the square root (\sqrt{\quad}) to restore original measurement units (if calculating standard deviation or RMSE).

Population Variance and Standard Deviation

  • Parameter Definitions:
    • Value: Individual population observations (xix_i)
    • Target: Population mean (μ\mu)
  • Mathematical Formula:   Population Variance (σ2)=1N∑i=1N(xi−μ)2\text{Population Variance } (\sigma^2) = \frac{1}{N}\sum_{i=1}^{N}(x_i - \mu)^2
  • Step-by-Step Worked Example (N=5N = 5):
    • Data Table:
    • Row 1: x1=3x_1 = 3, Target =μ=5=\mu = 5, Deviation =3−5=−2= 3 - 5 = -2, Squared Deviation =(−2)2=4= (-2)^2 = 4
    • Row 2: x2=5x_2 = 5, Target =μ=5=\mu = 5, Deviation =5−5=0= 5 - 5 = 0, Squared Deviation =02=0= 0^2 = 0
    • Row 3: x3=8x_3 = 8, Target =μ=5=\mu = 5, Deviation =8−5=3= 8 - 5 = 3, Squared Deviation =32=9= 3^2 = 9
    • Row 4: x4=2x_4 = 2, Target =μ=5=\mu = 5, Deviation =2−5=−3= 2 - 5 = -3, Squared Deviation =(−3)2=9= (-3)^2 = 9
    • Row 5: x5=7x_5 = 7, Target =μ=5=\mu = 5, Deviation =7−5=2= 7 - 5 = 2, Squared Deviation =22=4= 2^2 = 4
    • Computations:
    • Sum of Squared Deviations (∑\sum): 4+0+9+9+4=264 + 0 + 9 + 9 + 4 = 26
    • Divide by NN (1/N1/N): 265=5.2\frac{26}{5} = 5.2 (Population Variance, σ2=5.2\sigma^2 = 5.2
    • Population Standard Deviation (σ\sigma): 5.2≈2.28\sqrt{5.2} \approx 2.28

Sample Variance and Standard Deviation

  • Parameter Definitions:
    • Value: Individual sample observations (xix_i)
    • Target: Sample mean (xˉ\bar{x}
  • Mathematical Formula:   Sample Variance (s2)=1n−1∑i=1n(xi−xˉ)2\text{Sample Variance } (s^2) = \frac{1}{n-1}\sum_{i=1}^{n}(x_i - \bar{x})^2
  • Step-by-Step Worked Example (n=5n = 5, xˉ=5\bar{x} = 5
    • Data Table:
    • Row 1: x1=3x_1 = 3, Target =5= 5, Deviation =−2= -2, Squared Deviation =4= 4
    • Row 2: x2=5x_2 = 5, Target =5= 5, Deviation =0= 0, Squared Deviation =0= 0
    • Row 3: x3=8x_3 = 8, Target =5= 5, Deviation =3= 3, Squared Deviation =9= 9
    • Row 4: x4=2x_4 = 2, Target =5= 5, Deviation =−3= -3, Squared Deviation =9= 9
    • Row 5: x5=7x_5 = 7, Target =5= 5, Deviation =2= 2, Squared Deviation =4= 4
    • Computations:
    • Sum of Squared Deviations (∑\sum): 2626
    • Divide by n−1n-1 (1/(n−1)=1/41/(n-1) = 1/4Sample Variance (s2)=264=6.5\text{Sample Variance } (s^2) = \frac{26}{4} = 6.5
    • Sample Standard Deviation (ss): 6.5≈2.55\sqrt{6.5} \approx 2.55

Mean Squared Error for Sampling Distributions

  • Parameter Definitions:
    • Value: Individual sample means (xˉi\bar{x}_i
    • Target: True population mean (μ\mu
  • Mathematical Formula:   Mean Squared Error (MSE)=1n∑i=1n(xˉi−μ)2\text{Mean Squared Error (MSE)} = \frac{1}{n}\sum_{i=1}^{n}(\bar{x}_i - \mu)^2
  • Step-by-Step Worked Example (n=5n = 5, μ=5\mu = 5
    • Data Table:
    • Row 1: xˉ1=3\bar{x}_1 = 3, Target =5= 5, Error =−2= -2, Squared Error =4= 4
    • Row 2: xˉ2=5\bar{x}_2 = 5, Target =5= 5, Error =0= 0, Squared Error =0= 0
    • Row 3: xˉ3=8\bar{x}_3 = 8, Target =5= 5, Error =3= 3, Squared Error =9= 9
    • Row 4: xˉ4=2\bar{x}_4 = 2, Target =5= 5, Error =−3= -3, Squared Error =9= 9
    • Row 5: xˉ5=7\bar{x}_5 = 7, Target =5= 5, Error =2= 2, Squared Error =4= 4
    • Computations:
    • Sum of Squared Errors (∑\sum): 2626
    • Divide by nn (1/n1/n): 265=5.2\frac{26}{5} = 5.2
    • MSE=5.2\text{MSE} = 5.2

Decomposition of Mean Squared Error (MSE = Bias² + Variance)

  • Parameter Definitions for Sampling Variance:
    • Value: Individual sample means (xˉi\bar{x}_i
    • Target: Mean of all sample means (xˉmean\bar{x}_{\text{mean}}
  • Sampling Variance Formula:   Sampling Variance=1n∑i=1n(xˉi−xˉmean)2\text{Sampling Variance} = \frac{1}{n}\sum_{i=1}^{n}(\bar{x}_i - \bar{x}_{\text{mean}})^2
  • Mathematical Identity of MSE Decomposition:   MSE=Bias2+Variance\text{MSE} = \text{Bias}^2 + \text{Variance}1n∑i=1n(xˉi−μ)2=(xˉmean−μ)2+1n∑i=1n(xˉi−xˉmean)2\frac{1}{n}\sum_{i=1}^{n}(\bar{x}_i - \mu)^2 = (\bar{x}_{\text{mean}} - \mu)^2 + \frac{1}{n}\sum_{i=1}^{n}(\bar{x}_i - \bar{x}_{\text{mean}})^2
  • Key Relationship:
    • Bias is defined as: Bias=xˉmean−μ\text{Bias} = \bar{x}_{\text{mean}} - \mu
    • If Bias2=0\text{Bias}^2 = 0, then Bias=0\text{Bias} = 0, which occurs precisely when xˉmean=μ\bar{x}_{\text{mean}} = \mu.
    • When an estimator is unbiased (Bias=0\text{Bias} = 0MSE=Variance\text{MSE} = \text{Variance}

Mean Squared Error in Regression Analysis (Prediction Error)

  • Parameter Definitions:
    • Value: Observed actual outcome (yiy_i
    • Target: Model predicted outcome (y^i\hat{y}_i
  • Mathematical Formula:   Mean Squared Error (MSE)=1n∑i=1n(yi−y^i)2\text{Mean Squared Error (MSE)} = \frac{1}{n}\sum_{i=1}^{n}(y_i - \hat{y}_i)^2
  • Step-by-Step Worked Example (n=5n = 5
    • Data Table:
    • Row 1: Actual y1=3y_1 = 3, Predicted y^1=3\hat{y}_1 = 3, Error =0= 0, Squared Error =0= 0
    • Row 2: Actual y2=5y_2 = 5, Predicted y^2=6\hat{y}_2 = 6, Error =−1= -1, Squared Error =1= 1
    • Row 3: Actual y3=8y_3 = 8, Predicted y^3=7\hat{y}_3 = 7, Error =1= 1, Squared Error =1= 1
    • Row 4: Actual y4=2y_4 = 2, Predicted y^4=1\hat{y}_4 = 1, Error =1= 1, Squared Error =1= 1
    • Row 5: Actual y5=7y_5 = 7, Predicted y^5=9\hat{y}_5 = 9, Error =−2= -2, Squared Error =4= 4
    • Computations:
    • Sum of Squared Errors (∑\sum): 0+1+1+1+4=70 + 1 + 1 + 1 + 4 = 7
    • Divide by nn (1/n1/n): MSE=75=1.4\text{MSE} = \frac{7}{5} = 1.4
    • Root Mean Squared Error (RMSE): RMSE=1.4≈1.18\text{RMSE} = \sqrt{1.4} \approx 1.18

Dispersion Metrics: "The Smaller, The Better"

  • Fundamental Evaluation Rule:
    • Across statistical modeling and predictive evaluation, lower values of dispersion/error indicate superior precision and stability.
    • Key Metrics Subject to Minimization:
    • Variance
    • Standard Deviation (SD)
    • Mean Squared Error (MSE)
    • Prediction Error

Target variance comparison

  • High Variance vs. Low Variance:
    • High Variance: Data points spread far from the central target value, creating significant uncertainty and volatility.
    • Low Variance: Data points cluster tightly around the central target value, ensuring high consistency and predictability.

Recapping Center and Spread

  • Mean:
    • Acts as the baseline target or center reference point for a dataset.
  • Standard Deviation (SD):
    • Quantifies how much individual data values typically fluctuate or "wiggle" around the central mean.
    • "Standardizing" process aggregates disparate individual deviations into a single summary number.
  • Concrete Example (Test Performance):
    • Dataset Parameters: Mean =70= 70, Standard Deviation =10= 10 (where 10 units equal one full spread).
    • Test Score of 80: Located exactly one spread(+1 SD)\text{one spread} (+1\text{ SD}) above the mean.
    • Test Score of 60: Located exactly one spread(−1 SD)\text{one spread} (-1\text{ SD}) below the mean.

Standardization and the Z-Score

  • Definition:
    • A z-score measures the precise distance between an individual observation and the distribution mean, expressed in units of standard deviation.
  • Directional Rules:
    • Positive z-score (z>0z > 0
    • Value lies above the mean.
    • Negative z-score (z<0z < 0
    • Value lies below the mean.
    • Near-zero z-score (z≈0z \approx 0
    • Value is very close to the mean.
  • Mathematical Formula:   z=Value−MeanStandard Deviation=DeviationSDz = \frac{\text{Value} - \text{Mean}}{\text{Standard Deviation}} = \frac{\text{Deviation}}{\text{SD}}
  • Worked Calculation Examples (Given Mean =70= 70, SD =10= 10
    • Score =90= 90z=90−7010=+2("2 spreads above standard mean")z = \frac{90 - 70}{10} = +2 \quad (\text{"2 spreads above standard mean"})
    • Score =60= 60z=60−7010=−1("1 spread below standard mean")z = \frac{60 - 70}{10} = -1 \quad (\text{"1 spread below standard mean"})

Empirical Rule and Normal Model Interpretation

Z-score standard deviation concentric circles diagram

  • Evaluating Extremity via Absolute Z-Scores (∣z∣|z|
    • Threshold ∣z∣>2|z| > 2 signifies values located more than two standard spreads away from the mean, commonly flagged as unusual observations.
  • Empirical Rule Breakdown under Bell-Shaped (Normal) Distributions:
    • Within 1 Standard Deviation (∣z∣≤1|z| \le 1
    • Contains approximately 68% of all values in the dataset (Most values).
    • Within 2 Standard Deviations (1<∣z∣≤21 < |z| \le 2
    • Captures an additional 27% of values, bringing the cumulative total to approximately 95% of all observations (Some values).
    • Within 3 Standard Deviations (2<∣z∣≤32 < |z| \le 3
    • Captures an additional 4% of values, bringing the cumulative total to approximately 99.7% of all observations (Very few values).
    • Beyond 3 Standard Deviations (∣z∣>3|z| > 3
    • Contains approximately 0.3% of values, representing extremely rare or outlying observations.
  • Expected Occurrence Frequency in Normal Models:
    • Observations where ∣z∣>1|z| > 1 occur roughly 32% of the time.
    • Observations where ∣z∣>2|z| > 2 occur roughly 5% of the time (explaining why ±2 SD\pm 2\text{ SD} serves as a standard statistical threshold for anomaly detection).
    • Observations where ∣z∣>3|z| > 3 occur roughly 0.3% of the time.

Practical Application: The River Crossing Analogy

  • Scenario Setup:

    • A traveler attempts to cross a river on foot.
    • Traveler Height: 5 feet (Drowning hazard occurs if depth d>5 ftd > 5\,ft
    • Average River Depth: Mean μ=3 ft\mu = 3\,ft
    • Governing Equation:     z=d−meanSDz = \frac{d - \text{mean}}{\text{SD}}
    • Analytical Problem: Relying solely on the mean depth (3 ft3\,ft) creates a false sense of security if variability is neglected.
  • Survival Case (Small Spread / Safe Crossing):

River crossing safe case with small standard deviation

  • Conditions: Standard Deviation SD=0.5 ft\text{SD} = 0.5\,ft (river depth is uniform across the channel).

  • Danger Threshold Computation (d=5 ftd = 5\,ftz=5−30.5=+4z = \frac{5 - 3}{0.5} = +4

  • Statistical Interpretation:

    • A depth of 5 feet corresponds to 4 standard deviations above the mean (z=+4z = +4

    • Under a normal bell curve, reaching a z-score of +4+4 is extremely rare.

    • Virtually all areas across the river are shallower than 5 feet, making the crossing safe.

    • Drowning Risk Case (Large Spread / Risky Crossing):

River crossing risky case with large standard deviation

  • Conditions: Standard Deviation SD=2.0 ft\text{SD} = 2.0\,ft (river depth varies wildly, featuring shallow spots around 1 ft1\,ft and deep drop-offs near 10 ft10\,ft
  • Danger Threshold Computation (d=5 ftd = 5\,ftz=5−32=+1z = \frac{5 - 3}{2} = +1
  • Statistical Interpretation:
    • A depth of 5 feet corresponds to only 1 standard deviation above the mean (z=+1z = +1
    • In a normally distributed riverbed, 16% of spots are deeper than 5 feet (z>+1z > +1
    • Additionally, 16% of spots are shallower than 1 foot (z<−1z < -1
    • Combined, 32% of total river locations lie outside the range of 1 to 5 feet.
    • Practical Consequence: The likelihood of encountering a deep spot (z>1z > 1) and submerging is 16% (about 1 in every 6 steps). Evaluating the mean depth (3 ft3\,ft) without factoring in spread creates a life-threatening mistake.

Interactive Learning Tools and Activities

  • In-Class Activity Playground Modules:
    • SD Playground: Interactive standard deviation exploration.
    • Variance Playground: Visualizing squared deviations.
    • MSE Playground - Sample Means vs Population Mean: Simulating sampling distributions and mean squared errors.
    • MSE Playground - Bias & Variance: Investigating accuracy vs. dispersion.
    • MSE Playground - Bias & Variance Trade-Off: Analyzing balance in statistical model design.
    • MSE Playground - Measuring Prediction Error: Evaluating model residual errors.