Skip to main content
Descriptive statistics are numbers that summarize and describe the data you have, without inferring anything beyond it (Lane). Four groups of numbers are in common use: the mean, the median, the standard deviation with the variance, and quantiles.

What do the numbers of descriptive statistics tell you, and what are they for?

Take the hourly returns of BTCUSDT (bitcoin traded against USDT on Binance) from January 1, 2025 to August 14, 2026 as an example. An hourly return is the percentage change of the closing price from the previous hour, computed on 1-hour candles in UTC, which gives 14,184 values. The histogram below sorts the values into intervals 0.05% wide and counts the hours in each. It marks the mean, the median, the middle half of the data (Q1 to Q3) and the range of the mean ± 1 standard deviation.
Let x1,x2,…,xNx_1, x_2, \dots, x_N be the NN values, here N=14 184N = 14\,184 returns, ∑\sum the sum over all NN values, and x(1)≤x(2)≤⋯≤x(N)x_{(1)} \le x_{(2)} \le \dots \le x_{(N)} the same values sorted from smallest to largest. For quantiles, pp is a proportion between 0 and 1, and jj and gg are the integer part and the fractional part of p(N−1)+1p(N - 1) + 1, so QpQ_p interpolates between two adjacent values. The table gives the formula and meaning of each number. On the 14,184 returns, the mean is −0.0017%, the median +0.0008%, the standard deviation 0.4725% (variance 0.2233 %²), Q1 −0.1983%, Q3 +0.2022% and the IQR 0.4004 percentage points. Try dropping the 96 hours in which the price moved by more than 2%, the hours outside the frame of the chart. They are only 0.7% of the hours but make up 22% of the sum of squared deviations, so the standard deviation falls by more than 11% (to 0.4183%) while the IQR falls by less than 1% (to 0.3974%). The mean changes to −0.0004%, and the median edges up to +0.0010%. Divide the variance by N−1N - 1 when the data is a sample from a larger set, since dividing by NN tends to give a result lower than the variance of the whole set (Lane); divide by NN when the data is the whole set. NumPy divides by NN by default and pandas by N−1N - 1, but with 14,184 values both give 0.4725%.

References

Sources: Lane, Online Statistics Education (Rice University), the NIST/SEMATECH e-Handbook sections 1.3.5.1 and 1.3.5.6, and the documentation of NumPy and pandas. Prices come from Binance’s public API.

Law of large numbers

How close the average of many repetitions gets to the expected value, seen through coin tosses.

Expected value

The average profit or loss per bet, computed from a strategy’s win probability and its average win and loss.
Last modified on October 16, 2026