← 1. Exploring data
Descriptive statistics
Try this analysis →

Descriptive Statistics

Summarize the center, spread, and shape of a distribution with numbers and pictures.

Mean and medianStandard deviation and IQRSkewness and kurtosisOutliers and missing values

$40$60$80$100$350Mean $100Median $60Mode $50Order amounts of 7 customers

Suppose you are looking at last month's order data for an online store. The result shows that the average order amount for 1,000 customers is $100. Is this number alone enough to understand how much customers usually spend?

In reality, most customers may spend $40–$60 while a few customers pay several hundred dollars. In that case, the average order amount is $100, but what a typical customer spends may be lower than that.

You also need to check how much order amounts differ from customer to customer, whether orders are concentrated in a particular price range, and whether there are unusually large orders.

A method for summarizing the overall features of data and understanding its distribution like this before analyzing it in earnest is called descriptive statistics. Descriptive statistics organize the center, spread, and shape of the distribution of data with numbers, tables, and graphs.

In this article we look at the main descriptive statistics and how they are calculated, a worked analysis example, interpreting the results table, handling outliers and missing values, and descriptive statistics by group.

SECTION 1

What are descriptive statistics?

Descriptive statistics are statistical methods for summarizing and organizing the features of collected data.

For example, instead of checking the order amounts of 1,000 customers one by one, you can quickly understand the main features of the data by computing the mean, median, standard deviation, minimum, maximum, and so on. Descriptive statistics look at data from three main perspectives.

CategoryMain questionTypical measures
Central tendencyAround which value are the data mostly gathered?Mean, median, mode
DispersionHow spread out are the data?Standard deviation, variance, range, interquartile range
Shape of the distributionWhat shape does the distribution take?Skewness, kurtosis, quantiles

The main purpose of descriptive statistics is to describe the observed data. So it is not a method for concluding that there is a significant difference in the population because there is a difference in means, or for claiming causation because two variables are related.

Questions like these may require separate inferential methods such as t-tests, analysis of variance, correlation analysis, and regression analysis.

SECTION 2

How do the mean, median, and mode differ?

Measures of central tendency show around which value the data are mostly gathered.

The best-known are the mean, median, and mode. For example, suppose the order amounts of 7 customers are as follows.

CustomerOrder amount
A$40
B$50
C$50
D$60
E$70
F$80
G$350
$40 $50 $50 $60 $70 $80 $350 $100 Mean $50 Mode 3 orders 3 orders $60 Median
Three measures of central tendency

Mean

The sum of all values divided by the number of observations.

x̄ = (Σ xi) ÷ n = 700 ÷ 7 = 100

The mean order amount is $100.

Median

The value in the middle when the data are sorted by size. In this example, the fourth value, $60, is the median.

Mode

The value that appears most often. $50 appears twice, so the mode is $50.

MeasureResult
Mean$100
Median$60
Mode$50

The three measures differ because the large order amount of $350 affected the mean. The mean has the advantage of reflecting every observation, but it is sensitive to extreme values. The median, on the other hand, is relatively less affected by extreme values, so it is useful for describing data whose distribution is skewed to one side.

SECTION 3

What are variance and standard deviation?

Even when two datasets have the same mean, how spread out their values are can differ.

For example, suppose the order amounts at two stores on one day are as follows.

OrderStore AStore B
1$90$20
2$96$60
3$100$100
4$104$140
5$110$180
Mean$100$100
Mean $100 Store A Store B SD about $7.62 about $63.25
Same mean, different spread

The average order amount at both stores is $100. But at store A, order amounts cluster around $100, while at store B they are spread widely from $20 to $180. The measures that express this difference in numbers are the variance and the standard deviation.

Variance

A value that summarizes how far each observation is from the mean by squaring those distances. The sample variance is computed as follows.

s² = Σ (xi − x̄)² ÷ (n − 1)

Standard deviation

The square root of the variance.

s = √(s²)

The sample standard deviations for the example above are as follows.

MeasureStore AStore B
Mean$100$100
Sample standard deviationabout $7.62about $63.25

Store B's standard deviation is much larger, which tells us its order amounts are more widely spread. Because the standard deviation uses the same units as the original data, it is often easier to interpret than the variance. However, it can be affected by extreme values, so for data with a heavily skewed distribution it is good to check the interquartile range as well.

SECTION 4

What are quartiles and the interquartile range?

Quartiles are measures used to divide data into four parts after sorting them from smallest to largest.

Typically you check the following three values.

The interquartile range (IQR) is Q3 minus Q1.

IQR = Q3 − Q1

For example, suppose the distribution of order amounts for an online store's customers is as follows.

MeasureOrder amount
Q1$44
Median (Q2)$70
Q3$116
IQR$72
Outlier zone Q144 Median70 Q3116 Upper fence224 0 40 80 120 160 200 240 280 Unit: $
Quartiles and the outlier threshold

The IQR is $116 minus $44, which is $72. This is the width of the range that contains the middle 50% of the data. Quartiles are relatively less affected by extreme values, so they are useful for distributions with a long right tail, such as order amounts.

However, the way quartiles are computed can differ slightly between statistical programs, so if exact reproduction is needed, it is good to check which quantile method was used.

SECTION 5

What do skewness and kurtosis show?

Descriptive statistics let you check not only the center and spread of the data but also the shape of the distribution.

The main measures are skewness and kurtosis.

Skewness

Skewness indicates in which direction a distribution is skewed.

Skewness < 0Left tailSkewness ≈ 0Roughly symmetricSkewness > 0Right tail
Direction of skewness

Order amounts at an online store can have a right-skewed distribution, because a few customers sometimes pay very large amounts.

Kurtosis

Kurtosis is a measure related to the tail behavior of a distribution, especially how often extreme values appear. It is commonly computed as excess kurtosis relative to the normal distribution, and the excess kurtosis of a normal distribution is 0. However, it is not appropriate to interpret kurtosis simply as a measure of how sharp the peak of a distribution is.

Tails enlargedExcess kurtosis > 0Normal distribution = 0
Differences in kurtosis

Skewness and kurtosis can be affected by sample size and extreme values. So rather than judging normality from these two measures alone, it is good to also check a histogram, a Q-Q plot, and the like.

SECTION 6

Real-world case: analyzing online store order data

Suppose an online store examined 1,000 orders placed in the past month.

The researcher wants to know the overall features of order amounts and delivery times.

Analysis data

VariableTypeDescription
Order amountContinuousPayment amount per order, $
Delivery timeNumericNumber of days from order to completed delivery
Items per orderDiscreteNumber of items bought per order
Membership tierCategoricalStandard, Silver, Gold
Payment methodCategoricalCard, bank transfer, digital wallet

The research question is as follows.

"At what level are the store's customers' order amounts distributed, and what features do delivery time and the number of items per order show?"

For order amount and delivery time, you can compute the mean, median, standard deviation, minimum, maximum, and so on. The number of items per order is a numeric variable, so you can check its mean and distribution, but presenting the frequency of each item count as well makes it easier to understand. Membership tier and payment method are categorical variables, so it is common to compute frequencies and percentages.

SECTION 7

How do you interpret actual descriptive statistics results?

These are the descriptive statistics computed for the online store data above.

Descriptive statistics for the main numeric variables

VariableValid NMeanMedianStandard deviationMinimumMaximum
Order amount ($)1,000104.8076.0083.2010.00840.00
Delivery time (days)9803.43.01.8112
Items per order1,0002.62.01.7111

These values were not computed from real store data.

The mean order amount is $104.80 and the median is $76. Because the mean is higher than the median, relatively large order amounts may have pulled the mean up. However, the difference between the mean and the median alone cannot fully determine the shape of the distribution, so it is good to check a histogram or box plot as well.

The mean delivery time was 3.4 days and the median was 3 days. This shows that typical delivery takes about 3 days. Delivery time has 980 valid observations, meaning that delivery time information for 20 of the 1,000 orders is missing or unusable for analysis.

The number of items per order had a mean of 2.6 and a median of 2. So it can be summarized that customers bought about 2 to 3 items per order on average.

SECTION 8

How do you use histograms and box plots?

When interpreting descriptive statistics, it is good to look at graphs as well as numbers.

Histogram

A histogram shows the distribution of numeric data by interval. For example, you can divide order amounts into $20 or $40 intervals and show the number of orders in each interval. This lets you see whether orders are concentrated in a particular price range and whether the distribution has a long tail to the right or the left.

0100200300180 orders$0–40340 orders$40–80220 orders$80–120160 orders$120–200100 orders$200 or more
Distribution of order amounts by range

The last interval is an open interval with a different width, so this bar chart is not meant for precise histogram density comparisons.

Box plot

A box plot shows the median, quartiles, outlier candidates, and so on at a glance. It is good for checking whether there are some customers with high order amounts and over what range the middle 50% of the data are distributed. Also, when comparing order amounts by membership tier, placing box plots for each group side by side makes it easy to see differences in each group's median and distribution.

However, an outlier candidate shown on a graph does not mean the data point is actually an error.

SECTION 9

How do you identify and handle outliers?

An outlier is a value that is unusually large or small compared with the other observations.

For example, if most order amounts are $20–$200 but some orders exceed $800, you can flag them as outlier candidates. A typical detection method is the IQR rule. Values outside the following range are generally flagged as outlier candidates.

Below Q1 − 1.5 × IQR, above Q3 + 1.5 × IQR

For example, suppose Q1 is $44 and Q3 is $116. The IQR is $72, so the upper threshold is as follows.

116 + 1.5 × 72 = 224

So observations with order amounts above $224 can be flagged as outlier candidates.

But you should not delete a value just because it exceeds this threshold.

If a customer actually bought an expensive product, it may be a normal transaction.

So when you find outliers, first check whether they are entry errors, special transactions such as refunds or duplicate payments, or normal transactions that actually happened. If needed, you can report both the mean and the median, or run a sensitivity analysis that includes and excludes the extreme values.

SECTION 10

How are missing values handled in descriptive statistics?

Real data sometimes have missing information.

For example, there may be 1,000 orders in total but only 980 with a recorded delivery time. In this case, the mean and standard deviation of delivery time are generally computed from the 980 usable orders. So it is good to show not only the total N but also the valid N for each variable in the results table.

VariableTotal NValid NMissing NMissing rate
Order amount1,0001,00000%
Delivery time1,000980202%
Items per order1,0001,00000%

The missing rate is computed as follows.

Missing rate = (number of missing values ÷ total number of observations) × 100

The missing rate for delivery time is 20 ÷ 1,000 × 100 = 2%. However, a low missing rate does not necessarily mean the bias is small. For example, if delivery completion dates were more likely to be missing for orders that took a very long time to deliver, the actual mean delivery time could be underestimated.

So if an important variable has missing values, you should check why the missingness occurred and what pattern it follows.

SECTION 11

How do you analyze descriptive statistics by group?

Descriptive statistics can be used to summarize the whole dataset, but they can also be split by group for comparison.

For example, you can check how the mean and median order amount differ by membership tier.

Order amount by membership tier

Membership tierNumber of ordersMean order amountMedian
Standard500 orders$78$60
Silver300 orders$106$84
Gold200 orders$171$140
Standard500 ordersMedian$60Mean$78Silver300 ordersMedian$84Mean$106Gold200 ordersMedian$140Mean$171
Order amount by membership tier

Gold members had the highest mean order amount and standard members the lowest. These results show that the observed level of order amounts differs by membership tier. However, descriptive statistics alone cannot determine whether these differences are statistically significant in the population.

To test differences in mean order amount between membership tiers, you can consider analysis of variance or nonparametric tests, depending on the data structure and analysis assumptions. Also, a finding that higher-tier customers spend more should not lead to the conclusion that the membership tier itself increases order amounts.

SECTION 12

Cautions with descriptive statistics

Don't judge the data by the mean alone.

Even with the same mean, the median, standard deviation, and shape of the distribution can differ greatly. So for important numeric variables it is good to check several summary measures together.

Don't delete extreme values unconditionally.

If you find very large or small values, first check whether they are actual data errors. Removing observations just because they are outlier candidates can distort the results.

Check for missing values.

The number of valid observations can differ by variable, so distinguish the total sample size from the sample size actually used in each calculation.

Check the units of measurement.

The interpretation of the mean and standard deviation changes depending on whether order amounts are recorded in dollars or in thousands of dollars. Also, a mean or standard deviation may not be appropriate for categorical variables.

Don't interpret descriptive results as causal.

Even if differences between groups are observed, such as differences in order amount by membership tier, you can't conclude that the difference was caused by a particular factor.

Distinguish sample statistics from population parameters.

The sample mean and sample standard deviation describe the characteristics of the sample collected. To generalize these results to the whole population, you must consider how the sample was drawn and how representative it is.

SECTION 13

How do you report descriptive statistics?

When reporting descriptive statistics, it is good to present the sample, the units of measurement of the variables, the number of valid observations, the mean and standard deviation, the median, the minimum and maximum, and so on.

When the distribution is skewed or extreme values matter, you can also report the quartiles and the IQR. Using the online store example above, you could write it as follows.

Example report

To examine the characteristics of orders at an online store, descriptive statistics were computed for 1,000 orders placed in the past month. The mean order amount was $104.80 (SD = 83.20), and the median was $76. Because the mean was higher than the median, relatively large order amounts may have influenced the mean. The minimum order amount was $10 and the maximum was $840. Based on 980 valid observations, delivery time had a mean of 3.4 days (SD = 1.8) and a median of 3 days. The number of items per order had a mean of 2.6 (SD = 1.7) and a median of 2. These results show the overall level of order amounts and delivery times and the variation among observations.

In real research, you can also present histograms or box plots to show the shape of the distribution of important variables. And in studies comparing groups, it is good to summarize each group's sample size and mean and standard deviation, or median and IQR, in a table.

✓Wrap-up

Descriptive statistics are the first step in understanding data.

Descriptive statistics summarize the center, spread, and shape of the distribution of collected data with numbers, tables, and graphs.


The mean and median show the level around which the data mostly lie, and the standard deviation and interquartile range show how spread out the observations are. Skewness, kurtosis, histograms, box plots, and so on also let you check whether the distribution is skewed to one side and whether there are extreme values.

Also, checking missing values, outliers, and the number of valid observations for each variable lets you identify features of the data that need care in the statistical analyses that follow. However, descriptive statistics are a way of summarizing observed data, so they do not directly determine the statistical significance of group differences or causal relationships between variables.

So it is good to understand the features of the data from descriptive statistics first and then choose an inferential method that fits the research question.

KEY TAKEAWAY

The core of descriptive statistics is not reducing lots of data to a few numbers in itself, but understanding exactly what features of the actual data those numbers represent.