KatInterview

Modeling Quote Win Probability from RFQ Trade Logs

Machine LearningModel answer
MediumModel answerMachine Learningfeature-engineeringlogistic-regressioncensored-data

Last updated

Build features from RFQ trading data, fit a logistic win-probability model, and quantify your pricing signal edge relative to competitors.

Context

You work with a dataset of Request for Quote (RFQ) records for a financial instrument. Each record corresponds to one RFQ and includes:

  • rfq_id: unique identifier
  • mid_price: fair market value at quote time
  • your_quote_price: the price you submitted (you are acting as a buyer, so higher bids are more competitive)
  • best_competitor_price: the strongest competing bid (may be missing when you win)
  • result: 1 if you won the trade, 0 if you lost

Your Task

Part 1: Feature Construction
Define a metric that captures how aggressively you priced your quote relative to the market mid. Explain how you would normalize this metric so it remains meaningful across periods of high and low volatility.

Part 2: Win Probability Model
Assume the probability of winning follows a logistic function of your pricing aggressiveness. Write the equation for P(win = 1) in terms of your normalized pricing metric and explain what the model coefficients represent.

Part 3: Information Edge Estimation
You observe that your win rate tends to be higher when the competitor's bid is closer to the mid price. Using only the result column and the observed prices, propose a method to estimate whether your pricing model contains proprietary information that competitors do not have. Describe how you would measure the strength of this information advantage.

Considerations

  • You are always bidding (buying), so a higher bid is more competitive and more likely to win.
  • Competitor prices are typically visible only when you lose; when you win, you know only that you outbid them.
  • The mid price may occasionally be stale or unreliable in low-liquidity conditions.
  • Your approach should account for the incomplete observability of competitor behavior.

Example

Suppose the mid is 100.00. You bid 99.95 and the competitor bids 99.98. Since 99.98 > 99.95, the competitor wins and you observe result = 0 and best_competitor_price = 99.98. If you had bid 99.99, you would likely have won (result = 1), but you would not observe the competitor's exact price in that case.

Hints

Hint 1

Express your bid distance from mid in units that adjust for market volatility or typical spread width.

Hint 2

The win probability curve reveals the distribution of competitor quotes; winning means you exceeded an unobserved threshold.

Hint 3

When you lose, you see the competitor's exact bid; when you win, you only know a lower bound. Use censored-data likelihood methods.