Repository navigation
2.? Variation
Statistics begins with variation.
If every object had the same height, every instrument gave the same reading, every patient responded identically, and every process repeated without fluctuation, then statistics would be unnecessary.
There would be no spread, no deviation, no uncertainty, no need to summarize, and no need to infer.
But the world does not behave like that.
Leaves differ.
Markets fluctuate.
Measurements drift.
Students answer differently.
Temperatures rise and fall.
Machines vibrate with small irregularities.
People rarely repeat themselves exactly.
Statistics exists because sameness is never perfect.
It is easy to think of variation as noise, impurity, or defect.
Sometimes it is.
But often variation is not a flaw in the world.
It is one of its most basic properties.
Variation may reflect:
- natural diversity
- measurement error
- process instability
- hidden causes
- interaction between many influences
- the simple fact that reality is dynamic
So the statistical task is not to eliminate variation in thought, but to understand its structure.
⚜️ Variation is not the enemy of knowledge.
It is the condition under which knowledge becomes subtle.
Not all variation is of the same kind.
A useful first distinction is between:
The world itself produces real differences.
Examples:
- people have different heights
- lifetimes differ
- rainfall varies by day
- animals in a population are not identical
The object may remain stable while our instruments or procedures fluctuate.
Examples:
- scale imprecision
- sensor noise
- rounding
- sampling imperfections
The mechanism itself changes through time or circumstance.
Examples:
- machine wear
- changing environmental conditions
- human fatigue
- market regime shifts
Even if a population has stable structure, different samples from it will differ.
This is one of the deepest sources of statistical uncertainty.
A sample is never the population itself.
It is a partial encounter with it.
Once we recognize variation, the next question is:
how much variation is there?
This is the problem of spread.
A dataset with tight clustering behaves differently from one with broad dispersion, even if both have the same center.
For example, these two groups can have the same mean and yet be profoundly different:
- one concentrated near the center
- the other widely scattered
So center alone is never enough.
Statistics needs a language for how far values tend to move away from one another and from their reference point.
The simplest idea is deviation.
A deviation is just a difference between an observed value and a reference value, often the mean:
This is conceptually beautiful.
It turns a raw number into a relational number.
Not just:
what is the value?
but:
how far is it from what counts as central?
This is a very statistical move.
One stops seeing values as isolated and starts seeing them by their position within a structure.
Variance is one of the great inventions of statistics.
It formalizes average squared deviation from the mean.
For a population, one writes:
For a sample, the usual formula is:
At first, squaring may seem artificial.
But it does three important things:
- it removes sign cancellation
- it gives more weight to large departures
- it makes many later mathematical structures elegant and stable
⚜️ Variance is not intuitive because of squaring.
It is powerful because of it.
Standard deviation is simply the square root of variance:
Why do this?
Because variance lives in squared units.
If a variable is measured in meters, variance is in square meters, which is mathematically fine but harder to interpret directly.
Standard deviation returns us to the original scale.
That makes it more human.
Variance is often more mathematically convenient.
Standard deviation is often more interpretively natural.
This is a recurring theme in statistics:
- one quantity may be better for theory
- another may be better for thought
Variance and standard deviation are central, but they are not alone.
The difference between maximum and minimum.
Very intuitive, but unstable and highly sensitive to extremes.
The spread of the middle half of the data.
More robust against outliers.
Uses absolute distance instead of squared distance.
Often more intuitive, though less algebraically elegant.
Each measure highlights a different aspect of variation.
So the question is not:
which one is universally best?
but:
which one preserves the structure that matters here?
Two datasets can have the same variance and still behave very differently.
One may be symmetric.
Another may be skewed.
One may have light tails.
Another may have extreme outliers.
So variation alone is not the full story.
It tells us how much things move, but not yet how that movement is organized.
That organization will later become the subject of distributions.
Variation is the doorway to almost every major concept in statistics:
- uncertainty depends on variation
- distributions describe structured variation
- models try to separate explained variation from unexplained variation
- inference asks what variation in a sample says about a wider process
This is why variation is not a side topic.
It is the pulse of the field.
A statistician is someone who has learned not to be frightened by difference.
Not to demand that the world repeat itself perfectly, but to ask how its imperfections themselves are patterned.
Variation is where statistics starts because variation is where reality stops pretending to be simple.
Legend:
- 🔰 Start here
- 🏵️ Important Insight
- ⚙️ Technical and applications
- 💻 Some Code
- ⚜️ Advanced Topics
- 00.1 What Is Data?
-
00.2 Three Models of Reality (planned)
- 00.2.1 The Linguistic
- 00.2.2 The Symbolic
- 00.3.3 The Mathematical
- 00.3 Maps and Reality
- 00.4 Aside: Hossack, data as structure
- 00.5 Aside: Chomsky, data as evidence
- 01.1 🔰 Sets and Logic (planned)
- 01.2 Sample Space
- 01.3 Randomness and Pattern
- 01.4 Outcomes and Events
- 01.5 Finite and Infinite Sample Spaces
- 02.1 🔰 Functions (planned)
- 02.2 Types Are Alphabets
- 02.3 Random Variables: X : Ω → 𝒳 (planned)
- 02.4 Measurement Scales
- 02.5 Numerics
- 03.1 🔰 Fractions and Proportions (planned)
- 03.2 Randomness vs Uncertainty
- 03.3 Probability: Events, Conditioning, Bayes
- 03.4 Bayes' Theorem, Step by Step
- 03.5 Expected Value and Variance (planned)
- 03.6 Bernoulli (ES)
- 03.7 Discrete Uniform (ES)
- 03.8 🧗 Kolmogorov: Ω, 𝒜, ℙ
- 04.1 🔰 Powers and Logarithms (planned)
- 04.2 Rarity
- 04.3 Information Theory (Shannon)
- 04.4 Entropy: Three Views
- 05.1 🔰 Sums and Averages (planned)
- 05.2 Data, Measured
- 05.3 Sampling (ES)
- 05.4 Population and Sample (ES)
- 05.5 Types of Sampling (ES)
- 05.6 Choosing Summaries & Visuals
- 05.7 Visualization
- 05.8 Plots
- 06.1 What Is Statistics?
- 06.2 🔰 Curves and Area (planned)
- 06.3 Statistical Thinking
- 06.4 Variation
- 06.5 Uncertainty
- 06.6 Parameters vs Estimators (ES)
- 06.7 Distributions
- 06.8 Statistical Modeling
- 06.9 Statistical Methods
- 07.1 Data Storage: Databases (stub)
- 07.2 ER Diagrams
- 07.3 Chen Diagrams
- 07.4 SQL (planned)
- 07.5 Formal Languages and Regular Expressions (planned)
- 07.6 Reproducibility (planned)
08 · μ(x) — Fuzzy - When data is flexible
- 08.1 Fuzzy Logic (planned)
- 08.2 Fuzzy Numbers (planned)
- 08.3 Possibility vs Probability (planned)
09 · x(t) — Signals and systems - Where patterns live
- 09.1 Signals (stub)
- 09.2 Sampling and Aliasing (planned)
- 09.3 Convolution (planned)
- 09.4 Frequency (planned)
- 10.1 🔰 Vectors and Matrices (planned)
- 10.2 Mathematical Modelling (planned)
- 11.1 🔰 Derivatives (planned)
- 11.2 Convex Optimisation (planned)
- 12.1 Supervised Learning (planned)
- 12.2 Data in Language Models
- 13.1 Cause and Effect (planned)
- 13.2 Capstone Guide (planned)