Descriptive statistics

Paste data, get mean, median, mode, standard deviation, quartiles and a box plot.

12 values read.

Mean
16.833333

Sum 202 ÷ 12

Median
15

The middle value

Mode
15

Most frequent value

Count
12

Spread

Standard deviation (sample)
8.332121

Divides by n − 1 — use for a sample

Standard deviation (population)
7.977399

Divides by n — use for the whole population

Variance (sample)
69.424242
Standard error of the mean
2.405276

sd ÷ √n

Range
32

9 to 41

Interquartile range
4.5

Q3 − Q1

Five-number summary

Q1 12.75med 15Q3 17.25
Minimum
9
Q1 (25th percentile)
12.75
Median (50th)
15
Q3 (75th percentile)
17.25
Maximum
41

Shape and outliers

Skewness
2.5203

Right-tailed — a few large values pull the mean up

Outliers (1.5 × IQR rule)
41

Outside 6 to 24

Mean vs median
1.8333

A gap between them signals skew

How it works

Three questions describe most datasets: where is the centre, how spread out is it, and is anything unusual? Mean and median answer the first, standard deviation and IQR the second, Tukey's fences the third.

Sample or population — the n vs n−1 question

If your numbers are the entire group you care about, divide by n. If they are a sample you are using to estimate a larger population, divide by n − 1. Dividing by n understates the true spread, because the sample mean sits closer to your own data than the real mean does; n − 1 (Bessel's correction) removes that bias. When in doubt, use the sample figure.

sample sd = √( Σ(x − x̄)² / (n − 1) ) population sd = √( Σ(x − μ)² / n )

Mean versus median

The mean uses every value, so a single extreme number moves it. The median only cares about order, so it does not. When the two differ substantially, the distribution is skewed — which is exactly why incomes are reported as medians and test scores as means.

Outliers are not errors

The 1.5 × IQR rule flags points unusually far from the middle half of the data. That is a prompt to investigate, not permission to delete. An outlier may be a typo, or it may be the most interesting observation you have.

Sources

Quartiles use linear interpolation between order statistics (R's type 7, NumPy's default), so results match those tools. Outlier detection uses Tukey's 1.5 × IQR fences; skewness is the adjusted Fisher–Pearson standardised moment coefficient, matching Excel's SKEW.