DoorDash wants to reduce cold-food deliveries and their costs. Begin with the general problem and how to evaluate an intervention. A more specific version asks about insulated bags, complaints that increase after four weeks of flat behavior, and a test with p=0.055.
1. How would you define the cold-food problem?
For the open-intervention version, define primary, secondary and guardrail metrics, select data and comparisons, and explain how the results would guide the choice of intervention.
Separate food arriving cold from customers reporting it cold. Complaints are an operationally useful signal, but their frequency also depends on reporting behavior, support access and refunds. A change in complaints can therefore come from the delivery process, the delivered order mix or the measurement process.
A practical primary quality measure is the cold-food complaint rate among delivered orders after a fixed reporting window. Define which complaint categories qualify, count affected orders rather than duplicate tickets, and allow equal time for complaints to arrive in both periods. Pair it with completion, cancellation and delivered-order volume so that avoiding difficult deliveries cannot masquerade as improved food quality.
For a hypothetical illustration, 100 complaints over 10k deliveries is a 1% rate. Later, 120 complaints over 15k deliveries is 0.8%. Complaint count has risen 20%, while the rate has fallen 20%. The operational cost and customer-incidence questions require both values.
Build the scorecard around the proposed mechanism:
| Role | Measure | What it distinguishes |
|---|---|---|
| Primary quality | Mature cold-food complaints per delivered order | Reported incidence |
| Direct validation | Consistent temperature-quality sampling | Reporting vs. physical condition |
| Economic | Refund, support and intervention cost per assigned order | Net operating value |
| Process | Preparation, pickup wait and delivery stages | Where exposure accumulates |
| Guardrail | Completion, cancellations and other quality complaints | Unwanted service trade-offs |
Collect a consistent sample of temperature-quality observations using appropriate product definitions, not an arbitrary universal temperature cutoff. Join orders to merchant preparation, courier arrival, pickup, route, batching and delivery records. Keep the original order grain when support tickets or repeated events create multiple rows.
Compare patterns by food type, merchant, route length, weather period and courier operating conditions. Those comparisons should test a mechanism. If the increase is concentrated in longer post-pickup journeys, packaging may be relevant. If food waits before pickup, dispatch timing or merchant coordination may deserve priority. The general version does not establish that insulated bags are the right intervention.
2. How would you evaluate an intervention without an A/B test?
If a randomized A/B test is infeasible, propose alternatives for evaluating a cold-food intervention. State the comparison, assumptions, diagnostic checks and conditional launch decision.
Use the strongest available comparison that can credibly approximate the no-intervention outcome. A before/after improvement at the treated merchants is not enough when weather, menus, delivery distances or complaint reporting also change.
If the intervention rolls out to some comparable merchants or areas first, compare their change with the change in untreated units over the same period. This difference-in-differences comparison is useful only if their outcomes would have evolved similarly without the intervention, after the adjustments justified by the setting.
Inspect pre-period trends, changes in order mix, concurrent operational changes and exposure across boundaries. Use comparable not-yet-treated units rather than treating already affected units as clean controls without checking the design. Similar pre-trends make the comparison more plausible, but do not prove the missing counterfactual.
If no suitable contemporaneous controls exist, a longer interrupted time series can test whether a change coincides with intervention timing after accounting for existing trends and recurring patterns. It remains vulnerable to another event occurring at the same time. A controlled operational pilot can also establish whether the physical mechanism works, while leaving its marketplace effect unresolved.
Report which conclusion each source of evidence supports. Direct temperature measurements may show improved insulation without establishing incremental refund savings at scale. Observational complaint changes may suggest an operational benefit without isolating its cause. Launch only to the extent that the expected value, uncertainty and downside justify it, with monitoring that can challenge the original explanation.
3. Why might complaints rise after four flat weeks?
In the insulated-bag version, the complaint measure is flat for four weeks and then increases. Explain how you would investigate the delayed change, including measurement, order mix, temperature exposure, novelty and bag-use compliance.
First determine what increased: raw complaints, a mature order-level rate, or a treatment-control difference. Also establish when bags were supplied and used. Four flat weeks followed by a rise does not itself prove that bags initially worked and then stopped working.
Check whether recent delivery cohorts have equal complaint follow-up and whether support categorization or reporting became easier. Compare treated and control orders over the same calendar time if a comparison group exists. An increase in both groups points toward a shared change, while a widening treatment-control gap warrants closer examination of the intervention.
Then investigate mechanisms with distinct predictions:
- Order mix: More temperature-sensitive food or longer routes can raise complaints even if performance within comparable deliveries is unchanged. Reweight to a stable mix as a diagnostic and inspect the remaining within-group change.
- Physical or process deterioration: Bag condition, packing practices or longer pickup waits may change. Check observed bag condition and journey stages rather than inferring wear from the date alone.
- Compliance or novelty: Initial attention may fade, or bags may become unavailable across shifts. Compare assigned access, actual availability and observed use by time since distribution.
Separate calendar time from time since a courier received a bag. If many new recipients show the same decline in use after a similar tenure, that supports an adoption or maintenance hypothesis. If the change occurs on the same calendar date across recipient cohorts and control areas, investigate weather, demand, dispatch and measurement first.
Use independent or consistently sampled compliance observations. Self-reporting may become less reliable when incentives or attention change. These are tests of competing explanations. Without the underlying data, the correct answer is an investigation plan and its decision branches, not a confident diagnosis of novelty or noncompliance.
4. How would you test insulated bags in practice?
Design a test of insulated bags and their costs. Compare geographic tests with user randomization, address actual bag-use compliance and interference, and define success and guardrail metrics.
Test the complete policy you could deploy: bag provision, replacement, training and any operating requirements. Randomizing only a label in the data does not establish whether the bag is available and used when food is carried.
A courier-level assignment can be appropriate when equipment and behavior persist with the courier. Geographic assignment can be preferable when bags are distributed and managed by area or when courier interactions make individual assignment hard to contain. Choose after mapping who carries the intervention across deliveries.
Reusable bags can cross customer assignment groups with their courier
On the left, the same bag-bearing courier serves treatment and control customers. On the right, the assigned bag policy follows the courier. The recipients are an illustrative delivery snapshot, not exclusive customer populations. This better aligns the intervention with its carrier, but actual use, courier movement and cross-group deliveries still need monitoring.
Bad Solution: Randomize customers and assume isolation
Assign customers to receive deliveries with or without bags, then compare their complaint rates as though each delivery exposes only its assigned customer. This gives many apparent observations and a familiar user-level experiment. It is tempting when reporting already groups results by customer account.
A reusable bag stays with a courier who can serve both groups. Training, packing habits and equipment availability can also persist across deliveries. Unless dispatch and fulfillment can reliably implement the customer-specific rule, control orders may receive the same protection as treatment orders. Counting customers as independent assignment units cannot repair an intervention that crosses those boundaries.
Good Solution: Assign where bag exposure persists
Randomize couriers or operational areas to a clearly specified bag policy, and track deliveries under their assigned condition. Compare the quality, completion and cost outcomes for everyone assigned, with reporting windows and order-mix diagnostics defined in advance. Log compliance to explain implementation rather than define the main treated group.
This aligns assignment with durable equipment and behavior, but may leave courier movement, shared merchants or cross-area trips. Geographic units can contain more exposure while providing fewer independent observations. Monitor those spillovers and use uncertainty at the assignment level. A customer-level design is acceptable only if its fulfillment isolation is actually achievable and verified.
Use assignment to estimate the practical offer-policy effect. Do not compare compliant bag users with non-users as the main causal result: couriers who use the bag may differ in route, experience or diligence. If adoption is poor, the experiment may show that the proposed rollout policy performs poorly even if insulation could work under perfect use.
Account for purchase, replacement, cleaning, distribution, training and extra handling costs over a stated useful life and utilization. Evaluate refund and support savings alongside mature complaint incidence, completion and delivery time. A brief initial dip should not be accepted as durable improvement, so plan observation of adoption and repeat operations beyond the period when novelty is most plausible.
5. What decision would you make at p=0.055?
Suppose the insulated-bag test returns p=0.055. What would you recommend, and what effect-size, uncertainty, cost, guardrail and experiment-quality evidence would inform that decision?
The p-value alone cannot support a launch recommendation. If the planned significance threshold was 0.05, this result does not meet it. It also does not establish that bags have no effect, that the null hypothesis is probably true, or that the business impact is too small to matter.
WARNING
Do not keep adding observations or changing metrics until p=0.055 becomes smaller than 0.05. Use a pre-planned sequential rule or a clearly specified follow-up study. The decision needs a trustworthy effect estimate and a value threshold, not a more convenient stopping point.
First check the estimate's direction, units, interval and practical threshold. Confirm that uncertainty accounts for the actual randomized couriers or areas, and inspect missing complaints, allocation, implementation and reporting maturity. A precise-looking order-level test is misleading if its analysis ignores the assigned clusters.
For a hypothetical normal-approximation example, a complaint reduction of 0.40 percentage points with a standard error of about 0.2085 percentage points yields a two-sided p-value of approximately 0.055. Its approximate 95% interval runs from a 0.009 percentage-point increase to a 0.809 percentage-point reduction. This is one possible combination of estimate and uncertainty, not the actual bag-test result.
TIP
The Python cells in this case study run in your browser and share one session. Click Run on each cell from top to bottom. If you change an earlier input, rerun that cell and the later cells that depend on it.
Reproduce that hypothetical interval using probability units in the calculation, then convert its endpoints to percentage points for display. The standard error below is chosen for this illustration and must not replace uncertainty estimated at the actual assignment level:
from statistics import NormalDist
benefit = 0.004
standard_error = 0.002084553420043537
normal = NormalDist()
p_value = 2 * (1 - normal.cdf(abs(benefit / standard_error)))
margin = normal.inv_cdf(0.975) * standard_error
interval_pp = ((benefit - margin) * 100, (benefit + margin) * 100)
print(f"p={p_value:.3f}")
print(tuple(round(endpoint, 3) for endpoint in interval_pp))
Output:
p=0.055
(-0.009, 0.809)
Positive values mean fewer complaints. The interval spans a small adverse effect and a potentially useful reduction, so rounding the p-value into a significance label discards information needed for the decision.
Now suppose, only for that illustration, each avoided complaint saves $10. The point estimate implies $0.04 gross savings per order. Different operating costs change the recommendation without changing the p-value:
| Cost per order | Point net saving per order |
|---|---|
$0.02 | $0.02 |
$0.05 | −$0.01 |
Using the same hypothetical benefit and complaint value, calculate the sensitivity to operating cost:
value_per_avoided_complaint = 10
for cost_per_order in (0.02, 0.05):
gross_saving = benefit * value_per_avoided_complaint
net_saving = gross_saving - cost_per_order
print(f"cost=${cost_per_order:.2f}, net=${net_saving:+.2f}")
Output:
cost=$0.02, net=$+0.02
cost=$0.05, net=$-0.01
The same estimated effect can produce a positive or negative point net value. This simple sensitivity calculation holds the complaint value and estimated benefit fixed. It does not propagate effect uncertainty or account for unmeasured service benefits and harms.
At a $0.02 cost, break-even requires a reduction of 0.20 percentage points. The example interval includes both a small adverse effect and gains above that threshold, so the point estimate does not resolve the investment. Additional benefits or harms would need to be included explicitly rather than inferred from significance.
With only the supplied p-value, I would not recommend unrestricted rollout. Obtain the valid effect interval, net-value estimate and guardrail results. If the policy is promising but uncertainty crosses consequential loss and benefit thresholds, a bounded, pre-planned follow-up may be worthwhile. If the likely benefit cannot cover costs or quality deteriorates, revise or stop the policy. A significance label alone decides neither branch.
6. Wrapping up
Cold-food work starts by separating complaint reporting, delivery volume and actual food quality. A delayed complaint increase needs a measurement and mechanism investigation before it becomes a story about failing bags or fading attention.
For the bag intervention, assign where equipment and behavior persist, evaluate the policy as deployed, and use compliance to explain its performance. The final decision at p=0.055 depends on trustworthy effect size, uncertainty, cost and service consequences. The general cold-food version retains the same discipline without assuming that bags were the intervention in the first place.