Menu

Distributions, Percentiles, and Outliers

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

SymmetricBalanced around the centreMean ≈ medianHeights, many measurement errors
Right-skewed (positive)Long tail toward high valuesMean > medianIncome, order values, delivery delays
Left-skewed (negative)Long tail toward low valuesMean < medianExam scores on an easy test
BimodalTwo peaksEither can misleadTwo different customer groups mixed together
UniformRoughly equal frequencyMean ≈ medianRandom IDs

The normal distribution is a common symmetric, bell-shaped reference. For data that is approximately normal:

Range

Share of values (approx.)

Mean ± 1 SD68%
Mean ± 2 SD95%
Mean ± 3 SD99.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 − Q1Spread 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

Q125 min
Q340 min
IQR15 min
Upper fence40 + 22.5 = 62.5 min
Lower fence25 − 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 errorTimestamps, system logs
Cancelled or rescheduled orderOrder status field
Genuine major delayWeather, traffic, staffing that day
Different processBulk 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.

Data Analytics Tutorial



Learn via Video Course

Data Analysis and Processing with Python using Pandas - Data Science Course Logo

Data Analysis and Processing with Python using Pandas - Data Science Course

5 hrs



Get in Touch For Details