KatInterview

Targeting Drivers for Real-Time Demand Spikes

Machine LearningModel answer
MediumModel answerMachine Learningrankinguplift-modelingfeature-engineering

Last updated

Build a system that selects which drivers to alert during sudden demand increases at high-traffic locations, balancing response speed with market stability.

You're building a notification system for a rideshare platform. When a high-demand location experiences a sudden supply shortage, the system must decide which drivers to contact and how many to reach out to.

Context:

  • The platform operates in a large metropolitan area with thousands of active drivers
  • Demand spikes occur multiple times daily at certain locations (airports, event venues, transit hubs)
  • Each spike typically lasts 15-60 minutes
  • Drivers receive location updates every few seconds
  • Not all drivers respond to notifications, and some destinations are naturally more attractive than others

Your task: Describe how you would design a notification targeting system that determines:

  1. When to activate notifications for a location
  2. How many drivers should receive alerts
  3. Which specific drivers to contact

Address these specific questions:

  • Why would a simple approach like "notify all drivers within X kilometers" create problems?
  • Beyond travel time, what other signals would help predict whether a driver will respond?
  • If you suspect nearby neighborhoods might also be experiencing shortages, how would you incorporate that into your decision?
  • How would you measure whether your system is working correctly?

Discuss your modeling approach, feature choices, evaluation strategy, and potential failure modes.

Hints

Hint 1

Consider both the immediate shortage and second-order effects on nearby areas

Hint 2

Think about the difference between correlation and causation when measuring notification effectiveness

Hint 3

Travel time matters, but so does whether the driver would have gone there anyway