google-meridian

Meridian is an MMM framework that enables advertisers to set up and run their own in-house models.

https://github.com/google/meridian

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.9%) to scientific vocabulary

Keywords from Contributors

distribution interactive jax mesh interpretability reinforcement-learning benchmarking sequences generic projection
Last synced: 7 months ago · JSON representation ·

Repository

Meridian is an MMM framework that enables advertisers to set up and run their own in-house models.

Basic Info
Statistics
  • Stars: 1,099
  • Watchers: 62
  • Forks: 186
  • Open Issues: 108
  • Releases: 0
Created about 2 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Citation

README.md

About Meridian

Marketing mix modeling (MMM) is a statistical analysis technique that measures the impact of marketing campaigns and activities to guide budget planning decisions and improve overall media effectiveness. MMM uses aggregated data to measure impact across marketing channels and account for non-marketing factors that impact sales and other key performance indicators (KPIs). MMM is privacy-safe and does not use any cookie or user-level information.

Meridian is an MMM framework that enables advertisers to set up and run their own in-house models. Meridian helps you answer key questions such as:

  • How did the marketing channels drive my revenue or other KPI?
  • What was my marketing return on investment (ROI)?
  • How do I optimize my marketing budget allocation for the future?

Meridian is a highly customizable modeling framework that is based on Bayesian causal inference. It is capable of handling large scale geo-level data, which is encouraged if available, but it can also be used for national-level modeling. Meridian provides clear insights and visualizations to inform business decisions around marketing budget and planning. Additionally, Meridian provides methodologies to support calibration of MMM with experiments and other prior information, and to optimize target ad frequency by utilizing reach and frequency data.

If you are using LightweightMMM, see the migration guide to help you understand the differences between these MMM projects.

Install Meridian

Python 3.11 or 3.12 is required to use Meridian. We also recommend using a minimum of 1 GPU.

Note: This project has been tested on T4 GPU using 16 GB of RAM.

To install Meridian, run the following command to automatically install the latest release from PyPI.

  • For Linux-GPU users:

    Note: CUDA toolchain and a compatible GPU device is necessary for [and-cuda] extra to activate.

    sh $ pip install --upgrade google-meridian[and-cuda]

  • For macOS and general CPU users:

    Note: There is no official GPU support for macOS.

    sh $ pip install --upgrade google-meridian

Alternatively, run the following command to install the most recent, unreleased version from GitHub.

  • For GPU users:

    sh $ pip install --upgrade "google-meridian[and-cuda] @ git+https://github.com/google/meridian.git"

  • For CPU users:

    sh $ pip install --upgrade git+https://github.com/google/meridian.git

We recommend to install Meridian in a fresh virtual environment to make sure that correct versions of all the dependencies are installed, as defined in pyproject.toml.

How to use the Meridian library

To get started with Meridian, you can run the code programmatically using sample data with the Getting Started Colab.

The Meridian model uses a holistic MCMC sampling approach called No U Turn Sampler (NUTS) which can be compute intensive. To help with this, GPU support has been developed across the library (out-of-the-box) using tensors. We recommend running your Meridian model on GPUs to get real time optimization results and significantly reduce training time.

Meridian Documentation & Tutorials

The following documentation, colab, and video resources will help you get started quickly with using Meridian:

| Resource | Description | | --------------------------- | ---------------------------------------------- | | Meridian documentation | Main landing page for Meridian documentation. | | Meridian basics | Learn about Meridian features, methodologies, and the model math. | | Getting started colab | Install and quickly learn how to use Meridian with this colab tutorial using sample data. | | User guide | A detailed walk-through of how to use Meridian and generating visualizations using your own data. | | Pre-modeling | Prepare and analyze your data before modeling. | | Modeling | Modeling guidance for model refinement and edge cases. | | Post-modeling | Post-modeling guidance for model fit, visualizations, optimizations, refreshing the model, and debugging. | | Migrate from LMMM | Learn about the differences between Meridian and LightweightMMM as you consider migrating. | | API Reference | API reference documentation for the Meridian package. | | Reference list | White papers and other referenced material. |

Support

Questions about methodology: Please see the Modeling tab in the technical documentation.

Issues installing or using Meridian: Feel free to post questions in the Discussions or Issues tabs of the Meridian GitHub repository. The Meridian team responds to these questions weekly in batches, so please be patient and don't reach out directly to your Google Account teams.

Bug reports: Please post bug reports to the Issues tab of the Meridian GitHub repository. We also encourage the community to share tips and advice with each other on the Issues tab. When our team addresses or resolves a new bug, we will notify you through the comments on the issue.

Feature requests: Please post these to the Discussions tab of the Meridian GitHub repository. We have an internal roadmap for Meridian development, but would love your inputs for new feature requests so that we can prioritize them based on the roadmap.

Pull requests: These are appreciated but are very difficult for us to merge because the code in this repository is linked to Google internal systems and has to pass internal review. If you submit a pull request and we believe that we can incorporate a change in the base code, we will reach out to you directly about this.

Citing Meridian

To cite this repository:

BibTeX @software{meridian_github, author = {Google Meridian Marketing Mix Modeling Team}, title = {Meridian: Marketing Mix Modeling}, url = {https://github.com/google/meridian}, version = {1.1.7}, year = {2025}, }

Owner

  • Name: Google
  • Login: google
  • Kind: organization
  • Email: opensource@google.com
  • Location: United States of America

Google ❤️ Open Source

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "Meridian: Marketing Mix Modeling"
authors:
  - name: "Google Meridian Marketing Mix Modeling Team"
year: 2025
url: "https://github.com/google/meridian"

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 517
  • Total Committers: 17
  • Avg Commits per committer: 30.412
  • Development Distribution Score (DDS): 0.781
Past Year
  • Commits: 315
  • Committers: 13
  • Avg Commits per committer: 24.231
  • Development Distribution Score (DDS): 0.768
Top Committers
Name Email Commits
Santoso Wijaya s****a@g****m 113
Lukasz Mazurek l****z@g****m 109
The Meridian Authors n****y@g****m 69
Viktoriia Schwartz v****a@g****m 63
Yeonjae Park y****k@g****m 57
Andy Tan a****n@g****m 46
Rieman Li r****i@g****m 16
Edgar Zhu e****u@g****m 13
Travis Hamm t****m@g****m 9
Vivek Beniwal v****l@g****m 8
Avishai Halev a****v@g****m 6
Ken Luo k****o@g****m 2
Lolita Nazarov l****v@g****m 2
Azis Alvriyanto n****y@m****m 1
Rebecca Chen r****n@g****m 1
Ronelle Caguioa r****e@g****m 1
dependabot[bot] 4****] 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 112
  • Total pull requests: 255
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 4 days
  • Total issue authors: 60
  • Total pull request authors: 8
  • Average comments per issue: 1.16
  • Average comments per pull request: 0.09
  • Merged pull requests: 138
  • Bot issues: 2
  • Bot pull requests: 247
Past Year
  • Issues: 110
  • Pull requests: 255
  • Average time to close issues: 30 days
  • Average time to close pull requests: 4 days
  • Issue authors: 58
  • Pull request authors: 8
  • Average comments per issue: 1.12
  • Average comments per pull request: 0.09
  • Merged pull requests: 138
  • Bot issues: 2
  • Bot pull requests: 247
Top Authors
Issue Authors
  • Nir4 (12)
  • annie-gulati (6)
  • paul-jdfagan (6)
  • markjrieke (6)
  • sonriks6 (5)
  • sidarthh (5)
  • AdimDrewnik (4)
  • adeelh1 (4)
  • jayjoshi33 (3)
  • cetagostini-wise (3)
  • trevorsmith-iherb (2)
  • copybara-service[bot] (2)
  • HoussemBouazizi (2)
  • gfi1ippou (2)
  • lpiscusc (2)
Pull Request Authors
  • copybara-service[bot] (247)
  • mltuto (2)
  • fyvri (1)
  • dylan-wang-eure (1)
  • ArJastrzebski (1)
  • vbose01 (1)
  • sajzadshoyeb (1)
  • yujiosaka (1)
Top Labels
Issue Labels
enhancement (2) duplicate (2) question (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 20,819 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 18
  • Total maintainers: 1
pypi.org: google-meridian

Google's open source mixed marketing model library, helps you understand your return on investment and direct your ad spend with confidence.

  • Documentation: https://google-meridian.readthedocs.io/
  • License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  • Latest release: 1.1.6
    published 9 months ago
  • Versions: 18
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 20,819 Last month
Rankings
Dependent packages count: 9.7%
Average: 32.2%
Dependent repos count: 54.7%
Maintainers (1)
Last synced: 7 months ago

Dependencies

pyproject.toml pypi
  • altair >= 4.2.0, < 5
  • arviz *
  • immutabledict *
  • joblib *
  • numpy >= 1.26, < 2
  • pandas >= 1.5.3, < 2
  • scipy >= 1.12.0, < 1.13
  • tensorflow >= 2.15, < 2.16
  • tensorflow-probability >= 0.23, < 0.24
  • xarray *
setup.py pypi
.github/actions/build/action.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
.github/actions/create-version-tag/action.yml actions
  • actions/checkout v4 composite
  • actions/github-script v6 composite
.github/actions/install-meridian/action.yml actions
  • actions/setup-python v5 composite
.github/actions/version-check/action.yml actions
  • ./.github/actions/install-meridian * composite
  • actions/checkout v4 composite
.github/workflows/ci.yml actions
  • ./.github/actions/build * composite
  • ./.github/actions/install-meridian * composite
  • ./.github/actions/version-check * composite
  • actions/checkout v4 composite
.github/workflows/publish.yml actions
  • ./.github/actions/build * composite
  • ./.github/actions/create-version-tag * composite
  • ./.github/actions/version-check * composite
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite