Measuring the Impact of a Delivery Fee Promotion
Statistics & ExperimentsModel answerLast updated
Design an experiment to evaluate whether offering reduced delivery fees drives profitable growth and determine which customer segments benefit most.
Context
A food delivery platform is evaluating a promotion that reduces delivery fees by 20% for selected customers. The goal is to stimulate more frequent ordering. You're responsible for designing the test and analysis plan to determine whether this promotion generates net profit and which customers respond most positively.
Your Assignment
1. Design the Experiment
Outline how you would structure a controlled test to measure the true causal effect of the fee reduction on incremental profit. What challenges arise from marketplace dynamics, and how do you address them?
2. Define Success Metrics
Specify your primary outcome and supporting metrics. How will you distinguish customers who genuinely change behavior from those who would have ordered regardless of the promotion?
3. Assess Durability
Explain how you'd evaluate whether behavior changes persist after the promotion ends versus representing only temporary shifts in order timing. How do you balance immediate conversion with sustained value?
4. Determine Test Parameters
Describe your approach to calculating required sample size and test duration, accounting for high variance in ordering patterns and external factors like day-of-week effects.
Key Considerations
- The platform serves approximately 10 million monthly active customers
- Customers may learn to time their orders around promotional periods
- After initial testing, describe how you'd monitor a broader rollout to ensure economic sustainability
Hints
Hint 1
Think about what happens to control group customers when treated customers generate extra demand in the same delivery zones
Hint 2
The promotion pays out on every order, including ones that would have happened anyway—how does that change the profitability bar?
Hint 3
Consider testing different promotion intensities across regions to separate direct effects from spillover effects
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Approach
This problem requires translating a growth initiative into a rigorous causal analysis with clear profitability criteria. A strong response demonstrates understanding of marketplace interference, targeting efficiency, and the difference between short-term lifts and durable behavior change.
1. Economic Foundation
Before designing any test, establish the profit breakeven threshold.
Suppose the typical delivery fee is $4, making the promotion cost $0.80 per order. If contribution margin per order (after all variable costs) is roughly $2.50, then:
Profit change per customer = baseline_orders × (1 + lift) × (2.50 - 0.80) - baseline_orders × 2.50
Simplifying: profit increases only when lift exceeds approximately 47%. This high bar makes universal application unlikely to succeed. The real question becomes which customers justify the subsidy.
Important: use fully-loaded margin including courier pay, peak-hour bonuses triggered by increased demand, refunds, and support costs.
2. Experimental Structure
Challenge: Marketplace Interference
Simple user-level randomization fails here. When treated customers place more orders, they compete for the same couriers as control customers in the same zone. This affects delivery times, courier availability, and overall service quality for everyone. Control customers experience degraded service, which artificially inflates the measured treatment effect. The stable unit treatment value assumption (SUTVA) breaks down.
Solution: Two-Layer Design
Geographic Cluster Layer:
- Randomize at the delivery zone or submarket level (200-300 units)
- Use matched pairs stratified by historical volume, courier density, and seasonal patterns
- Analyze using difference-in-differences or covariate-adjusted cluster-level methods with cluster-robust standard errors
Saturation Layer Within Treated Zones:
- In treated geographies, randomly vary what fraction of customers receive the promotion (e.g., 15%, 40%, 70%)
- This allows estimation of both direct effects (treated vs. control at the same saturation) and spillover effects (control customers in high-saturation zones vs. pure-control zones)
- If spillover is negligible at the planned rollout intensity, simpler user-level tests become valid for future iterations
Addressing Timing Manipulation:
Provide treated customers a continuous discount for a fixed 30-day window, not episodic "Tuesday deals" that train gaming behavior. If windowed promotions are necessary for business reasons, measure order distributions before, during, and after windows. True incremental volume equals in-window orders minus any out-of-window decline.
Crucially, maintain treatment assignment and continue measurement for 60 days post-promotion to detect pull-forward effects (orders borrowed from the future).
3. Metrics Framework
Primary Metric: Incremental contribution profit per assigned user over 90 days (30-day treatment + 60-day follow-up), analyzed intent-to-treat.
Secondary Metrics:
- Orders per user and fraction of users who place any order
- Average basket size
- New user activation rate
- Retention at 30, 60, and 90 days post-assignment
- Promotion cost as percentage of gross merchandise value
Guardrail Metrics:
- Estimated delivery time and on-time performance
- Courier earnings per active hour and order acceptance rate
- Order cancellations and customer service contacts
- Restaurant preparation delays
4. Customer Segmentation and Targeting
Customers fall into behavioral categories based on their response:
- Always-takers: Order frequently without promotion (pure subsidy, no incremental value)
- Persuadables: Induced to order more by the promotion (target segment)
- Never-takers: Don't respond even with promotion (wasted effort)
- Contrarians: Paradoxically reduce usage when incentivized (rare but real)
Heterogeneous Treatment Effect (HTE) Strategy:
Pre-register segmentation hypotheses to avoid data mining: user tenure, recent ordering frequency, subscription status, geographic market, and historical price sensitivity.
Estimate conditional average treatment effects (CATE) using methods like causal forests or doubly-robust learners, modeling profit uplift not just order uplift. Validate targeting rules using held-out data with evaluation metrics like Qini curves or area under the uplift curve (AUUC), which properly assess targeting quality.
Targeting Decision Rule: Promote customer i only when estimated_profit_lift > discount_cost × expected_orders_if_treated.
Validate any model-driven targeting policy with a follow-on randomized test comparing model-selected customers vs. random selection vs. no promotion.
5. Long-Term Value and Persistence
Distinguishing Habit Formation from Pull-Forward:
Plot the treatment-control gap week by week. A lift that vanishes immediately after promotion ends indicates mere timing shifts. Sustained elevation suggests genuine behavior change—the real strategic value.
90-Day Lifetime Value:
Directly measure 90-day profit in the main experiment. For faster future decisions, develop a surrogate model predicting 90-day value from early signals (2-3 week orders, category exploration, reorder rate). Validate this model against historical experiments before relying on it operationally.
Strategic Tension:
Promotions risk anchoring lower price expectations, attracting deal-focused customers with weak organic retention, and training promotional dependency. Maintain a permanent holdout group (≈2% of customers, never promoted) to measure cumulative effects across repeated campaigns.
6. Sample Size and Duration
Power Calculation:
For comparing two means: n = 2(z_α/2 + z_β)² × σ² / δ²
Example for 30-day order count per user:
- Mean ≈ 2.0, standard deviation ≈ 3.0 (zero-inflated, heavy-tailed)
- Target minimum detectable effect: 3% (δ = 0.06 orders)
- α = 0.05, power = 80% gives (z_α/2 + z_β)² ≈ 7.85
- Required n ≈ 39,000 per arm
Variance Reduction:
Using CUPED (covariate adjustment with pre-period orders, correlation ≈ 0.7) roughly halves variance, reducing requirement to ~20,000 per arm. Profit metrics show 2-3× higher variance; apply winsorization at 99th percentile.
To power detection across ~10 customer segments, allocate 1-2 million total users, feasible given the 10M monthly active base.
Geographic Layer:
Power depends on number of clusters, not individual users. Design effect = 1 + (cluster_size - 1) × ICC. Simulate power by bootstrapping historical weekly submarket data with matched pairs. Expect to need 100+ submarket pairs over 6+ weeks to reliably detect effects of a few percentage points.
Seasonality:
Run the test across complete weekly cycles (multiple full weeks) to average out day-of-week patterns. Avoid major holidays unless the promotion is specifically holiday-focused.
7. Post-Launch Monitoring
After deciding to roll out:
Economic Dashboard:
- Incremental profit per promoted user (weekly rolling windows)
- Promotion cost as percentage of revenue, tracked by customer cohort
- Customer acquisition and retention curves for promoted vs. organic users
Early Warning Indicators:
- Sudden shifts in order timing distributions (gaming behavior emerging)
- Degradation in service quality metrics in high-promotion-density zones
- Changes in courier earnings or acceptance rates
Long-Term Checks:
- Compare promoted cohorts to the permanent holdout at 6, 12, and 18 months
- Monitor whether promoted customers show lower willingness to pay full price later
Set automatic alerts when key metrics cross predefined thresholds, triggering deeper investigation or promotion throttling.
Common Mistakes
- Measuring order volume instead of incremental profit
- Ignoring marketplace interference and using simple user randomization
- Failing to measure post-promotion behavior, missing pull-forward effects
- Not accounting for customers who would have ordered anyway (subsidy waste)
- Underpowering the test for high-variance behavioral data
- Overlooking spillover effects on couriers and control customers
Time Complexity: Experiment analysis is O(n) in customer count; HTE estimation with causal forests is O(n log n) with typical implementations.
Space Complexity: O(n × f) where f is the feature count for heterogeneity modeling.