Trade Promotion Effectiveness Model (TPEM)
As Sherlock Holmes of data analytics, I've deduced a comprehensive, data-driven model to measure trade promotion effectiveness. This Trade Promotion Effectiveness Model (TPEM) quantifies uplift (incremental sales lift), cannibalization (sales erosion on non-promoted items), and leakage (benefits captured by non-targeted customers). It uses a Difference-in-Differences (DiD) framework with panel regression, ideal for granular sales data (e.g., SKU-store-week level). This controls for confounders like seasonality, trends, and pricing.
The model outputs:
Gross Uplift : Raw sales increase.
Net Uplift : Gross Uplift - Cannibalization - Leakage.
ROI : (Net Incremental Revenue - Promotion Cost) / Promotion Cost.
1. Data Requirements
Core Data : Weekly sales volume/value, units sold (SKU-store-week).
Promotion Variables : Promo flag (binary: 1 if active), depth (e.g., % discount), duration.
Controls :
Category Variables Time Week, seasonality dummies, holidays, trends (linear/quadratic time). Product Regular price, distribution (ACV %), SKU attributes (e.g., size, flavor). Store Store size, type (e.g., chain/independent), region. Market Competitor promo flags/pricing, economic indices (e.g., CPI). Customer For leakage: Customer segments (loyalty tiers, geography).
Panel Structure : Minimum 2+ years historical data; 20%+ stores/SKUs as controls (non-promoted matches).
2. Model Equations
All models use fixed effects (store + week) to control for unobserved heterogeneity. Estimate via OLS regression (or GLM for count data).
A. Uplift Measurement (Gross Lift)
Goal : Incremental sales from promotion on targeted SKUs/stores.
DiD Regression :
code Copy code
log(Sales_{i,j,t}) = β0 + β1 * Promo_{i,j,t} + β2 * PostPromo_t + β3 * Treated_i +
β4 * (Promo_{i,j,t} × PostPromo_t) + γ * Controls + α_i + δ_t + ε_{i,j,t}
i: Store/SKU, j: Group (treated/control), t: Time.
Uplift (β4) : % sales lift attributable to promo (interaction term).
Absolute Uplift = Baseline Sales × β4.
Baseline Sales : Predicted sales from model without promo flag.
Validation : Parallel trends test (pre-promo trends similar for treated/control).
B. Cannibalization Control
Goal : Measure sales loss on non-promoted SKUs in the same store/category/period.
Cannibalization Regression (run on non-promo SKUs):
code Copy code
log(Sales_nonpromo_{i,k,t}) = γ0 + γ1 * Promo_on_competitor_SKU_{i,t} +
γ2 * PostPromo_t + γ * Controls + α_i + δ_t + ε
k: Non-promo SKU in same category/store.
Cannibalization (γ1) : % sales drop (typically negative).
Total Cannibalization = Σ (Baseline_nonpromo × |γ1|) across affected SKUs.
Store-Level Cannib : Aggregate to store: % of category sales shifting to promo SKU.
C. Leakage Controls
Goal : Quantify benefits to non-targeted customers/stores (e.g., cross-border shopping, non-loyal customers).
Leakage Regression (on non-targeted units):
code Copy code
log(Sales_non_target_{m,t}) = λ0 + λ1 * Nearby_Promo_t + λ * Controls + α_m + δ_t + ε
m: Non-target store/customer.
Nearby_Promo : Distance-weighted promo intensity (e.g., geo-fenced; 1 if <10km).
Leakage (λ1) : % unintended lift.
Total Leakage = Σ (Baseline_non_target × λ1).
Advanced Controls :
Geo-Fencing : Use lat/long for proximity decay (e.g., exponential: exp(-distance/σ)).
Customer-Level : Segment by zip code, loyalty ID; flag "leak" if non-eligible redeems.
Pass-Through : Retailer margin capture (leakage if retailer doesn't pass full discount).
D. Net Effectiveness & ROI
code Copy code
Net Uplift = Gross Uplift - Cannibalization - Leakage
Incremental Revenue = Net Uplift × Avg Price
ROI = (Incremental Revenue - Promo Cost) / Promo Cost
Promo Cost = (Discount % × Baseline Volume × Cost of Goods) + Trade Allowances
Break-Even Uplift : Promo Depth / Gross Margin.
3. Implementation Workflow (Python Pseudocode with Pandas/Statsmodels)
python Copy code
import pandas as pd
import statsmodels.api as sm
from sklearn.model_selection import train_test_split
# Step 1: Load & Prep Data
df = pd.read_csv('sales_data.csv') # Columns: store_id, sku_id, week, sales, promo_flag, price, etc.
df['log_sales'] = np.log(df['sales'] + 1)
df['treated'] = df['store_id'].isin(promoted_stores)
df['post'] = df['week'] >= promo_start_week
df['did'] = df['promo_flag'] * df['post'] # Interaction
# Fixed Effects: Store + Week dummies
fe_store = pd.get_dummies(df['store_id'], prefix='store')
fe_week = pd.get_dummies(df['week'], prefix='week')
X = pd.concat([df[['promo_flag', 'post', 'treated', 'did', 'price', 'season']], fe_store, fe_week], axis=1)
# Step 2: Uplift Model
model_uplift = sm.OLS(df['log_sales'], sm.add_constant(X)).fit()
uplift_pct = model_uplift.params['did'] # e.g., 0.15 = 15% lift
# Step 3: Cannibalization (filter non-promo SKUs)
df_nonpromo = df[df['promo_flag'] == 0]
# Run similar regression with 'promo_on_cat' flag
model_cann = sm.OLS(df_nonpromo['log_sales'], sm.add_constant(X_nonpromo)).fit()
cann_pct = model_cann.params['promo_on_cat'] # e.g., -0.08 = 8% erosion
# Step 4: Leakage (non-target stores)
df_nontarget = df[~df['treated']]
# Add 'nearby_promo' (geo calc)
model_leak = sm.OLS(df_nontarget['log_sales'], sm.add_constant(X_leak)).fit()
leak_pct = model_leak.params['nearby_promo']
# Step 5: Net Metrics
baseline = model_uplift.fittedvalues[df['promo_flag']==0].mean()
gross_uplift = baseline * uplift_pct * num_promo_units
net_uplift = gross_uplift * (1 - abs(cann_pct) - leak_pct)
roi = (net_uplift * avg_price - promo_cost) / promo_cost
4. Diagnostics & Best Practices
Robustness Checks :
Issue Test/Fix Endogeneity Instrumental variables (e.g., promo planned far in advance). Heterogeneity Interact promo with store size/region. Overfitting Cross-validation; LASSO for high-dim controls. Parallel Trends Plot pre-promo sales trends.
Lift Table (Example Output):
Promo Event Gross Uplift (%) Cannibalization (%) Leakage (%) Net Uplift (%) ROI Q1 Flash Sale 25% -5% -3% 17% 2.1x Summer Bundle 18% -8% -2% 8% 1.2x
Optimization Tips :
Target high-margin SKUs; short-duration promos reduce cann/leak.
A/B Test: Randomize 50% stores.
Scale with ML: XGBoost for baseline prediction.
This model is production-ready, scalable to BigQuery/Snowflake. Provide your data schema for customization—elementary, my dear Watson! 🚀