Frydman AI
A professional using Trade-IA on a smartphone
All products

Trade Marketing AI

Trade-IA

Science-driven retail execution: the real effect of every trade action and the budget in the right place, store by store.

What it is

An AI product to optimize in-store execution. You upload the store × week history with the actions (secondary display, flyer, sampling, merchandiser, price cut, POS material) and a proprietary engine measures each one's causal effect by difference-in-differences with store and week fixed effects, tests for pre-trends, separates what runs through stockouts and allocates the budget by store and week under budget, capacity and diminishing returns.

Applications

  • Causal effect per action with confidence interval and event study
  • Pre-trend test and assumptions always labeled
  • Effect by cluster, banner or region
  • Sales lost to stockouts and the value of each OSA point
  • Store × week plan by integer programming, with ROI and payback
  • 100 ready-made cases and a perfect store index with ranking

Trade-IA shows which trade actions truly sell, how much each yields per store and where to put every unit of budget next week.

Scientific basis

The science, algorithms and models behind Trade-IA

Trade-IA does not ask an AI how much an extra display sells. A proprietary, deterministic engine measures, in your store history, the CAUSAL effect of every trade action, tests whether the comparison is fair, separates what runs through a stocked shelf, and only then allocates the budget by store and week under budget, capacity and diminishing returns. The AI only explains the numbers the engine computed.

  1. 01

    Store × week panel with fixed effects

    Spreadsheet rows become a store × week panel (sales summed, action by its highest intensity, OSA and share averaged). The model uses log sales with one fixed effect per store (size, location) and one per week (seasonality, holidays, weather, competitor pricing that hits everyone). Fixed effects are absorbed by alternating projections, which also work when stores open, close or miss weeks; residuals beyond 5 robust deviations (MAD) are dropped and the model is refit.

    yᵢₜ = αᵢ + γₜ + Σₖ βₖ·Dₖᵢₜ + εᵢₜ, y = ln(q + 1)

    References: Angrist & Pischke (2009) · Guimarães & Portugal (2010) · Correia (2016)

  2. 02

    Difference-in-differences with staggered adoption

    Each action's effect is the gap between a store with and without the action, net of the change seen by stores without it in the same week. All actions enter together, so each controls for the others. It works because stores adopt actions in different weeks. The engine assumes a time-constant effect within each cluster; when effects change with adoption timing this estimator can mix comparisons, which is why the event study comes with it.

    β̂ = (X̃ᵀX̃)⁻¹ X̃ᵀỹ

    References: Card & Krueger (1994) · Goodman-Bacon (2021) · de Chaisemartin & D'Haultfœuille (2020)

  3. 03

    Store-clustered errors

    Sales of the same store in consecutive weeks are correlated, and ignoring it makes any action look significant. The confidence interval uses the sandwich matrix clustered by store, with the CR1 small-sample correction and Student's t with (stores minus 1) degrees of freedom. Actions with few treated stores get a weak-identification warning.

    V̂ = c · (X̃ᵀX̃)⁻¹ (Σ_g X̃_gᵀ û_g û_gᵀ X̃_g) (X̃ᵀX̃)⁻¹

    References: Liang & Zeger (1986) · Arellano (1987) · Bertrand, Duflo & Mullainathan (2004) · Cameron & Miller (2015)

  4. 04

    Event study and pre-trend test

    For each action the engine estimates the week-by-week difference relative to the start of the action (the prior week is the reference), using never-adopting stores as controls. If the weeks BEFORE the start already show a difference (joint Wald test, p < 0.05), the chosen stores were already different: the effect may be inflated, a warning appears and, if a stated effect exists, the plan uses the assumption.

    F = (Rδ̂)ᵀ (R V̂ Rᵀ)⁻¹ (Rδ̂) / q, k ∈ [−a, −2]

    References: Autor (2003) · Sun & Abraham (2021) · Roth (2022)

  5. 05

    Heterogeneity by cluster with shrinkage

    The same regression with action × cluster (banner, format, region) measures the effect in each group, with an equality test. Each cluster effect is shrunk toward the overall effect by the between-cluster variance weight (DerSimonian and Laird): a cluster with little evidence stays near the mean, one with strong evidence keeps its value. The plan uses the shrunk effect.

    β̃_c = (τ²·β̂_c + s_c²·β̂) / (τ² + s_c²)

    References: DerSimonian & Laird (1986) · Efron & Morris (1975)

  6. 06

    Stockouts as a mediator

    With the availability (OSA) column, the engine measures how much each action moves the stocked shelf (path a), how much OSA moves sales with actions held fixed (path b) and the indirect part a·b, with Sobel's error. From this come lost sales due to stockouts in each store and the gain of each OSA point. The action's total effect still comes from the regression without OSA, which is a mediator, not a control.

    I = θ·b, L = y·(e^{b(1 − OSA)} − 1)

    References: Baron & Kenny (1986) · Sobel (1982) · Gruen, Corsten & Bharadwaj (2002)

  7. 07

    Allocation by integer programming

    For each store and action, the profit of each week is incremental margin minus cost (a price cut charges the discount on every unit). The problem chooses how many weeks each pair runs, under the budget, weekly capacity (merchandisers, sampling staff), at most K actions per store-week and setup costs. When it fits, it is solved by simplex with branch-and-bound and the result states whether optimality was proven.

    max Σ (mₗₐₖ − cₗₐₖ)·zₗₐₖ | Σ c·z ≤ B, Σₐ zₗₐ ≤ K·W, Σₗ zₗₐ ≤ capₐ·W

    References: Dantzig (1963) · Land & Doig (1960) · Bland (1977)

  8. 08

    Greedy by marginal ratio, local search and an honest bound

    A greedy pass by the profit/cost ratio of each next step (with the opening bundle that pays the setup) always runs too, followed by a local search that removes one step or a whole pair and refills. The better of the two solutions is kept, scored identically. The gap shown is against the fractional budget relaxation, which ignores capacities: the real gap is smaller or equal.

    j* = argmax Δπⱼ / Δcⱼ, π ≤ π̄(B)

    References: Dantzig (1957) · Martello & Toth (1990) · Aarts & Lenstra (1997)

  9. 09

    Diminishing returns, ROI and the perfect store

    The same action repeated in the same store yields less (fatigue), along a concave step curve you define. ROI and setup payback come out by action, with the range recomputed at the ends of the effect's interval; the conservative criterion plans with the 80% lower bound. The perfect store index is a weighted checklist (OSA, share of shelf, action execution) from 0 to 100, descriptive and not causal.

    ROI = (M − C) / C, I = 100 · Σ wⱼ·sⱼ / Σ wⱼ

    References: Simon & Arndt (1980) · Blattberg & Neslin (1990) · Ailawadi et al. (2009)

The engine measures, the AI explains

Every number on screen comes from explicit, reproducible math: the same spreadsheet, model and seed give the same result. An effect without history enters only as a labeled ASSUMPTION, and the engine warns when the data does not support the conclusion (pre-trend, interval including zero, few treated stores).