Marketing Science

Part 2 | Beyond Attribution: How Causal Inference complements Modern MMM

Exploring structural causal models using DAGs, counterfactual reasoning, and frameworks like DoWhy and PyMC-Marketing

Cyril Noirot
By Cyril NoirotAugust 20, 20258 min read
Share on

The evolution of marketing measurement

Let me take you on a journey through how marketing measurement has evolved—and why even our best tools today still miss critical insights.


The Naive approach

Most companies begin their MMM journey with a simple regression:

Basic Regression Model in MMM

Sales = β₀ + β_tv·TV_spend + β_search·Search_spend + ... + β_display·Display_spend + controls + ε

Where:
Sales = Revenue, conversions, or other KPI
β₀ = Base sales (without marketing)
β_tv = TV advertising coefficient
β_search = Paid search coefficient
β_social = Social media ads coefficient
β_display = Display advertising coefficient
controls = Seasonality, promotions, competition
ε = Error term (unexplained variance)

Critical flaw: This model assumes each channel independently drives sales—ignoring how TV awareness enables search conversions, or how social amplifies display effectiveness.

# What 90% of companies try first
from sklearn.linear_model import LinearRegression
 
model = LinearRegression()
model.fit(
    X=[tv_spend, search_spend, social_spend, seasonality],
    y=sales
)
 
# Results that seem logical but are wrong:
# Search coefficient: 0.85 (Wow, search drives everything!)
# TV coefficient: 0.08 (TV barely matters?)
# Social coefficient: 0.12 (Social is weak?)

Why this fails spectacularly

This approach treats marketing like a vending machine: insert spend, get sales. But it misses everything that makes marketing actually work:

1. No Carryover effects

TV ads aired Monday still influence purchases on Friday. Basic regression only sees same-day correlation.

2. No Saturation curves

First $1000 in search delivers 100 conversions. Next $1000 delivers 20. Linear models assume constant returns.

3. No channel interactions

TV creates brand awareness that search captures. Regression treats them as independent, giving search all the credit.

Real-World impact

Here's what this mistake looks like in practice:

What Basic Regression Tells You

Branded Search

85%

TV

8%

Other

7%

The Actual Reality

Branded Search

25%

TV

65%

Other

10%

Result: You cut TV budget by 80%, increase search spend 3x, and watch sales plummet. Why? Because TV was creating the demand that search was capturing.


The Modern solution - Bayesian MMM frameworks

Enter Google-meridian and PyMC-Marketing

The industry has evolved. Modern frameworks like Google-Meridian and PyMC-Marketing have solved many of the basic regression problems:

# Modern Bayesian MMM (Meridian/PyMC-Marketing)
import pymc_marketing as pmm
 
model = pmm.MMM(
    adstock="geometric",  # Built-in carryover effects
    saturation="hill",    # Built-in diminishing returns
    time_varying_intercept=True  # Handles seasonality
)
 
model.fit(data)
# Much better results

What these tools get right

Google Meridian and PyMC-Marketing handle the mathematical heavy lifting with:

✅ Adstock/Carryover Effects

  • Geometric decay (simple, interpretable)
  • Weibull decay (flexible shape)
  • Channel-specific decay rates
  • Automatically learned from data

✅ Saturation Curves

  • Hill transformation for S-curves
  • Michaelis-Menten for immediate saturation
  • Channel-specific saturation points
  • Handles diminishing returns properly

Industry Benchmarks these tools use


The missing piece - Causal Structure

The Five Gaps in Modern MMM

1. Hidden Spillover Effects

Even with Meridian or PyMC-Marketing, you're still missing critical causal relationships:

Impact: The indirect path (TV through Search) gets 100% attributed to Search!

2. Unidentifiable Effects

3. Missing Confounders

Most MMMs don't include critical confounders:

# Hidden confounder example:
Price_Promotions → Media_Spend    # You advertise more during sales
Price_Promotions → Conversions    # Sales directly drive purchases
 
# Without controlling for pricing:
# Media effects overestimated by 30-40%

4. Competition Dynamics

# What's ignored:
Competitor_TV → Your_Search_Cost   # They raise awareness, you pay more for clicks
Competitor_Promo → Your_Conversion_Rate  # Their deals hurt your performance
Your_TV → Competitor_Search_Spend  # You create demand they capture

5. Operational constraints (optional)

# Never modeled but critically important:
Inventory_Levels → Max_Possible_Sales
Customer_Service_Capacity → Conversion_Rate
Website_Performance → Channel_Effectiveness

The Complete solution - Causal MMM - Combining modern tools with causal structure

The power of counterfactual thinking


Practical Implementation Guide

When to use each approach

Basic Regression

Never. Seriously, just don't.

❌ No adstock
❌ No saturation
❌ No causal structure

Meridian/PyMC-Marketing

Excellent starting point for most companies.

✅ Built-in transformations
✅ Uncertainty quantification
✅ Industry standard

Causal MMM

When you need to understand "why" not just "what".

✅ Handles spillovers
✅ Identifies confounders
✅ True incrementality

The Optimal workflow

  1. Start with Meridian/PyMC-Marketing for the mathematical transformations
  2. Map your causal structure using domain knowledge
  3. Combine both approaches for complete understanding
  4. Validate with experiments (geo-tests, time-based holdouts)

Key Takeaways

The future of marketing measurement isn't about choosing between tools—it's about combining their strengths. Modern Bayesian MMM gives us the mathematical sophistication. Causal inference gives us the why. Together, they reveal the true drivers of growth.

Remember: The goal isn't perfect attribution—it's understanding what actually drives growth. And that requires both mathematical sophistication AND causal thinking.


Resources and Next Steps

Tools to Explore

Further Reading


Series Index

  • Part 1: Inside Google Meridian (Causal MMM at Scale) → Read Part 1
  • Part 2: Beyond Attribution — Structural Causal Models for MMM ← You are here

Solutions

About the author

Cyril Noirot

Cyril Noirot

Lead Data Scientist

Freelance data scientist. I design and ship decision systems — forecasting, pricing, marketing measurement, optimization.

Newsletter

Technical writing on forecasting, pricing, and decision systems. No fixed schedule, no spam.

Enter your email
Subscribe