Calibrated Fill Probability Model for Passive Quotes
Last updated: November 29, 2026
Quick Overview
Build a model that predicts the probability a passive limit order will be filled within 500 milliseconds given order book state and the order's queue position. Fills are rare and many orders are cancelled before the horizon. How do you handle imbalance, censoring, and calibration?
DRW
November 29, 20260
0
0 solved
Build a model that predicts the probability a passive limit order will be filled within 500 milliseconds given order book state and the order's queue position. Fills are rare and many orders are cancelled before the horizon. How do you handle imbalance, censoring, and calibration?
DRW's market making strategies decide where to quote based on expected fill probability and adverse selection, so the probabilities must be calibrated, not just ranked. The interviewer wants you to identify censoring from cancellations, handle rare positives without distorting probabilities, and evaluate calibration properly.
What the Interviewer Expects
- Identifies cancellation as right censoring, not a negative label
- Proposes a survival or hazard model, or restricts to uncensored horizons carefully
- Handles imbalance without breaking calibration, or corrects for resampling
- Evaluates with log loss, Brier score, and reliability curves
- Engineers queue position and book imbalance features
- Discusses separating fill probability from post fill markout
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- If you downsample negatives by a factor of 10, how do you correct the predicted probability?
- How would you model fill probability and adverse selection jointly?
- Which features matter most for queue position at the touch?
- How would you detect calibration drift in production?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Each order has a time to fill, a cancel time, or survives to 500 ms. Fill rate within the horizon is maybe 3 percent. The output feeds an expected value calculation: $E[\text{edge}] = P(\text{fill}) ...
Approach
Labeling cancelled orders as not filled biases probabilities down: an order cancelled at 100 ms might have filled at 300 ms. That is right censoring. Model the hazard of filling over time, where cance...