All jobs / Data science / ML / AI / Statistics
Data science / ML / AI interview question · 0–1 years
You are summarising customer spend. A few customers spend a hundred times the typical one. Which summary do you report, and why?
The strongest answer
The median with the spread, because the mean is dragged by the long right tail and describes almost nobody — I show the distribution and mention the mean only with the caveat
Why it works
Exactly — for skewed distributions the median resists the tail; the shape of the distribution is the real answer.
What a good answer covers
- Skewed tail? Report the median.
- Show the distribution shape.
- The mean follows the tail.
- Never delete real customers.
Answers that fall short
- Close, but not the strongest: The mean, since it uses every data point and is what people expect to see
The mean is fine for symmetric data; here it exaggerates the typical customer and understates how spread out spend is. - Weak: The mode, because it is the most common value and therefore the most typical
Spend is continuous, so the mode is ill-defined and depends on binning; the median is the robust centre. - Red flag: I remove the big spenders as outliers and then report the mean of what is left
Real customers are not outliers to be deleted; silently trimming the tail hides the revenue concentration the business needs to know.
Who gets asked this
More Statistics questions
- Ice cream sales and drowning rise together. The model uses ice cream to “predict risk.” What do you say?
- Your model’s AUC on the test set is 0.82 with a 95% confidence interval of 0.79 to 0.85. What does that…
- You tried twenty features and kept the one with p < 0.05 on the same set. What is the honest write-up?
- When is an A/B the wrong next step for a model?
- A linear regression gives ad spend a coefficient of 3.2 on revenue. A stakeholder says “every extra dollar…
- You will try three models and two metrics. How do you stay honest?
- You rank products by average rating. A new item with one 5-star review sits above an item rated 4.6 over…