Descriptive statistics
Descriptive statistics built from the ground up: genesis (Graunt, Quetelet, Galton, Pearson), types of variables, measures of location (the mean as a balance point, median, mode) with an analysis of outliers, measures of variability (variance, standard deviation, coefficient of variation), quantiles and the box plot, skewness and kurtosis, the correlation coefficient, standardisation, and multivariate data in ℝⁿ. Every concept and every example with its own figure.
Descriptive statistics is the art of summarising data: replacing thousands of numbers with a few quantities that capture their location, spread, and shape. It is the starting point of every econometric analysis — before building a model, we must know the data. This chapter builds the apparatus of descriptive statistics from its genesis, through measures of location and variability, up to the description of multivariate data in the space $\mathbb{R}^n$. Every concept and every example is given its own figure.
The genesis of descriptive statistics
Statistics was born of the need to govern a state — the very name derives from the Latin status. In 1662 the London merchant John Graunt published an analysis of the “bills of mortality,” tabulating the numbers of deaths by cause and by season; it was the first attempt to extract regularities from raw numerical data. In the nineteenth century the Belgian scholar Adolphe Quetelet introduced the notion of the average man (l’homme moyen), applying the mean to describe human characteristics and making the mean the central concept of social statistics. Toward the end of the nineteenth century Francis Galton and Karl Pearson built the apparatus of correlation and regression, giving descriptive statistics its modern form — and opening the road to econometrics. We begin with the distinction that precedes all computation: the types of data.
Types of variables
The choice of measure depends on the type of data we work with.
| Type | Example | Meaningful measures |
|---|---|---|
| Nominal | sex, region | mode, frequency |
| Ordinal | rating (1–5), satisfaction level | median, quantiles |
| Quantitative (interval, ratio) | GDP, income, price | mean, standard deviation, correlation |
In econometrics we work mainly with quantitative variables, for which the full statistical apparatus is available. The first step in describing them is usually a histogram — a chart showing how often the values fall into successive intervals.
Measures of location
Measures of location indicate the “centre” of the data — the typical value around which the observations cluster.
The arithmetic mean
The arithmetic mean of a set $x_1,\dots,x_n$ is
$$ \bar{x}=\frac{1}{n}\sum_{i=1}^{n}x_i=\frac{x_1+x_2+\dots+x_n}{n}. $$It takes every observation into account and is the point about which the sum of deviations is zero: $\sum_i(x_i-\bar{x})=0$.
The vanishing of the sum of deviations has a vivid physical interpretation: the mean is the balance point of the data. If the observations were weights placed on a weightless beam, the beam would balance exactly at the point $\bar{x}$.
Median and mode: resistance to outliers
A weakness of the mean is its sensitivity to outliers. The median — the middle value after ordering the data — is resistant to them, and the mode is the most frequent value. Consider the earnings of five people (in thousands): $3.0,\ 3.2,\ 3.5,\ 4.0,\ 20.0$. The mean is
$$ \bar{x}=\frac{3.0+3.2+3.5+4.0+20.0}{5}=6.74, $$while the median is $3.5$. The mean, inflated by a single high salary, poorly describes the “typical” employee — the median is fairer here.
When the distribution is asymmetric, the three measures of location diverge: the mode lies at the peak, the median at the middle of the mass, and the mean is dragged toward the long tail.
Measures of variability
Location alone is not enough — two sets with the same mean can differ drastically in spread.
Variance and standard deviation
The sample variance is the mean squared deviation from the mean:
$$ s^2=\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar{x})^2, $$and the standard deviation is its square root $s=\sqrt{s^2}$. Dividing by $n-1$ (rather than $n$) gives an unbiased estimator of the population variance — the details are explained in the chapter on variance and deviation.
The variance begins with the deviations $x_i-\bar{x}$ — the distances of each observation from the mean. So that positive and negative deviations do not cancel, we square them and then average.
The standard deviation is expressed in the same units as the data, so it is easy to interpret: for $\bar{x}=30$k and $s=5$k, most observations fall in the range $25$–$35$k.
The coefficient of variation
To compare the variability of quantities expressed in different units or on different scales, we use the coefficient of variation — the standard deviation relative to the mean:
$$ CV=\frac{s}{\bar{x}}\cdot 100\%. $$It lets us state that, for example, apartment prices (in hundreds of thousands) and bread prices (in single units) have comparable relative variability, despite incomparable units.
Quantiles and the box plot
Quantiles divide ordered data into equal parts. The most important are the quartiles: $Q_1$ (25th percentile), $Q_2$ (median), and $Q_3$ (75th percentile). The difference $IQR=Q_3-Q_1$ — the interquartile range — covers the middle 50% of the observations and is a measure of spread resistant to outliers.
The box plot summarises these quantities in a single figure, making it an excellent tool for comparing distributions.
The shape of a distribution: skewness and kurtosis
After location and spread, the third feature of a distribution is its shape, described by higher-order moments.
Skewness
Skewness measures the asymmetry of a distribution and is based on the third power of the deviations:
$$ \gamma_1=\frac{\tfrac{1}{n}\sum(x_i-\bar{x})^3}{s^3}. $$A positive value means a long tail on the right (right skew), negative means on the left, and zero means symmetry. Income data are typically strongly right-skewed: a few very wealthy people form a long tail.
Kurtosis
Kurtosis measures the “heaviness of the tails” and the peakedness relative to the normal distribution, based on the fourth power of the deviations:
$$ \gamma_2=\frac{\tfrac{1}{n}\sum(x_i-\bar{x})^4}{s^4}-3. $$A positive value ($\gamma_2\gt 0$, a leptokurtic distribution) means a sharper peak and heavier tails — more extreme events, which is of key importance in financial risk analysis.
The correlation coefficient
When we observe pairs of quantities, we are interested in whether they vary together. The Pearson correlation coefficient measures the strength and direction of a linear relationship:
$$ r=\frac{\sum_{i=1}^{n}(x_i-\bar{x})(y_i-\bar{y})}{(n-1)\,s_x s_y}\in[-1,1]. $$A value $r=1$ means a perfect increasing relationship, $r=-1$ a decreasing one, and $r=0$ no linear relationship. We develop the full theory of correlation in a separate chapter; here we merely note its role in describing data.
Correlation is not causation.
A high correlation between two variables does not prove that one influences the other. Both may depend on a common third variable (a confounder) or co-occur by chance. Distinguishing association from causation is the central problem of econometrics.
Standardisation
To compare observations from different distributions or expressed in different units, we transform them to a common scale.
Standardisation is the transformation
$$ z_i=\frac{x_i-\bar{x}}{s}, $$which shifts the mean to zero and scales the standard deviation to one. A value $z=2$ means “two standard deviations above the mean,” regardless of the original units.
Standardisation is indispensable when comparing variables of different units or applying scale-sensitive methods (regularised regression, principal component analysis). The $z$-score is also a bridge to the normal distribution.
Multivariate data and the space $\mathbb{R}^n$
In econometrics we rarely describe a single variable. Usually each observation is a vector of many features at once — income, age, education, region. A set of $n$ observations described by $p$ features is a cloud of $n$ points in the space $\mathbb{R}^p$.
Describing a cloud in $\mathbb{R}^p$ and the fourth dimension.
For many features the means form a mean vector, and the variances and correlations a covariance matrix (see linear algebra). Geometrically the mean vector indicates the centre of the cloud, and the covariance matrix describes its shape and orientation — the directions of greatest spread are its eigenvectors. When there are four or more features, the cloud cannot be drawn, but the same quantities describe it completely. A four-dimensional cloud can be viewed “layer by layer” — by projecting it onto successive pairs or triples of features — and this is exactly how, projection by projection, multivariate data are analysed in practice.
Application — case study: the wage distribution
Descriptive statistics best reveals its value on wage data, which are typically strongly right-skewed. According to Polish official statistics (GUS), the average gross monthly wage is markedly higher than the median — because a small group of very high salaries inflates the mean. Take, for illustration: mean $\bar{x}\approx 8000$, median $\tilde{x}\approx 6600$, standard deviation $s\approx 4000$.
From these numbers we read the wage structure:
- median $\lt$ mean confirms right skew ($\gamma_1\gt 0$): the “typical” worker earns less than the mean suggests;
- the coefficient of variation $CV=\tfrac{s}{\bar{x}}=\tfrac{4000}{8000}=50\%$ indicates large wage dispersion;
- the median is the fairer description of a “typical” wage — which is why official releases report both measures.
This case study illustrates a practical rule: the choice of measure must fit the shape of the data. For skewed distributions — and incomes, property prices, and firm revenues are such — the mean can mislead, and a true picture emerges only from the median, quantiles, and skewness measures together.
Further reading
Polish textbooks
- M. Sobczyk, Statystyka, PWN, Warsaw.
- GUS — Structure of wages by occupation, Statistics Poland.
World classics
- D. Freedman, R. Pisani, R. Purves, Statistics, W. W. Norton, 2007.
- A. Aczel, J. Sounderpandian, Complete Business Statistics, McGraw-Hill.
Articles
- C. Gini, Measurement of Inequality of Incomes, The Economic Journal 31 (1921), 124–126. DOI: 10.2307/2223319.
Summary
Descriptive statistics summarises data with three kinds of measures: location (mean, median, mode), variability (variance, standard deviation, coefficient of variation), and shape (skewness, kurtosis). Quantiles and the box plot give a robust picture of the distribution, correlation describes the relationships between variables, and standardisation brings them to a common scale. The generalisation to multivariate data in $\mathbb{R}^p$ leads directly to variance, correlation, and econometric models.
- A. Aczel, Complete Business Statistics
- Khan Academy — Statistics & Probability
- R:
mean(x),median(x),var(x),sd(x),quantile(x),summary(x) - Python:
np.mean,np.median,np.std(x, ddof=1),np.percentile,pandas.describe()