Skip to content

witttingtorch/bayesian-incrementality-geo-lift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Bayesian Incrementality & Geo-Lift Modeling

A production-ready causal inference project focused on measuring incrementality using Bayesian methods and geo-based experiments.

This repository demonstrates how to estimate true causal lift from marketing interventions using Bayesian synthetic control and geo-experimentation.


🎯 Problem Statement

Standard attribution models often overstate marketing impact by confusing correlation with causation.

This project answers the real business question:

What would have happened if we had NOT run the campaign?


🧠 Methodology

  • Bayesian Synthetic Control
  • Geo-based experiment design (test vs control regions)
  • Counterfactual outcome estimation
  • Posterior credible intervals for lift
  • Incrementality (ATT / Causal Lift) estimation

πŸ“Š Key Outputs

  • Counterfactual vs observed time series
  • Incremental lift curves with uncertainty
  • Cumulative and marginal impact estimates
  • Decision-ready summaries for stakeholders

πŸ“ Project Structure

bayesian-incrementality-geo-lift/
β”œβ”€β”€ notebooks/        # Exploratory and methodological notebooks
β”œβ”€β”€ src/causal/       # Core causal modeling logic
β”œβ”€β”€ src/viz/          # Lift & impact visualizations
β”œβ”€β”€ data/             # Simulated geo-level dataset

πŸš€ Quick Start

pip install pymc arviz numpy pandas matplotlib

Run the causal model:

python src/causal/geo_experiment.py

πŸ§ͺ Notebooks

  1. 01_synthetic_geo_data.ipynb

    • Simulate geo-level time series data
    • Define treatment and control regions
  2. 02_bayesian_synthetic_control.ipynb

    • Fit Bayesian synthetic control model
    • Estimate counterfactual outcomes
    • Compute incremental lift

⚠️ Data

The dataset provided is fully simulated and included for demonstration purposes only.

No proprietary or confidential data is used.


πŸ›  Tech Stack

  • PyMC
  • ArviZ
  • NumPy / pandas
  • Matplotlib
  • Bayesian causal inference

πŸ“„ License

MIT License

About

Bayesian causal inference for marketing incrementality using geo experiments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages