KatInterview

Build an ML System for Optimizing Short-Term Rental Prices

Machine LearningModel answer
HardModel answerMachine Learningpricingdemand-forecastingreinforcement-learning

Last updated

Design a production machine learning system that suggests optimal nightly prices for vacation rental hosts based on demand forecasting and price elasticity.

You're tasked with building an intelligent pricing system for a vacation rental marketplace. Hosts need guidance on what to charge per night, and your system should provide data-driven price recommendations that maximize their revenue while maintaining marketplace health.

Your system must handle millions of properties across different markets, each with unique characteristics, seasonality patterns, and local competition. Some hosts will adopt your suggestions automatically, while others will use them as guidance.

Address the following aspects of the system:

  1. Problem setup: How do you frame this as an ML problem? What are you optimizing for, and what constraints matter?

  2. Data and features: What data would you collect? What features capture pricing dynamics, seasonality, and competitive positioning?

  3. Modeling strategy: What modeling approach would you take? How do you estimate price sensitivity when higher prices correlate with higher demand periods?

  4. Production architecture: How would you structure the training pipeline, serve predictions at scale, and handle real-time updates?

  5. Cold start and fairness: How do you price new listings with no history? How do you prevent discriminatory pricing or market manipulation?

  6. Experimentation and rollout: How would you test this system safely and measure its impact?

Explain your reasoning at each step, including trade-offs and potential failure modes.

Hints

Hint 1

Think about the sequential nature of the problem—an empty night tomorrow has zero value, so pricing strategy should evolve as the date approaches

Hint 2

The core challenge is distinguishing correlation from causation: hosts raise prices when demand is high, so observed price-booking relationships are confounded

Hint 3

Consider treating this as a demand modeling problem where you predict booking probability as a function of price, then optimize over that curve