You receive a new, messy dataset for an analysis. What are your first steps before any modelling?
What the interviewer wants to hear
- Understand the source, grain and meaning of each column
- Check row counts, duplicates and key uniqueness
- Profile missing values, ranges and outliers
- Check data types, units and date ranges
- Document assumptions and confirm odd findings with data owners
Model answer
First I find out what one row represents and where the data came from, because the grain decides how everything else is analysed. Then I check basic shape: row counts against what I expect, duplicate rows, and whether the supposed keys are really unique. Next I profile every column: data types, share of missing values, ranges, distinct values and obvious outliers such as negative ages or prices of zero. I check dates cover the period I expect and that there are no gaps or sudden jumps that suggest a pipeline change. I also look at units and currencies. Anything strange I write down and confirm with the data owner rather than guessing. Only after that do I decide how to handle missing values and outliers, and I keep the cleaning steps in code so the analysis is reproducible.
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.
- When would you report the median instead of the mean? Give a business example.
- 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?
- 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?