M9-007M9: Senior ML & AI System DesignRisk, Pricing & Large-Scale RetrievalHard
⚡Flashcard Drill➔Mastery:

Design a Real-Time Dynamic Pricing & Supply-Demand Elasticity Architecture

🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
Next: M9-008 →
📐 Mathematical Definition
p∗=arg⁡max⁡p(p−c)D^(p∣x)∧Switchback SE Adjustedp^* = \arg\max_p (p-c)\hat{D}(p\mid x)\quad \land \quad\text{Switchback SE Adjusted}
⚡ One-Sentence Core Answer
Isolate true conditional price elasticity via Double ML with monotonic constraints, optimize bounded multipliers, and run time-switchback experiments.

📌 Key Takeaways

  • •
    L1 Confounding Trap: naive observational fits link high surge with high demand due to rain/rush-hour spikes
  • •
    L2 Monotonic DML: residualize demand and price over spatio-temporal confounders before enforcing dD/dp < 0
  • •
    L2 Smooth Solver: optimize bounded multipliers over per-hex gaps with hysteresis caps
  • •
    L3 Network Interference: switch from user-level A/B to spatio-temporal cluster Switchback tests

📐 Mathematical Derivations

Orthogonalizing out seasonal/weather signals yields unbiased conditional elasticity estimates over small randomized price perturbations.

🏭 Production Trade-offs

Freeze quoted fares briefly and damp sudden jumps so users never face jarring multiplier flicker during booking.
⚠️ Common Interview Pitfalls
  • ✕
    Evaluating pricing changes via user-level A/B splits suffers severe cannibalization across shared driver pools
  • ✕
    Running uncapped multipliers during emergencies invites severe reputational backlash
🎯 Interviewer Follow-up Inquiries
  • ?
    How do you compute valid clustered SEs across autocorrelated switchback intervals?
  • ?
    How do hierarchical priors transfer elasticity curves cleanly to brand-new markets?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
📚

Associated Knowledge Base Guides & Mindmaps

← PreviousM9-006: Design a Sub-10ms Real-Time Payment Fraud Detection System📋 Back to BankNext →M9-008: Design a Trillion-Token Pretraining Corpus Deduplication & Decontamination Pipeline