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.
- Leptokurtic (kurtosis > 3): Sharper peak, heavier tails.
- Platykurtic (kurtosis < 3): Flatter peak, lighter tails.
- Mesokurtic (kurtosis = 3): Normal distribution.
- Excess kurtosis = kurtosis - 3 (so normal = 0).
5. The Five-Number Summary
A compact summary of a dataset's distribution:
- Minimum
- Q1 (25th percentile)
- Median (Q2, 50th percentile)
- Q3 (75th percentile)
- Maximum
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.