Budget Reallocation Plan with Experiment Design and Risk Controls
Statistics & ExperimentsModel answerLast updated
Design a constrained next-quarter program budget mix to maximize net profit, estimate the upside, and lay out an experiment and analysis plan to validate it.
You manage an ad platform where advertisers spend across several ad programs. An earlier analysis (a SQL exercise) gave you three facts:
- Which advertiser has the highest total spend.
- Which program earns the most net profit in absolute dollars.
- Which program has the best margin (net profit divided by spend).
Use those findings to recommend how the next quarter's budget should be split so that net profit is maximized and risk stays under control.
Rules for the plan
- The total budget is fixed.
- No program's share of the budget may rise by more than 15 percentage points over its current share.
- Every advertiser's spend must include at least one secondary program receiving at least 10% of that advertiser's budget, to limit concentration risk.
What to deliver
- Program-level shares. Recommend the new budget share for each program.
- Advertiser-level rules. Explain how the program mix is applied to individual advertisers, for example by size tier or historical ROI.
- Expected upside. Give the expected incremental net profit with a back-of-the-envelope calculation and stated assumptions.
- Validation experiment. Choose among a geo holdout, a randomized advertiser split, or a time-based A/B test. Specify the randomization unit, sample size and power, the primary KPI (incremental net profit), guardrail metrics (such as CAC, conversion rate, churn, revenue volatility), success thresholds, and a decision framework.
- Analysis plan. Describe the segmentations you would run (advertiser size, vertical, new vs. returning), how you would deal with seasonality and regression to the mean, which extra data you would request (conversion quality, LTV, attribution window), and which confounders you expect and how you would detect and mitigate them.
State any numbers you invent as assumptions.
Hints
Hint 1
Reallocate based on marginal returns, not average margins. The last dollar in a program that is already large usually earns less than its average, so discount the average margin when you estimate the gain.
Hint 2
Compare the three SQL facts. The program with the biggest absolute profit, the one with the best margin, and the top-spend advertiser are often different. That gap tells you where to scale, where to hold, and where to trim.
Hint 3
Do the power calculation before choosing the design. If the number of advertisers is small and profit is heavy-tailed, you will need variance reduction (pre-period covariates, winsorizing, a longer window) and an honest decision rule that does not rely on a tiny confidence interval.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The core idea is to shift money toward where the next dollar earns the most, not toward where the average dollar looked best. Advertisers usually control their own budgets, so "allocation" means the default or recommended mix. That makes the advertiser both the decision unit and the natural randomization unit.
1. Program-level shares
The three SQL facts usually point at different places:
- High margin, small share: room to scale, but expect diminishing returns.
- Large absolute profit, middling margin: probably close to saturation, so its marginal dollars are its weakest.
- Negative margin: the cheapest profit gain is to cut it.
Illustrative assumptions: a $10M quarterly budget and four programs.
| Program | Current share | Avg margin | Current profit | Proposed share | Change |
|---|---|---|---|---|---|
| A (biggest profit in dollars) | 50% | 20% | $1,000K | 45% | -5 pp |
| B (best margin) | 25% | 35% | $875K | 40% | +15 pp (cap) |
| C | 15% | 10% | $150K | 12% | -3 pp |
| D | 10% | -5% | -$50K | 3% | -7 pp |
Total current profit is $1,975K. B moves to the cap because it has the best margin, and the cap itself protects against its curve flattening. D is trimmed rather than eliminated so you keep learning and keep a secondary option for verticals where it works.
2. Advertiser-level rules
- Score each advertiser x program with a shrunk incremental ROI. Pull the advertiser's own estimate toward the vertical x program mean (empirical Bayes), weighting by spend volume so small advertisers lean on the prior.
- Tier the policy:
- Largest advertisers (about the top 5% of spend, including the top spender): optimize individually, cap shifts at about 10 pp per quarter, and involve account owners. A shock to them is a concentration risk for the platform too.
- Mid-size: start from the vertical-level optimal mix and adjust by shrunk ROI.
- Small or new (under a quarter of history): use a default portfolio such as 55% A, 35% B, 10% C.
- Hard constraints for everyone: a secondary program at 10% or more, no single program above 90%, and program totals that aggregate back to the shares above (solve as a small constrained LP or a greedy fill).
3. Back-of-envelope upside
Assumptions: B's added dollars earn 0.6 x its average margin (saturation); dollars removed from A and C are their weakest, earning 0.7 x average; D's removed dollars earn -5%.
- B: +$1.5M x 21% = +$315K
- A: -$0.5M x 14% = -$70K
- C: -$0.3M x 7% = -$21K
- D: -$0.7M x (-5%) = +$35K
- Net: about +$259K per quarter, roughly +13%
Sensitivity to B's saturation factor: at 0.4 the net is about +$154K, and at 0.8 it is about +$364K. Report a range of roughly $155K to $365K. B's response curve is the main uncertainty, which is exactly what the experiment should resolve.
4. Validation experiment
Design: randomized advertiser split. A geo holdout does not fit because advertisers buy nationally and the treatment is set per advertiser. A time-based A/B is confounded by seasonality and promotions.
- Unit: advertiser, stratified by tier x vertical x current primary program. Pair-match the ~20 largest. Control keeps the current mix.
- Interference: treated advertisers piling into B raise prices for control advertisers. Cap treatment's share of B inventory, track B's CPC by arm, and if prices move more than ~5%, flag the estimate as upward-biased and follow up at a smaller treatment fraction.
- Primary KPI: incremental net profit per advertiser per week, measured with incrementality methods (ghost ads or within-advertiser holdouts), not last-touch attribution, using a fixed 14-day attribution window.
Power (assumed): 4,000 eligible advertisers, mean weekly profit $500, SD $2,000, winsorized at p99.
- Detecting a 10% lift ($50) needs n per arm = 2(1.96+0.84)^2 sigma^2 / delta^2, about 25,000. Not feasible.
- With only 2,000 per arm the minimum detectable effect is about 35% without adjustment. CUPED using pre-period profit (rho about 0.8) cuts variance by 64% and brings it near 21%.
- Aggregating over an 8-10 week window and using a one-sided test at alpha = 0.10 brings it to roughly 16% or lower. Still above the 13% central estimate.
So say plainly that the test cannot cleanly confirm the point estimate. Treat it as a non-inferiority plus directional test, and track a better-powered mechanism metric, the marginal ROAS of dollars added to B.
Guardrails (vs. control):
| Metric | Threshold |
|---|---|
| Advertiser churn or budget pauses | at most +1 pp |
| CAC / cost per incremental conversion | at most +10% |
| Conversion rate | no worse than -3% |
| Weekly profit volatility (SD) | at most +20% |
| Advertiser ROAS | no worse than -5% |
| Auction CPC in B | at most +5% |
Decision framework:
| Result | Action |
|---|---|
| Lift above 0 at one-sided 90%, point estimate at least 5%, guardrails pass | Ship, rolling out by tier with the largest advertisers last |
| Positive but CI includes 0, guardrails pass | Extend, or ship the safe part (trimming D) and retest B at a smaller step |
| Any guardrail breached | Stop, diagnose by segment, redesign rules |
| Lift at or below 0 | Kill; B's curve is flatter than assumed |
Before reading results, run a pre-period balance (A/A) check and a sample ratio mismatch check.
5. Analysis plan
- Segments (pre-registered, with Benjamini-Hochberg correction): advertiser size, vertical, new vs. returning advertiser, baseline primary program, and shopper new vs. returning.
- Seasonality: rely on the concurrent control rather than before/after comparisons, avoid launching into holiday weeks or stratify by week, and use year-over-year only for baselines.
- Regression to the mean: the "best" program or advertiser was selected because it looked good, so part of that is luck. Use shrinkage, evaluate on a period not used for selection, and let the randomized control absorb the rest.
- Extra data to request: conversion quality and refund/cancellation rates, customer LTV, attribution-window sensitivity, incrementality studies per program, and inventory or auction depth for B.
- Confounders: advertiser self-selection (opting out of the new default), promotions and product launches, inventory limits in B, and spillover through auction prices. Detect them with balance checks, price and inventory monitoring by arm, and sensitivity analysis. Mitigate with stratified randomization, intent-to-treat analysis, and caps on B's inventory share.
Common mistakes
- Using average margin as if it were the return on added dollars.
- Presenting a single upside number with no range.
- Skipping the power calculation and promising a precise lift.
- Ignoring auction interference between arms.
- Reading many segment cuts without multiplicity control.