Statistics and experiments · core
Mean, median and percentiles
Most business numbers (order value, delivery time) are right-skewed, so the mean sits above the median. Use the median and percentiles to describe a typical or a bad experience, use the mean for money math, and look at extreme values before deleting them.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- In a right-skewed set, a few very large values pull the mean above the median. Example: mean order value 450 rupees and median 280 rupees.
- A typical customer is described by the median, ideally with the 25th and 75th percentiles or a histogram.
- Money math needs the mean: orders times the mean order value is the total GMV. A median cannot be multiplied up.
- p90 or p99 shows how bad the bad experiences are. This drives complaints and cancellations.
- Percentiles do not add up. The all-India median needs all the orders, not the average of city medians.
- In SQL: PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY x) interpolates; PERCENTILE_DISC picks an actual value. APPROX_QUANTILES in BigQuery. Say which one you use.
- Rules like the IQR fence (beyond Q3 + 1.5 times IQR) or z-scores only flag candidates. The cause decides whether a value is an error (a system job closed the order) or a real slow delivery.
- Report the clean number and what was removed, with the reason. Count NULL and negative durations as data errors and report them.
- To reduce noise in revenue tests, cap at the 99th percentile (winsorise) or adjust with pre-test spend (CUPED), and report the median too.
The red pen
Common traps: mistake → fix
Mistake: Always use the median because it is robust
Fix: you cannot get total revenue from a median; use the right one for the question.
Mistake: Delete the outliers and the average is the truth
Fix: first find why they exist; a real long wait is part of what customers felt.
Mistake: The average of city medians is the national median
Fix: percentiles do not combine this way.
Easy to hard
Questions interviewers ask, easy to hard
- Average order value is 450 and the median is 280. Why are they different?
- Which would you report as a typical customer spend?
- Delivery times of 900 minutes appear in the report. What do you do?
- How do you compute median and p90 in SQL?
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.