σ
Evolta · AI Fundamentals StatLab
← Evolta home
AI Fundamentals · Topic 1

Mean, Median, Mode & Spread

Every AI model starts by understanding data — and that starts with five numbers. Play through 7 quick levels (including two hands-on variance & spread labs) to master the building blocks of statistics that power machine learning, then take on the Boss Round.

μ
μMean

The balancing point of the data — add it all up, divide by how many.

MMedian

Sort the values low to high — the one in the middle is the median.

Mode

Whichever value shows up most often — the tallest stack wins.

μ
σ²Variance

How far values stray from μ — squared, so far-off points count much more.

μ tight = small σ spread = big σ
σStd. Dev.

How far a typical point sits from the mean — watch it breathe: tight = small σ, spread out = big σ.

Why this is Topic 1

Every AI model starts with a pile of numbers. These five ideas are how you make sense of that pile — before a computer can learn anything from it.

μ = mean M = median = mode σ² = variance σ = standard deviation
The big picture
Data
Summed up (μ, M, mode, σ, σ²)
Fed to a model
AI learns
The whole story, step by step
1

Mean μ

μ

The mean is the "balancing point" of a group of numbers — add every value up, then divide by how many there are. Mean Squared Error, one of the most common ways to score a model, is literally the mean of its squared mistakes.

In real life: your report card GPA is a mean — every grade gets added up and divided by how many classes you took.

2

Median M

Sort the values from smallest to largest, and the median is the one sitting right in the middle. When a few extreme values would throw the mean off — incomes, wait times, anything with a long tail — the median stays steady.

In real life: the "median household income" you hear about on the news is the middle income — so one billionaire down the street can't drag the number up.

M μ

One super-high value (faded bar) drags the mean μ to the right — but the median M barely moves. That gap is how you spot skewed, outlier-heavy data.

3

Mode

The mode is whichever value shows up most often. It's the simplest guess a model can make — "just predict the most common answer" — and it's exactly the baseline every smarter model has to beat.

In real life: the most popular pizza topping in your class is the mode — whichever one gets picked more than any other.

4

Variance σ²

μ

Variance measures how far values wander from the mean, then squares those distances so the far-off ones count much more. That squaring is deliberate — it's why a single outlier can dominate the number. A tight cluster of values has low variance; a scattered, spread-out group has high variance.

In real life: if everyone on a team scores close to the same on a test, variance is low. If scores are all over the place — some acing it, some failing — variance is high.

5

Standard deviation σ

μ tight = small σ spread = big σ

Standard deviation is just the square root of variance, brought back down to the same units as the original data — so instead of an abstract "squared" number, you get a distance you can actually picture. It's the standard way to describe how spread out something is.

In real life: a weather forecast saying "usually between 68–72°F" is basically giving you the mean plus or minus one standard deviation.

6

Normalization (x−μ)/σ

/ 100 / 20 σ from average

You can't fairly compare a 90-out-of-100 test with an 18-out-of-20 quiz just by looking at the raw numbers. Normalization subtracts the average and divides by the standard deviation, turning any score into "how many steps above or below typical" — so scores from completely different scales become directly comparable.

In real life: it's how colleges compare SAT and ACT scores side by side, or how a running app compares your pace to everyone else's — different raw scales, same "steps from average."

7

Where AI uses this

Image generators like Stable Diffusion add random noise to a picture on purpose, following a "variance schedule," then train a network to reverse that process step by step. Chatbots use this too: a setting called "temperature" controls how spread out their word choices are — low temperature keeps answers predictable, high temperature lets them wander further, exactly like a bigger standard deviation.

In real life: when an image generator turns a blurry cloud of random noise into a photo, it's reversing this exact process, one small denoising step at a time.

8

Why this comes first

σ μ M

Regression, classification, neural networks, transformers — none of the topics that come later make sense without first being fluent in "typical" and "spread." That's why every one of them is built right on top of these five ideas.

In real life: it's like learning to add before you learn algebra — every AI topic after this one assumes you already know "typical" and "spread."

How variance & standard deviation are actually calculated
Start with your numbers
Find the average (μ)
Measure each number's distance from μ
2 Square each distance, then average → variance σ²
Square root it → standard deviation σ

Think of it like darts on a target: variance is how far off your throws land, squared so bad misses count extra. Standard deviation brings that back down to a distance you can actually picture — a small σ means tightly grouped darts, a big σ means scattered ones.

The formulas, at a glance
μ
Mean
Σx / n
M
Median
sort, take middle
Mode
most frequent value
σ²
Variance
Σ(x−μ)² / n
σ
Std. Dev.
√σ²
Level 1 · Mean

🍬 Candy Weigh-In

These candies were weighed in grams. Find the mean (average) weight.

Level 2 · Median

📏 Median Sort

Click the tiles from smallest to largest to sort the data.

Level 3 · Mode

🎯 Mode Spotter

Players rolled a die several times. Which number came up most often (the mode)?

Level 4 · Variance

📊 Spread Detective

Here's a dataset with mean μ = . Each bar shows how far a value is from the mean. Which value below is the correct variance σ²?

Variance = average of the squared distances from the mean.
Level 5 · Standard Deviation

⚖️ Spread Showdown

Both datasets below have the same mean. Which one has the larger standard deviation (more spread out)?

Level 6 · Standard Deviation

🎚️ SD Slider Lab

These 5 points sit around the mean μ. Drag the slider to spread them out or pull them in, and watch the standard deviation react live. Match the target to lock it in.

Current σ ≈ 0 🎯 Target: 00)
Level 7 · Variance

🏗️ Variance Tower Builder

Mean μ = . Tap Square it on each bar and watch how much taller the bigger distances grow once squared — that's why variance is so sensitive to outliers.

Sum of squares so far: 0
Boss Round · Full Stack Challenge

🚀 Put it all together

One dataset. Five answers. Solve them in order for bonus points.

Game Complete

Nice work! 🎉

⭐⭐⭐

Final score: 0 / 0

Cheat Sheet

Formulas to remember

μ
Mean
Σx / n
M
Median
sort, take middle
Mode
most frequent value
σ²
Variance
Σ(x−μ)² / n
σ
Std. Dev.
√σ²