Introduction
Descriptive statistics are numerical summaries that describe the main features of a dataset without attempting to draw conclusions beyond the data itself. Rather than listing every individual value, a descriptive statistic condenses a column of numbers into a single representative figure, such as an average, or into a small set of figures that together capture where most values sit and how spread out they are. This condensation is what makes it possible to describe thousands of rows in a sentence instead of reading every value one by one.
Cricket analogy: Instead of reading out every ball of a 300-ball innings, a commentator reports the batter's overall strike rate and average, condensing hundreds of deliveries into two descriptive numbers, the same summarizing role descriptive statistics play for a dataset's raw values.
Explanation
Descriptive statistics fall into two broad groups. Measures of central tendency, including the mean, median, and mode, describe where the 'center' or typical value of the data lies. Measures of spread, including the range, variance, and standard deviation, describe how much the values vary around that center. A dataset with a high average but also high spread behaves very differently from one with the same average but low spread, which is why a single measure of central tendency alone can be misleading without also reporting how spread out the data is.
Cricket analogy: Two batters can share the same career average of 40, but if one's scores swing wildly between 0 and 150 while the other stays consistently near 40, their spread differs completely, which is why a batting average alone, without the spread, misrepresents reliability.
Example
import pandas as pd
df = pd.read_csv('sales.csv')
# One-line summary: count, mean, std, min, quartiles, max
print(df['order_value'].describe())
mean_val = df['order_value'].mean()
median_val = df['order_value'].median()
print(f"mean={mean_val:.2f}, median={median_val:.2f}")Analysis
Calling a statistical summary function on a dataset's numerical column typically returns the count, mean, standard deviation, minimum, maximum, and several percentiles in one step. Comparing the mean to the median in that output is a quick way to notice skew: when the mean is noticeably higher than the median, a small number of unusually large values are pulling the average upward, and reporting the mean alone in that situation would overstate what a typical observation actually looks like.
Cricket analogy: When a team's average partnership runs well above the median partnership, it usually means one or two huge stands are pulling the average up, so quoting only the average overstates what a typical partnership in that innings actually looked like.
Key Takeaways
- Descriptive statistics summarize a dataset without drawing conclusions beyond the data itself.
- Measures of central tendency (mean, median, mode) describe a typical value; measures of spread (range, variance, standard deviation) describe how varied the data is.
- The same average can hide very different amounts of spread, so central tendency and spread should be reported together.
- A mean noticeably higher than the median signals that a few large values are skewing the average upward.
- Summary functions typically return count, mean, standard deviation, min, max, and percentiles in one call.
Practice what you learned
1. What do descriptive statistics do?
2. Which of the following is a measure of spread rather than central tendency?
3. What does it usually indicate when a dataset's mean is noticeably higher than its median?
4. Why can two datasets with the same mean behave very differently?
Was this page helpful?
You May Also Like
What Is a Dataset
An introduction to what a dataset is, how observations and variables form rows and columns, and how structured, semi-structured, and unstructured data differ.
Mean, Median, Mode
A comparison of the mean, median, and mode as measures of central tendency, and why the mean is more sensitive to outliers than the other two.
Standard Deviation
How standard deviation measures the average distance of values from the mean, and why it matters for comparing consistency between groups.