AMMM Documentation

Welcome to AMMM

This library provides a practical framework for building, analysing, and optimising Marketing Mix Models using Bayesian methods with PyMC. Whether you’re new to MMM or an experienced practitioner, AMMM provides tools for rigourous, evidence-led marketing attribution.

Key Features: Bayesian inference • Adstock transformations • Saturation curves • Budget optimisation • Prophet seasonality • Model convergence checks • ELPD-based model selection • Transfer entropy analysis • Stationarity and multicollinearity checks

Documentation Sections

Getting Started

New to AMMM? Start here for installation, data preparation, and running your first model.

Perfect for: First-time users, quick setup

Getting Started
How-to Guides

Practical step-by-step guides for common MMM tasks like configuring models, interpreting results, and optimising budgets.

Perfect for: Completing specific tasks

How-to Guides
Explanation

Deep dives into MMM methodology, model components, statistical concepts, and the theory behind the framework.

Perfect for: Understanding concepts

Explanation
API Reference

Technical details including configuration parameters, output file descriptions, and complete API documentation. API pages are generated at build time by AutoAPI.

Perfect for: Detailed specifications

API Reference
Diagnostics

Data validation tools, model diagnostic checks, and guidance for ensuring robust model performance.

Perfect for: Quality assurance

Diagnostics API
Troubleshooting

Solutions for common errors, performance tips, debugging strategies, and frequently asked questions.

Perfect for: Solving problems

Troubleshooting Guide/home/user/Docu/home/user/Documents/Griffin_Github_Master/ammm/documentation/source/diagnosticsments/Griffin_Github_Master/ammm/documentation/source/diagnostics

MMM Workflow

        graph LR
    A[Prepare Data] --> B[Configure Model]
    B --> C[Fit Model]
    C --> D[Validate Results]
    D --> E[Optimise Budget]
    D --> F{Satisfied?}
    F -->|No| B
    F -->|Yes| G[Deploy Insights]
    
    style A fill:#bbdefb,stroke:#1976d2,stroke-width:2px
    style C fill:#ffe0b2,stroke:#f57c00,stroke-width:2px
    style D fill:#b2dfdb,stroke:#00897b,stroke-width:2px
    style E fill:#c8e6c9,stroke:#388e3c,stroke-width:2px
    style G fill:#c8e6c9,stroke:#388e3c,stroke-width:2px
    

Documentation Structure

  1. Getting Started: Installation and first model tutorials

  2. How-to Guides: Task-oriented guides for specific objectives

  3. Explanation: Conceptual background and methodology

  4. Reference: Technical specifications and API docs

  5. Diagnostics: Validation and quality assurance

  6. Troubleshooting: Problem-solving and debugging


About this documentation

  • Practitioners: Start with Getting Started → Quickstart, then run the pipeline via runme.py.

  • Engineers: See Guides and the API Reference. API pages are produced during the build by AutoAPI.

  • Analysts: Refer to the Output Schema and Guides on interpreting results to work with CSV outputs.

Additional Resources