What would you like to know about descriptive statistics?
Here is a full summary of descriptive statistics.
Descriptive Statistics
Descriptive statistics summarize and describe the main features of a dataset. They do not allow you to draw conclusions beyond the data or make predictions - that is the job of inferential statistics. They simply organize and present data in a meaningful way.
1. Types of Data
Before applying any statistic, know your data type:
Type
Description
Example
Nominal
Categories with no order
Blood type, gender
Ordinal
Categories with order, unequal intervals
Pain scale (1-10), education level
Interval
Equal intervals, no true zero
Temperature (°C), IQ score
Ratio
Equal intervals + true zero
Height, weight, income
2. Measures of Central Tendency
These describe the "center" or "typical value" of a dataset.
Mean (Arithmetic Average)
Formula: x̄ = Σx / n
Sum all values, divide by the count.
Best for: Interval/ratio data with no extreme outliers.
Weakness: Sensitive to outliers. One extreme value pulls the mean significantly.
Median
The middle value when data is sorted in order.
If n is even, the median = average of the two middle values.
Best for: Skewed distributions or ordinal data.
Strength: Not affected by outliers. (e.g., median house price is more meaningful than mean)
Mode
The most frequently occurring value.
A dataset can be unimodal, bimodal, or multimodal.
Best for: Nominal data (e.g., most common blood type).
Can be used for any data type.
Relationship Between Mean, Median, Mode
Distribution
Relationship
Symmetric (normal)
Mean = Median = Mode
Positively skewed (right)
Mode < Median < Mean
Negatively skewed (left)
Mean < Median < Mode
3. Measures of Dispersion (Spread)
These describe how spread out the data values are.
Range
Formula: Range = Max - Min
Simple but highly sensitive to outliers.
Interquartile Range (IQR)
Formula: IQR = Q3 - Q1
Covers the middle 50% of data.
Robust to outliers. Used in box plots.
Q1 = 25th percentile, Q3 = 75th percentile
Variance (s² or σ²)
The average of the squared deviations from the mean.
Sample variance: s² = Σ(x - x̄)² / (n - 1)
Population variance: σ² = Σ(x - μ)² / N
Note: Dividing by (n-1) for sample variance corrects for bias (Bessel's correction).
Standard Deviation (SD)
Formula: s = √s² (square root of variance)
Returns to the original units of the data, making it more interpretable than variance.
Empirical Rule (Normal Distribution):
~68% of data falls within ±1 SD of the mean
~95% within ±2 SD
~99.7% within ±3 SD
Coefficient of Variation (CV)
Formula: CV = (s / x̄) × 100%
Expresses SD as a percentage of the mean.
Useful for comparing spread across datasets with different units or scales.
4. Measures of Shape
Skewness
Describes the asymmetry of the distribution.
Positive (right) skew: Long tail to the right. Mean > Median.
Negative (left) skew: Long tail to the left. Mean < Median.
Skewness = 0 → perfectly symmetric.
Kurtosis
Describes the "peakedness" or tail weight of the distribution.
This forms the basis of the box plot (box-and-whisker plot).
6. Data Visualization Methods
Chart Type
Best Used For
Frequency table / histogram
Distribution of continuous data
Bar chart
Comparing categories (nominal/ordinal)
Box plot
Comparing spread and detecting outliers
Pie chart
Proportions of a whole (use sparingly)
Scatter plot
Relationship between two continuous variables
Stem-and-leaf plot
Small datasets - shows distribution and raw values
Identifying Outliers
Using IQR method:
Lower fence: Q1 - 1.5 × IQR
Upper fence: Q3 + 1.5 × IQR
Any value outside these fences is considered an outlier.
7. Quick Reference - Which Statistic to Use?
Goal
Use
Describe center of symmetric data
Mean
Describe center of skewed data
Median
Describe most common category
Mode
Describe spread, same units as data
Standard Deviation
Compare spread across different scales
Coefficient of Variation
Detect outliers
IQR method
Summarize a distribution
Five-number summary + box plot
Example
Dataset: 5, 7, 7, 9, 10, 12, 15
Statistic
Value
Mean
(5+7+7+9+10+12+15) / 7 = 9.29
Median
9 (middle value)
Mode
7 (appears twice)
Range
15 - 5 = 10
Q1
7
Q3
12
IQR
12 - 7 = 5
Variance (sample)
11.57
SD
3.40
That covers the full scope of descriptive statistics. Let me know if you want worked examples, practice problems, or a deeper dive into any specific section.
A short summary
Descriptive Statistics - Short Summary
Descriptive statistics summarize and describe a dataset without making predictions.
Central Tendency - where the data centers:
Mean - arithmetic average; sensitive to outliers
Median - middle value; better for skewed data
Mode - most frequent value
Spread/Dispersion - how spread out the data is:
Range - max minus min
IQR - middle 50% of data (Q3 - Q1); outlier-resistant
Standard Deviation - average distance from the mean; most commonly used
Shape:
Skewness - how asymmetric the distribution is (left or right tail)
Kurtosis - how peaked or flat the distribution is
Visualization: histograms, box plots, and bar charts are the standard tools for displaying descriptive data.
Key rule of thumb: Use the mean + SD for symmetric data, and the median + IQR for skewed data or when outliers are present.
Show me examples with real datasets
I'll compute descriptive statistics on two well-known real datasets using Python.