Deviation Squares, Tukey Boxplot & Bessel (n − 1) Simulator
Visualize variance as literal average square area alongside a 1.5×IQR boxplot, then simulate repeated samples to watch 1/(n−1) eliminate bias.
Measure consistency and risk with deviation squares, interquartile boxplots, and a live sampling simulator proving why sample variance divides by n − 1.
Six-Sigma process capability, sensor noise standard deviation, financial return volatility, and automated IQR outlier flagging.
Why do signed deviations always sum to zero—and why must sample variance divide by instead of to avoid underestimating ?
Because minimizes inside its own sample, deviations around are systematically smaller than around the true population mean by .
Dividing by degrees of freedom restores without bias, while quartiles and fences provide robust spread diagnostics.
Why can't we just average the signed distances (xᵢ − x̄) to measure spread—and why do textbooks insist on dividing sample variance by n − 1 instead of n?
Inspect literal geometric squares of side |xᵢ − x̄| above an aligned Tukey boxplot, then run the Bessel Bias Simulator to compare average n-divisor vs. (n−1)-divisor estimates across repeated small samples.
Sample mean x̄ hugs its own sample slightly closer than the true population μ, shrinking ∑(xᵢ − x̄)² by (n−1)/n on average. With descriptive summaries mastered, Module S.2 builds the probability laws behind random data.
An old statistics joke warns: never try to wade across a river whose average depth is 3 feet—it might be 1 foot at the edges and 12 feet in the middle! Center tells you where the middle sits; dispersion (spread) tells you how wildly individual points wander around that middle. Below, you can literally see variance as the average area of geometric squares built on each point's distance from , compare it to outlier-proof IQR boxplots, and run a live simulation proving why sample variance divides by n − 1 instead of n.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Averaging plain signed deviations gives zero every single time because positives cancel negatives. Squaring makes every area positive, stays smooth for calculus, and taking brings units right back from squared meters to meters!
When true is unknown, we plug in sample —which is fitted to minimize squared distance to its own sample! That shrinks the sum by (worth on average), leaving only . Dividing by restores exact unbiasedness!
Data: 2, 4, 6 ():
Pair Mean + Standard Deviation for roughly symmetric, outlier-free data. Pair Median + IQR () for skewed incomes, latencies, or datasets with extreme outliers beyond the Tukey fences.
While skewness () measures asymmetry, excess kurtosis measures tail heaviness relative to a Normal bell (). Positive warns of rare, extreme black-swan spikes!
Taking expectations gives . One degree of freedom is spent pinning , leaving independent deviation directions.
Subtle theorem: although is exactly unbiased for , its square root slightly underestimates in small samples by Jensen's inequality for concave .
On a clean Gaussian sample, Tukey fences mark roughly the outer tail without letting an existing wild outlier inflate and hide itself (“masking”).
Visualize variance as literal average square area alongside a 1.5×IQR boxplot, then simulate repeated samples to watch 1/(n−1) eliminate bias.
Each square has side |xᵢ − x̄| and area (xᵢ − x̄)². Variance s² averages these areas (dividing by n − 1); SD s is the Teal reference square's side.
True population is . Because sample mean hugs its own sample closer than true , dividing by systematically underestimates by factor !
At , dividing by loses 33% of true variance ().