When would you report the median instead of the mean? Give a business example.
What the interviewer wants to hear
- Median is robust to outliers and skew
- Mean is pulled by extreme values
- Examples: income, order value, delivery time, house prices
- Report both or percentiles when distribution matters
Model answer
I use the median when the data is skewed or has outliers, because the mean gets pulled toward extreme values. For example, delivery time for a food app: most orders arrive in 30 minutes, but a few take two hours because of rain or a lost rider. The mean might say 38 minutes, which does not describe a typical order, while the median of 30 minutes does. Income, house prices and order values are similar. That said, the mean is still important when totals matter, like average revenue per user for forecasting total revenue, since total equals mean times count. Often the best answer is to show the distribution with percentiles, such as the median and the 90th percentile, because the long tail is where customer pain often hides.
Can you answer it under time pressure?
Take a timed easy round and get scored on every answer.
More easy Data Scientist questions
- Explain what a p-value is to a product manager, and one common way it is misunderstood.
- What is the difference between correlation and causation? How would you test if a change causes an outcome?
- How do you handle missing values in a dataset?
- How do you present a data analysis to non-technical stakeholders?
- Explain the trade-off between precision and recall, and how you would pick a threshold for a real model.
- What is the central limit theorem and why does it matter for everyday analysis work?
- You receive a new, messy dataset for an analysis. What are your first steps before any modelling?
- How do you choose the right chart to present a finding to senior leaders?
- Why do we split data into training, validation and test sets? How do you decide how to split?