25 machine learning and data quant interview questions with answers
25 original quant ML and data questions with answers on point-in-time joins, leakage, validation, calibration, regularisation and production monitoring.
How to approach these questions
A financial model can fail before fitting begins if its features use revised data or its joins create records that never existed at the decision time. These examples move from data contracts and time-aware evaluation to model choice and production diagnostics. This is an expanded original public guide; it is not limited to the smaller ML section currently present in our dashboard bank.
Audit time and granularity
Define when each value became available, what one row represents and whether join keys are unique. A correct-looking table can still contain future information or duplicated outcomes.
Evaluate the deployment task
Use evaluation periods, label gaps, costs and metrics that match the intended decision. A high score is useful only in relation to a baseline and an operational objective.
Keep the whole pipeline reproducible
Record preprocessing, feature rules, data versions and monitoring responses alongside model parameters. Changes upstream can invalidate a model even when its saved weights stay fixed.
Sample questions, answers and explanations
Try each question before reading its answer. These original teaching examples remain free to read on this page.
Data availability and preparation
Start with information timing and join contracts; model quality cannot repair leaked or duplicated observations.
Why might joining two tables by date unexpectedly increase row count?
Answer: The key may be nonunique on both sides, creating a many-to-many join.
Explanation: Check key uniqueness and intended granularity before joining. A larger dataset can reflect duplicated combinations rather than new observations.
Should missing values always be replaced with zero?
Answer: No; first identify what missingness means and choose an appropriate treatment.
Explanation: Zero may be a meaningful economic value. A missing indicator, model-based imputation or exclusion has different assumptions and consequences.
When should a standard scaler's mean and variance be estimated?
Answer: On training data only, then applied unchanged to validation and test data.
Explanation: Fitting preprocessing on all data leaks information about the evaluation distribution. Put learned transformations inside the training pipeline.
Evaluation and baseline design
Reserve unseen data, handle overlapping labels and compare alternatives on the same task.
Does a high model feature-importance score prove that the feature causes the target?
Answer: No.
Explanation: Importance is conditional on the model, data and metric. Correlated features and leakage can distort it; causality requires additional identification.
How would you investigate a model with good average performance but large occasional losses?
Answer: Slice errors by regime, exposure, data quality and decision size, then inspect tail cases.
Explanation: An aggregate metric can hide economically important failure modes. Keep analysis separate from post-hoc tuning on the final holdout.
5 ml/data questions from the bank
Each question has its own page with a short answer and a credit to its source. Hints and full worked solutions are in the question bank with a free account.
Our bank summary dated contains 7 ML/Data entries in the bank. Counts describe entries in our curated practice bank, including its source and classification choices. They do not measure employer interview frequency, candidate success rates or how often any one question is asked.
Data Wrangling: 5 entries, or 71.4% of this topic's bank. Use this coverage to identify areas for practice alongside the technique-based examples above.
Machine Learning: 2 entries, or 28.6% of this topic's bank. Use this coverage to identify areas for practice alongside the technique-based examples above.
The public examples above were written for these guides. They illustrate the techniques and are not a reproduction or ranking of the bank's sourced questions. The dashboard's broader bank combines sourced questions, worked answers where available and references for book entries without a reproduced solution.
Subtopic coverage in the bank
Subtopic
Bank entries
Data Wrangling
5
Machine Learning
2
Bank difficulty labels: 6 easy · 1 hard.
Lessons behind the techniques
Use these lesson previews to find the definitions and derivations behind the worked examples.