Lesson 2: Distributions, Percentiles, and Outliers
What is a distribution?
A distribution shows how values are spread across their possible range.
Shape | Description | Mean vs median | Business example |
| Symmetric | Balanced around the centre | Mean ≈ median | Heights, many measurement errors |
| Right-skewed (positive) | Long tail toward high values | Mean > median | Income, order values, delivery delays |
| Left-skewed (negative) | Long tail toward low values | Mean < median | Exam scores on an easy test |
| Bimodal | Two peaks | Either can mislead | Two different customer groups mixed together |
| Uniform | Roughly equal frequency | Mean ≈ median | Random IDs |
The normal distribution is a common symmetric, bell-shaped reference. For data that is approximately normal:
Range | Share of values (approx.) |
| Mean ± 1 SD | 68% |
| Mean ± 2 SD | 95% |
| Mean ± 3 SD | 99.7% |
Many business metrics are not normally distributed, so check the shape with a histogram before assuming this.
Percentiles and quartiles
Term | Meaning |
| Percentile (Pₖ) | The value below which k% of observations fall |
| Q1 (25th percentile) | Lower quartile |
| Q2 (50th percentile) | Median |
| Q3 (75th percentile) | Upper quartile |
| IQR = Q3 − Q1 | Spread of the middle 50% |
Business use: "90% of deliveries arrive within 42 minutes" (P90) is often more useful than an average, because it describes the experience of most customers.
Identifying potential outliers
IQR rule (common screening rule):
- Lower fence = Q1 − 1.5 × IQR
- Upper fence = Q3 + 1.5 × IQR
- Values outside the fences are flagged as potential outliers.
Example | Value |
| Q1 | 25 min |
| Q3 | 40 min |
| IQR | 15 min |
| Upper fence | 40 + 22.5 = 62.5 min |
| Lower fence | 25 − 22.5 = 2.5 min |
Other approaches:
- Z-score: flags values more than ~3 SD from the mean (best for roughly normal data)
- Box plots: show the fences and flagged points visually
- Domain rules: e.g., "delivery time over 6 hours is impossible for this service"
A flag is a screening rule, not proof that a record is wrong. A high-value transaction may be unusual but legitimate.
Example
Most delivery times are 20–45 minutes, but one is 300 minutes. Investigate:
Possible explanation | What to check |
| Data-entry error | Timestamps, system logs |
| Cancelled or rescheduled order | Order status field |
| Genuine major delay | Weather, traffic, staffing that day |
| Different process | Bulk or scheduled delivery |
Do not remove it until you understand what it means.
Common mistakes
- Automatically deleting outliers. They may be the most important records, such as fraud, VIP customers, or failures.
- Not reporting the impact. Show results with and without outliers when relevant.
- Not documenting the rule used to flag or handle outliers.
- Applying z-scores to heavily skewed data.








