VFlash: Fast, Accurate Visual Planning via Flash Primitive Decoding
u_Unrolled
D22: AI System Design Bank · Case Study: Surge Pricing — Forecasts, a Stable Price Controller and Marketplace Experiments at Staff Level

Case Study: Surge Pricing — Forecasts, a Stable Price Controller and Marketplace Experiments at Staff Level

25 min read·Staff+ Tier· Unrolled Pro
Case Study: Surge Pricing — Forecasts, a Stable Price Controller and Marketplace Experiments at Staff Level

You already know: time-series forecasting (D3), streaming aggregation (D16), experiment design and its pitfalls (D10), and the churn case's lesson that actions change the data you learn from. This case adds dynamic pricing in a two-sided marketplace: riders react to price in seconds, drivers in minutes, and every price you set changes what you will observe next. The design questions: what the price is for, how to forecast per cell, how to set prices that stabilise rather than oscillate, and how to experiment when riders and drivers interfere with each other.

How to read this lesson. No code, on purpose. Numbers marked assumed are assumptions you state out loud.


1. The prompt, and the questions that change the design

A mid-level answer: "when requests exceed drivers, multiply the price by the ratio". A staff candidate first asks what the price is for: reliability (riders get a car within a few minutes), not revenue for its own sake. Then: at what geography and cadence prices change, how riders and drivers respond and with what delay, and what limits apply (caps, emergencies, law, trust). Those answers turn a ratio rule into a forecast-driven controller with smoothing and caps, evaluated with switchback experiments.

Assumptions you state:

That's the preview. The full lesson, with its code and exercises, is part of Unrolled Pro.
Staff AI & Pro Tier Lesson

Unlock "Case Study: Surge Pricing — Forecasts, a Stable Price Controller and Marketplace Experiments at Staff Level"

The foundations are free forever. Unrolled Pro unlocks the complete lesson, production architectures, and 55 battle-tested ML system design case studies.

Everything included with Pro:
All 234+ Deep-Dive Lessons across transformer internals, inference, RAG & agents
55 Staff-Level ML & System Design Case Studies with mathematical capacity estimates
AI Engineer Sheet & Exercises with worked solutions, self-checks, and code
100 Landmark Research Papers guided walkthroughs & progress tracking
14-Day Money-Back Guarantee — 100% full refund if you aren't satisfied
View Plans & Unlock All Lessons

From ₹167/mo (~$2/mo) · Cancel anytime · Instant activation

100% Risk-Free: 14-day no-questions-asked money-back guarantee