Interview practice

Data Scientist / ML Engineer

5–8 years · Senior — Python · Statistics · scikit-learn · Feature engineering · Model evaluation · Deployment

0–2 years 2–5 years 5–8 years 8+ years
technical Model Evaluation 1 of 6
You are evaluating a regression model that has a mean absolute error (MAE) of 5 and a mean squared error (MSE) of 50 on the validation set. What do these metrics suggest about the model's performance, and how do you interpret the difference between them?
What a strong answer covers

Recognises that the MAE indicates average error magnitude, while the MSE penalises larger errors more heavily; considers whether the distribution of errors is skewed; discusses potential outliers affecting MSE more than MAE; suggests investigating residual plots to identify patterns.

The follow-up you would get

How would you adjust your model if you find a significant number of outliers?

Could you have answered that?
technical Feature Engineering 2 of 6
You are working on a classification problem with a dataset that is 95% negative cases and 5% positive cases. What metrics do you choose to evaluate model performance, and how do you adjust training to counter the class imbalance?
What a strong answer covers

Chooses precision, recall, and F1 score as primary metrics; considers using stratified sampling for cross-validation; implements techniques such as SMOTE or class weighting to adjust for imbalance; discusses the importance of monitoring false positive and false negative rates.

The follow-up you would get

What impact can threshold tuning have on your selected metrics?

Could you have answered that?
technical Statistics 3 of 6
You are working with a model that uses cross-validation to assess its performance. The mean score across folds is 0.75, with a standard deviation of 0.1. What does this suggest about the model's stability, and what actions should you consider?
What a strong answer covers

Indicates moderate variance in model performance across folds; considers methods to reduce variance such as increasing training data or simplifying the model; evaluates feature selection techniques; may experiment with different cross-validation strategies.

The follow-up you would get

How would you interpret the standard deviation in the context of model performance?

Could you have answered that?
ownership An incident you handled 4 of 6
Describe an incident where a model you deployed performed poorly in production. What steps did you take to address it?
What a strong answer covers

Names the specific model and its intended outcome; describes the initial performance metrics and how they differed from expectations; outlines the investigation process including data checks and feature analysis; explains the corrective measures implemented and their impact on performance; reflects on lessons learned for future deployments.

The follow-up you would get

What indicators would you look for to identify similar issues earlier?

Could you have answered that?
scenario Feature Engineering 5 of 6
You need to enhance your model's performance but have limited time to engineer new features. A colleague suggests a complex approach that may take days. What do you do in the next hour?
What a strong answer covers

Quickly assess existing features for interactions or transformations; evaluate feature importance using a simple model; consider domain-specific features that are easy to derive; discuss with the team for quick wins; plan for iterative improvement later.

The follow-up you would get

You identified a feature that significantly improves performance but requires data from another source. What are your next steps?

Could you have answered that?
technical Model Evaluation 6 of 6
You have a model with a high accuracy score but low precision and recall on a testing set. What does this indicate about the model's performance, and what immediate actions should you take?
What a strong answer covers

Indicates that the model may be predicting the majority class well but failing on the minority class; considers adjusting the decision threshold to improve precision and recall; evaluates confusion matrix for insights; suggests implementing techniques like SMOTE or class weighting.

The follow-up you would get

What steps do you take to ensure the model does not suffer from overfitting when adjusting the threshold?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.