Understanding Descriptive Statistics
What each figure in the statistics calculator means, and how to use it to describe your data.
Central tendency: mean, median and mode
Central tendency measures describe a typical value.
- Mean: the sum divided by the count, (x₁ + x₂ + … + xₙ) ÷ n. Best for roughly symmetric data without strong outliers.
- Median: the middle value once the data is sorted, or the mean of the two middle values. Best for skewed data or data with outliers.
- Mode: the most frequent value. There may be none, one or several. Best for categories or the most common value.
For growth rates use the geometric mean; for rates such as speeds, the harmonic mean. The mean, median and mode comparison goes into more detail.
Spread: range, standard deviation and variance
- Range: the largest value minus the smallest. Simple, but decided by the two most extreme values alone.
- Variance: the average squared distance from the mean. The sample variance divides the sum of squared distances by n − 1, the population variance by n.
- Standard deviation: the square root of the variance, back in the units of the data. Roughly, the typical distance of a value from the mean.
- Coefficient of variation: the standard deviation as a percentage of the mean, for comparing spread between data on different scales. It only makes sense for data measured from a true zero, such as weights or prices.
Two data sets can share a mean and still differ completely in how far their values stray from it. The standard deviation measures that.
For data that follows a normal (bell-shaped) distribution, about 68% of values lie within one standard deviation of the mean and about 95% within two; the standard deviation calculator draws the rule.
Shape: skewness and kurtosis
Skewness
Skewness measures how lopsided the data is.
- Negative: a longer tail to the left, and the mean is usually below the median.
- Near zero: roughly symmetric.
- Positive: a longer tail to the right. Most values are small with a few large ones, and the mean is usually above the median. Incomes are a typical example.
A common rule of thumb treats skewness between −0.5 and 0.5 as roughly symmetric, between 0.5 and 1 (in either direction) as moderately skewed, and beyond 1 as highly skewed. For skewed data the median is usually the better summary, and a log transformation can make right-skewed data more symmetric.
Kurtosis
Kurtosis measures how heavy the tails are: how often values far from the mean occur. The calculator shows excess kurtosis, which is 0 for a normal distribution. Above 0 means heavier tails and more extreme values than a normal distribution; below 0 means lighter tails. Within ±0.5 the calculator reads it as close to normal. It is about the tails, not about how pointed the peak looks.
Heavier tails: Laplace, excess kurtosis 3
Beyond ±3 SD: 1.44% (normal: 0.27%)
Lighter tails: uniform, excess kurtosis −1.2
Beyond ±3 SD: none (normal: 0.27%)
The calculator uses the sample formulas for both, the same as Excel’s SKEW and KURT. Both are unreliable for small samples, so treat them as rough guides.
Common shapes and which average suits them
-
Bell-shaped. Values cluster in the middle and thin out evenly: use the mean.
-
Right-skewed. A long tail of large values, like incomes, pulls the mean up: use the median.
-
Left-skewed. A long tail of small values, like scores on an easy test: use the median.
-
Two peaks. Two groups mixed together: describe each group, not one average.
-
Flat. Values spread evenly, with no peak: the mean and median agree.
Quartiles and the interquartile range
Quartiles split the sorted data into four parts, each holding a quarter of the values.
- Q1, the lower quartile: a quarter of the values lie below it.
- Q2, the median: half lie below it.
- Q3, the upper quartile: three quarters lie below it.
The interquartile range (IQR = Q3 − Q1) is the spread of the middle half of the data. Unlike the range, extreme values do not affect it. It is used to find outliers and is the box in a box plot.
How to find quartiles
- Sort the values from lowest to highest.
- Find the median (Q2).
- Q1 is the median of the lower half; Q3 is the median of the upper half. With an odd count, leave the median itself out of both halves.
This is the method most textbooks and the TI-84 use, and the one the calculator uses. Other methods exist, including the interpolation in Excel’s QUARTILE.INC, and can give different answers, sometimes very different for small or skewed data sets.
Example: test scores
Fifteen students scored 65, 70, 72, 75, 76, 78, 79, 80, 82, 85, 88, 90, 91, 92 and 95.
- Q2, the median, is the 8th score: 80.
- Q1 is the median of the seven scores below it: 75.
- Q3 is the median of the seven scores above it: 90.
- The IQR is 90 − 75 = 15: the middle half of the class scored within a 15-point band.
Percentiles
A percentile is the value below which a given percentage of the data falls. The 25th percentile is Q1, the 50th is the median, and the 75th is Q3. Scoring at the 80th percentile in a test means scoring higher than about 80% of those who took it.
Percentiles are widely used where position within a group matters: children’s growth charts compare height and weight with other children of the same age, and financial risk measures such as value at risk are percentiles of possible losses.
Outliers
Outliers are values far from the rest. They may be mistakes, unusual but genuine cases, or the most interesting part of the data.
Tukey’s fences
- Find Q1, Q3 and IQR = Q3 − Q1.
- Lower fence = Q1 − 1.5 × IQR; upper fence = Q3 + 1.5 × IQR.
- Values outside the fences are outliers. Using 3 × IQR instead finds only extreme outliers.
What outliers do
Outliers pull the mean towards them and inflate the standard deviation, while the median and IQR hardly move. They can also distort correlations and pull a regression line towards them.
What to do with them
- Check first: is it a typing or measurement error, or a real but unusual value?
- Correct or remove values that are errors, and note what you removed and why.
- Keep genuine values, and prefer measures that resist them, such as the median and IQR.
- When it matters, report results with and without the outliers.
Confidence interval for the mean
A sample’s mean is an estimate of the mean of the whole population it came from. A 95% confidence interval, mean ± t × s ÷ √n, is a range of plausible values for that population mean. The 95% describes the method: 95% of intervals made this way contain the population mean, and any one interval may miss it. It does not mean there is a 95% chance that the population mean lies in this particular interval.
A larger sample pins the mean down more closely: the interval shrinks roughly with the square root of the sample size, so 4 times the values give about half the width.
Worked example: house prices
Nine homes in a neighbourhood sold for $200k, $210k, $220k, $225k, $230k, $240k, $250k, $450k and $950k.
- Mean: $2,975k ÷ 9 ≈ $330.6k, pulled up by the two most expensive homes.
- Median: $230k, a better description of a typical home here.
- Quartiles: Q1 = $215k and Q3 = $350k, so IQR = $135k and the upper fence is $350k + 1.5 × $135k = $552.5k.
- Outlier: only the $950k home. The $450k home is unusual but lies inside the fence.
- Skewness is strongly positive: a long tail to the right.
Open this example in the statistics calculator to see every figure.