Descriptive Statistics, visually explained.
Five interactive lessons. Build custom datasets, trace mean/median deviations, plot standard deviation bands, and curve class grades live. Turn abstract parameters into intuitive visual structures.
Introduction to Data & Descriptive Statistics
Before summarizing numbers, we must understand what those numbers represent. Data is any collection of information, observations, or measurements. Broadly, data falls into two categories:
(e.g., Eye Colors, Blood Types)
(e.g., Shirt Sizes: S/M/L/XL)
(e.g., Dice Rolls: 1–6)
(e.g., Height, Temperature)
Descriptive Statistics focuses on summarizing, organizing, and visualizing these datasets (e.g., finding the average score on a test). Conversely, Inferential Statistics uses data from a small sample to make predictions or draw conclusions about a larger population.
Demo 1 · Interactive Dataset Builder
Active StateBuild a custom dataset below. Type a number to add it, or select a preset to see calculations update.
Classifying Datasets
Measures of Central Tendency
Measures of central tendency point us toward the "center" or middle region of a dataset. The three most common summaries are:
1. Mean (Arithmetic Average): Sum of all values divided by the number of values. Represented by x̄ (sample mean) or μ (population mean):
2. Median: The middle value when values are sorted in ascending order. If the dataset size is even, the median is the average of the two middle values. Median is robust; it resists the pulling power of outliers.
3. Mode: The value that appears most frequently in the dataset. A dataset can have one mode, multiple modes (bimodal/multimodal), or no mode at all if all values occur with equal frequency.
Interactive Central Tendency Step-by-Step Calculator
Learn VisualizedSelect a measure below to see a step-by-step visual calculation using the sample dataset: [2, 3, 3, 5, 7].
Demo 2 · Central Tendency visualizer
Dynamic PlotThe dots represent the active dataset values. Watch how the Mean (cyan), Median (purple, dashed), and Mode (magenta, dotted) lines position themselves.
Choosing Centers
Measures of Dispersion
Two datasets can have the exact same mean but look completely different. Dispersion measures how spread out or varied the data points are. The key metrics are:
1. Range: The difference between the highest and lowest value:
2. Variance (s²): The average of the squared differences from the mean. Divisor is n - 1 for sample variance to correct statistical bias (Bessel's correction):
3. Standard Deviation (s): The square root of variance. Standard deviation returns the dispersion metric back to the original unit of the data, making it directly comparable:
Demo 3 · Standard Deviation Shading
SD BandsThe shaded blue band represents one standard deviation (±1σ) from the mean. Observe what portion of the dataset falls inside.
Why Standard Deviation?
Real-world Case: Outliers & Skewness
An outlier is an observation point that is distant from other observations in a dataset. Outliers can occur due to measurement error or actual extreme variability (like super-wealthy individuals).
Outliers create skewness — a lack of symmetry in distributions. When a distribution has a long tail trailing off to the right, it is right-skewed (positively skewed). Here, the mean is pulled right, resulting in Mean > Median.
Demo 4 · Salary Inequality & Skewness
SimulationToggle the outlier check below to insert a CEO earning $420k into a small town community dataset.
Skewness Effects
Real-world Case: Grading Curve & Normal Distribution
The Normal Distribution (or Bell Curve) is a perfectly symmetrical curve centered around the mean. Many real-world variables, like human heights or exam scores, closely approximate a normal shape.
To compare different raw scores on a standard scale, we calculate their Z-score. A Z-score tells us exactly how many standard deviations a score lies from the mean:
Grade Curving: Educators use normal distributions to curve scores. By assuming grades follow a normal curve, they assign letters based on standard deviation limits: A ($\ge +1.2\sigma$), B ($+0.4\sigma$ to $+1.2\sigma$), C ($-0.4\sigma$ to $+0.4\sigma$), D ($-1.2\sigma$ to $-0.4\sigma$), and F ($< -1.2\sigma$).
Demo 5 · Grade curving simulator
Bell CurveAdjust the target parameters. The dots represent student raw scores shifted dynamically to fit the target normal curve.