Outliers and skewed data
Why product metrics have long tails, how to find outliers with the IQR rule, and what to do with them: fix errors, segment different customers, and never delete whales without thinking.
Lesson 3 of 24~33 min of learningIncludes ~22 min for questions and tasks
Contents1 of 35 steps
You
Alex Tutor
Alex Tutor
Dataset · 24 rows
90-day spend of new CatChow customers
A random sample of 24 customers who joined in June: spend and number of orders in their first 90 days. Synthetic data made for this course.
- Columns
- customer_id
- Customer ID
- spend_90d
- Total spend in the first 90 days, USD
- orders_90d
- Number of orders in the first 90 days
Data
| customer_id | spend_90d | orders_90d |
|---|---|---|
| U-5101 | 42 | 2 |
| U-5102 | 85 | 3 |
| U-5103 | 15 | 1 |
| U-5104 | 28 | 1 |
| U-5105 | 24 | 1 |
Show 19 more rows
| U-5106 | 24 | 1 |
| U-5107 | 64 | 2 |
| U-5108 | 32 | 1 |
| U-5109 | 56 | 2 |
| U-5110 | 93 | 3 |
| U-5111 | 26 | 1 |
| U-5112 | 22 | 1 |
| U-5113 | 20 | 1 |
| U-5114 | 45 | 2 |
| U-5115 | 110 | 4 |
| U-5116 | 34 | 1 |
| U-5117 | 50 | 2 |
| U-5118 | 36 | 1 |
| U-5119 | 38 | 1 |
| U-5120 | 240 | 12 |
| U-5121 | 56 | 2 |
| U-5122 | 12 | 1 |
| U-5123 | 18 | 1 |
| U-5124 | 30 | 1 |
Alex Tutor
Question 1
Which CatChow metric is most likely to be right-skewed?
Alex Tutor
Chart data
| Spend in 90 days, USD | Customers |
|---|---|
| 0–19 | 3 |
| 20–39 | 11 |
| 40–59 | 5 |
| 60–79 | 1 |
| 80–99 | 2 |
Show 3 more rows
| 100–119 | 1 |
| 120–239 | 0 |
| 240–259 | 1 |
Alex Tutor
Question 2
Every outlier should be removed before you analyse the data.
Alex Tutor
- It's an error. A test order placed by a developer, a price typed as $2,990 instead of $29.90, revenue recorded in the wrong currency, a bot that added 400 items to a basket. These values describe nothing real. Fix or remove them, and write down that you did.
- It's a genuine extreme. A real customer who really loves your product and orders a lot. The value is correct; it's just rare. Deleting it means pretending your best customers don't exist.
- It's from a different population. Look at U-5120 again: $240 over 12 orders in 90 days, while almost everyone else placed 1–3 orders. That pattern suggests a business (a cat café, a shelter, a small reseller) rather than a household. It's real data, but it answers a different question. Analyse it as a separate segment rather than mixing it with households.
Alex Tutor
- lower fence: Q1−1.5×IQR
- upper fence: Q3+1.5×IQR
Alex Tutor
Question 3
Match each unusual value to the most sensible action.
Tap an answer, then tap the row it belongs to. You can also drag.
- A 0.01 USD order placed by a developer from the office network
- A bag of treats recorded at 2,990 USD instead of 29.90 USD
- A cat café that orders 12 times a quarter
- A household customer who spent 3× the median, in a revenue forecast
Answers left to place
Alex Tutor
Alex Tutor
Question 4
A dataset of monthly ad clicks per campaign has Q1=120 and Q3=200. Using Tukey's rule, what is the upper fence above which a campaign is flagged as a potential outlier?
Units: clicks
Alex Tutor
Alex Tutor
Question 5
Using the dataset 90-day spend of new CatChow customers, what share of total 90-day spend (in %) comes from the two customers flagged by the IQR rule? Round to one decimal.
Units: %, e.g. 12.5
Alex Tutor
- Right skew (long tail to the right): mean > median. Here $50 > $35.
- Symmetric: mean ≈ median.
- Left skew (long tail to the left): mean < median.
Alex Tutor
Alex Tutor
Question 6
Time to first purchase after sign-up: mean 19 days, median 6 days. What shape does this distribution most likely have?
Alex Tutor
- Look before you touch. Open the raw rows. Check dates, IDs, order counts, currency. Is this a bug, a real person, or a different kind of customer?
- Fix or remove errors, and log it. Test orders, duplicates and typos go. Write down what you removed and why, so that someone else gets the same numbers.
- Choose the summary by the question, not by convenience.
- "How much revenue will the June cohort bring?" Totals need the mean, with the whales included.
- "What does a typical new customer spend?" Use the median (here $35) or a trimmed mean.
- "Is our spend distribution changing?" Track the median and a high percentile (p90) together.
- Segment instead of deleting. Pull likely businesses (many orders, large baskets) into their own segment. Households and cafés behave differently and deserve separate metrics.
- Use robust tools when extremes aren't the point. Median, IQR, trimmed mean, or capping: replace values above, say, the 99th percentile with the 99th percentile itself (also called winsorising). Capping is common in A/B tests on revenue, where one huge order can otherwise decide the result.
- Report with and without. "Mean 90-day spend is $50, or $41.74 excluding one business customer." Two numbers, full honesty, and no one can accuse you of cherry-picking.
Alex Tutor
Question 7Short answer · AI-checked task
Explain in 2–4 sentences why the "more than 3 SDs from the mean" rule can miss outliers in a small, skewed dataset.
Write your answer and get a score with feedback from our AI reviewer.
Log in to get AI feedbackAlex Tutor
Alex Tutor
Question 8Case · AI-checked task
Which number should go into the acquisition budget, and how do you handle the outliers? Use numbers from the dataset.
CatChow's CEO wants to set the maximum cost per acquired customer for paid ads. Her rule: "We can spend up to one-third of what a new customer brings in their first 90 days." The analyst's slide says average 90-day spend: $50, so the CEO is ready to approve up to $16.67 per customer.
The head of performance marketing objects: "That average is inflated by a couple of weird customers. Use the median, $35." That would cap acquisition cost at $11.67.
Using the dataset 90-day spend of new CatChow customers, write a recommendation: what's going on in the data, which number you'd use for this decision and why, and what you'd do about the outliers.
Write your answer and get a score with feedback from our AI reviewer.
Log in to get AI feedbackAlex Tutor
That’s the lesson. You answered every task — nicely done.