Design a listing price suggestion system
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Airbnb's system design round, last asked Aug 2025. It tests regression, pricing and tabular ml.
Hosts on a home-rental marketplace often do not know what to charge. Too high and nights stay empty; too low and they lose money. Design a system that suggests a nightly price for every listing and every future date (for example the next 90 days) that maximizes the host's expected revenue, adapting to seasonality, local events and demand. Hosts see the suggestions on their calendar and can accept, change or ignore them; some hosts let the system set prices automatically.
Requirements
- Functional: a suggested price per listing per night for the coming months; updated when demand changes or the host edits the listing; a refresh on request that returns within about 200 ms; explanations ("prices are higher this weekend because of a local event").
- Non-functional: suggestions for millions of listings refreshed at least daily; prices within host-set minimum and maximum; hosts trust and keep using the suggestions.
Clarifying questions
- Is the goal host revenue, bookings, or marketplace-wide revenue? (Here: the host's expected revenue.)
- What data exist: past bookings and prices, search and view traffic, calendar availability, competitor listings, events?
- How far ahead do we price, and how often do prices update?
- How many hosts use automatic pricing versus manual suggestions?
- Are there hosts' own constraints (minimum stay, min and max price)?
What a strong answer covers
- Framing: expected revenue for a night is price times the probability of booking at that price, so model the booking probability as a function of price, listing, date and market, then choose the price that maximizes it.
- Features: listing attributes and quality (reviews, photos), location, lead time, day of week, seasonality, local events, market demand (searches, occupancy of similar listings), competitor prices.
- Models: a demand model (gradient-boosted trees or a neural network) with price as an input and a monotonic constraint (higher price, lower booking probability); why naive historical data confounds price and demand, and the role of price experiments.
- Serving: a daily batch job that precomputes suggestions for all listings and dates into a cache, plus an online path that recomputes for one listing in under 200 ms.
- Evaluation: offline accuracy of booking predictions, and online tests comparing host revenue and acceptance of suggestions; guardrails against pushing prices to zero to fill nights.
- Trust: smooth changes, clear reasons, respecting host limits.
Follow-ups
- A big concert is announced for next month. How quickly do prices react, and from what signal?
- New listings have no booking history. How do you price them?
- If every host in a city follows the suggestions, do prices feed back on themselves?
Where it's asked
- Airbnb · System design · Last asked Aug 202560 min · Design discussion
What it tests
regression · pricing · tabular ml
Sign in to see the worked answer
The full answer, chapter by chapter, with what interviewers expect at each level. New accounts get 5 credits: each one unlocks a question for good.
What the labs asked this week
A weekly email of what OpenAI, Anthropic and the other top AI labs asked engineers, round by round.
