Introduction and summary of descriptive statistics and visualization
From raw data to statistical tables, charts, and descriptive measures: central tendency, spread, and distribution shape.
From a pile of data to meaningful statistical descriptions
Where are the values located?
Mean, median, mode, quantiles.
Question answered: what is the typical level, and where are different positions in the data?
How spread out are they?
Range, interquartile range (IQR), variance, standard deviation, coefficient of variation.
Question answered: how much do the data vary around the center?
What is the shape?
Skewness and excess kurtosis; examine a histogram too.
Question answered: is the distribution asymmetric, and does it have heavier tails?
Identify the data type, then choose tables and charts
Categorical data: compare composition and counts
Frequency / relative frequency table: count observations in each category and calculate proportions.
Bar chart: compare counts across categories; bars are usually separated.
Pie chart: show the composition of a whole; avoid too many categories.
Numerical data: examine distributions and changes
Histogram: display frequency or frequency density over contiguous class intervals; adjacent bars touch. Use frequency density for unequal class widths.
Stem-and-leaf plot: display the distribution while retaining more of the original numerical information.
Line chart: examine successive changes over time.
Scatterplot: examine the pattern of association between two numerical variables.
| Question | First choice | Common pitfall |
|---|---|---|
| Compare student counts across several categories | Bar chart | Confusing a categorical bar chart with a histogram of continuous numerical values |
| Examine the score distribution of 40 students | Histogram / stem-and-leaf plot | Changing class widths may change the apparent shape |
| Changes in sales over 12 months in a region | Line chart | Reading a line connecting time points as a causal relationship |
| Do advertising expenditure and sales move in the same direction? | Scatterplot | An association pattern does not imply causality |
Descriptive measures: position, spread, and shape
| Aspect | Representative measures | Main interpretation | Special caution |
|---|---|---|---|
| Center and position | Arithmetic mean, median, mode, quartiles, geometric mean | Typical level and quantile positions; the geometric mean gives the average growth factor for multiplicative growth | The mean is sensitive to extreme values; grouped-data median and mode estimates usually use approximate interpolation |
| Spread | Range R, IQR, mean absolute deviation about the mean, variance, standard deviation, coefficient of variation (CV) | Absolute spread and spread relative to the mean | Sample variance uses denominator n−1; the use of CV is limited by the mean and the measurement scale |
| Distribution shape | Skewness, raw kurtosis, excess kurtosis | Direction and extent of asymmetry; the fourth central moment reflects the influence of extreme deviations | Normal-distribution raw kurtosis is 3 and excess kurtosis is 0; kurtosis is related to tail weight and cannot be interpreted solely as peak height |
Main formulas at a glance (not a substitute for each section's derivations)
Interpretation guide
Mean: the average level of a data set.
Median: the middle position after sorting.
Standard deviation: absolute variability around the mean.
Coefficient of variation: variability relative to the mean; for example, comparing the relative stability of production lines with different mean daily outputs.
Skewness: positive values usually indicate right skewness, negative values left skewness.
Excess kurtosis: the normal reference is 0; interpret it with graphs and the sample context.
Case study: why look beyond identical mean scores?
The following three sets of student scores all have a mean of 70 points. Switch data sets and compare the dot plots, quartiles, standard deviations, and skewness.
Observed-value plot (10 students)
66 · 67 · 68 · 69 · 70 · 70 · 71 · 72 · 73 · 74
Four aspects of the same data
- Mean
- 70
- Median
- 70
- Sample standard deviation
- 2.58
- Sample moment skewness*
- 0
Group A's scores are concentrated around 70 points, so the mean represents this group's general level fairly well.
*Sample moment skewness here uses m₃ / m₂^(3/2), where mᵣ = Σ(xᵢ−x̄)ʳ / n; it differs from the adjusted sample skewness formula used by some software. Q1/Q3 use the median-of-halves method: the medians of the lower and upper halves of the sample.
| Statistic | Current result | Question answered |
|---|---|---|
| Q1 / Q3 / IQR | Q1=68; Q3=72; IQR=4 | What interval contains the middle 50% of the data, and how wide is it? |
| Range R | 8 | How much do the highest and lowest scores differ? |
| Excess kurtosis* | -1.03 | What is the fourth-moment statistic? Interpret small-sample results cautiously. |
Class exercise: which measure should you use?
Question 1: two production lines have very different mean daily outputs. You want to compare their relative stability.
Question 2: a few very high incomes raise the mean. You want to describe residents' typical income level.
Question 3: a longer tail extends to the right. What sign does skewness usually have?