# \#pymc-marketing

**URL:** https://discourse.pymc.io/tag/pymc-marketing/103.md?match_all_tags=true&page=1&tags%5B%5D=pymc-marketing

[Latest](https://discourse.pymc.io/latest.md) · [Categories](https://discourse.pymc.io/categories.md) · [Tags](https://discourse.pymc.io/tags.md)

**Page:** 2

---

## [Generate pymc-Code from a defined pymc-marketing MMM() model](https://discourse.pymc.io/t/generate-pymc-code-from-a-defined-pymc-marketing-mmm-model/16169)

<div class="topic-metadata">

**Author:** [@bayesian\_padawan](https://discourse.pymc.io/u/bayesian_padawan)\
**Replies:** 2\
**Last updated:** [November 29, 2024, 6:43pm UTC](https://discourse.pymc.io/t/generate-pymc-code-from-a-defined-pymc-marketing-mmm-model/16169 "2024-11-29T18:43:45Z")

</div>

Hi, I have been fitting a pymc-marketing model by using the MMM() constructor and customizing some parts of it using the model\_config parameter. I would now like to create the pymc code in the sense of with pm.Model(…

---

## [Budget Allocation in PYMC Marketing Mix Modeling](https://discourse.pymc.io/t/budget-allocation-in-pymc-marketing-mix-modeling/15049)

<div class="topic-metadata">

**Author:** [@VT02](https://discourse.pymc.io/u/VT02)\
**Replies:** 3\
**Last updated:** [November 28, 2024, 3:20pm UTC](https://discourse.pymc.io/t/budget-allocation-in-pymc-marketing-mix-modeling/15049 "2024-11-28T15:20:35Z")

</div>

Hi, I’m currently working on building a Marketing Mix Model (MMM) using the pymc-marketing package (version 0.8). After successfully building the model, I’m now focusing on optimizing budget allocation across various me…

---

## ['dayofyear' in sample\_posterior\_predictive Call in PyMC-Marketing](https://discourse.pymc.io/t/dayofyear-in-sample-posterior-predictive-call-in-pymc-marketing/16073)

<div class="topic-metadata">

**Author:** [@AnSaejin](https://discourse.pymc.io/u/AnSaejin)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 5:08pm UTC](https://discourse.pymc.io/t/dayofyear-in-sample-posterior-predictive-call-in-pymc-marketing/16073 "2024-11-21T17:08:53Z")

</div>

Title: KeyError: ‘dayofyear’ in sample\_posterior\_predictive Call in PyMC-Marketing Question: Hello, I’m using PyMC-Marketing to build a Marketing Mix Model (MMM). While running sample\_posterior\_predictive on my model, I…

---

## [Mmm.allocate\_budget\_to\_maximize\_response generating weird decimal places results](https://discourse.pymc.io/t/mmm-allocate-budget-to-maximize-response-generating-weird-decimal-places-results/14828)

<div class="topic-metadata">

**Author:** [@JenniferSiwu](https://discourse.pymc.io/u/JenniferSiwu)\
**Replies:** 18\
**Last updated:** [November 7, 2024, 1:16pm UTC](https://discourse.pymc.io/t/mmm-allocate-budget-to-maximize-response-generating-weird-decimal-places-results/14828 "2024-11-07T13:16:38Z")

</div>

Hi there, I am trying to utilize the budget allocation function using pymc-marketing version 0.7.0… I put the total budget as 5 (representing 5 Million) for 2 weeks… Below are my code… The result came out to weird decim…

---

## [Pymc-marketing pm.Potential(f())](https://discourse.pymc.io/t/pymc-marketing-pm-potential-f/16013)

<div class="topic-metadata">

**Author:** [@Stuart\_Kerr](https://discourse.pymc.io/u/Stuart_Kerr)\
**Replies:** 4\
**Last updated:** [October 26, 2024, 12:53am UTC](https://discourse.pymc.io/t/pymc-marketing-pm-potential-f/16013 "2024-10-26T00:53:30Z")

</div>

Thanks to all for a great probabilistic programming package and to @ricardoV94 who has answered my previous inquiries. In pymc-marketing, subsequent to defining the appropriate priors and executing: bgm = clv.BetaGeoMo…

---

## [Using known adstock values in MMM class](https://discourse.pymc.io/t/using-known-adstock-values-in-mmm-class/15983)

<div class="topic-metadata">

**Author:** [@Salviati](https://discourse.pymc.io/u/Salviati)\
**Replies:** 1\
**Last updated:** [October 17, 2024, 12:44pm UTC](https://discourse.pymc.io/t/using-known-adstock-values-in-mmm-class/15983 "2024-10-17T12:44:35Z")

</div>

I’m working in isolation on this project and I’m way over my head, so it’s time to ask a question that I think is quite simple: how do I use a known adstock decay function in the MMM class? I have blackout test data, an…

---

## [Can I get channel contribution inference from out of sample prediction](https://discourse.pymc.io/t/can-i-get-channel-contribution-inference-from-out-of-sample-prediction/14856)

<div class="topic-metadata">

**Author:** [@JenniferSiwu](https://discourse.pymc.io/u/JenniferSiwu)\
**Replies:** 8\
**Last updated:** [October 8, 2024, 2:00pm UTC](https://discourse.pymc.io/t/can-i-get-channel-contribution-inference-from-out-of-sample-prediction/14856 "2024-10-08T14:00:10Z")

</div>

Hi there! I am following the MMM notebook example for DelayedSaturatedMMM… I have finished the model development and fitted an out of sample predictions… My question is, from the out of samples prediction, how can i ext…

---

## [CLV modeling with extra regressors](https://discourse.pymc.io/t/clv-modeling-with-extra-regressors/14319)

<div class="topic-metadata">

**Author:** [@wgeary](https://discourse.pymc.io/u/wgeary)\
**Replies:** 6\
**Last updated:** [September 21, 2024, 8:10pm UTC](https://discourse.pymc.io/t/clv-modeling-with-extra-regressors/14319 "2024-09-21T20:10:24Z")

</div>

Hello, I am following the CLV Quickstart tutorial and fitting BG/NBD Model and Gamma-Gamma model on transaction data for a project. It’s working great, thank you for this amazing library! I am wondering: is it possible …

---

## [CLV Model - How To Quickstart](https://discourse.pymc.io/t/clv-model-how-to-quickstart/15072)

<div class="topic-metadata">

**Author:** [@Dylan](https://discourse.pymc.io/u/Dylan)\
**Replies:** 0\
**Last updated:** [September 13, 2024, 9:13am UTC](https://discourse.pymc.io/t/clv-model-how-to-quickstart/15072 "2024-09-13T09:13:01Z")

</div>

Hi there, I’m going through the CLV basic guide on pymc-marketing. I was wondering if I should first categorise the data into a few segments then create a CLV model for each segment. I would segment based on one or more …

---

## [\[PyMC-Marketing\] Question on total\_budget parameter for budget allocation model](https://discourse.pymc.io/t/pymc-marketing-question-on-total-budget-parameter-for-budget-allocation-model/14259)

<div class="topic-metadata">

**Author:** [@Pat\_Clark](https://discourse.pymc.io/u/Pat_Clark)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 3:49pm UTC](https://discourse.pymc.io/t/pymc-marketing-question-on-total-budget-parameter-for-budget-allocation-model/14259 "2024-08-14T15:49:41Z")

</div>

My question pertains to this example: https://www.pymc-marketing.io/en/stable/notebooks/mmm/mmm\_budget\_allocation\_example.html Specifically, consider the following config: total\_budget = 5 #Imagine is 5K or 5M #Define…

---

## [Pymc-marketing hierarchical (geo-level) model](https://discourse.pymc.io/t/pymc-marketing-hierarchical-geo-level-model/14919)

<div class="topic-metadata">

**Author:** [@ns1](https://discourse.pymc.io/u/ns1)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 11:18pm UTC](https://discourse.pymc.io/t/pymc-marketing-hierarchical-geo-level-model/14919 "2024-08-12T23:18:14Z")

</div>

Hello, I am new to pymc and exploring it for a MMM model. I see a couple open issues such as #334 about hierarchical model. Is the current solution to build out a custom model such as the one in the radon example? Addi…

---

## [Media mix models with negative coefficient of trend t](https://discourse.pymc.io/t/media-mix-models-with-negative-coefficient-of-trend-t/14813)

<div class="topic-metadata">

**Author:** [@kelvinho8](https://discourse.pymc.io/u/kelvinho8)\
**Replies:** 3\
**Last updated:** [August 1, 2024, 3:17am UTC](https://discourse.pymc.io/t/media-mix-models-with-negative-coefficient-of-trend-t/14813 "2024-08-01T03:17:57Z")

</div>

Hi everyone, Recently i used pymc marketing to build a media mix model for budget optimization. One thing that got me confused is that the actual y (revenue) as well as channel costs are in uptrend whereas I got a nega…

---

## [MMM modeling: Original and fitted channel contribution mismatch](https://discourse.pymc.io/t/mmm-modeling-original-and-fitted-channel-contribution-mismatch/14783)

<div class="topic-metadata">

**Author:** [@iamnewtopymc](https://discourse.pymc.io/u/iamnewtopymc)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 3:50pm UTC](https://discourse.pymc.io/t/mmm-modeling-original-and-fitted-channel-contribution-mismatch/14783 "2024-07-31T15:50:39Z")

</div>

Hi all, I have a modelling question with PyMC MMM package. Here I have two OTA channels (e.g. booking.com, airbnb) - let’s say they are channels A and B. We used spend instead of the recommended impressions for the mode…

---

## [Media mix models with negative intercept result](https://discourse.pymc.io/t/media-mix-models-with-negative-intercept-result/14812)

<div class="topic-metadata">

**Author:** [@kelvinho8](https://discourse.pymc.io/u/kelvinho8)\
**Replies:** 3\
**Last updated:** [July 31, 2024, 7:39am UTC](https://discourse.pymc.io/t/media-mix-models-with-negative-intercept-result/14812 "2024-07-31T07:39:15Z")

</div>

Hi everyone, Recently I tried to use pymc marketing media mix modelling to build a model for budget optimization, everything is fine except that I got confused by obtaining a negative intercept from the model results. A…

---

## [Covariates in PYMC-Marketing CLV Model](https://discourse.pymc.io/t/covariates-in-pymc-marketing-clv-model/14851)

<div class="topic-metadata">

**Author:** [@zweli](https://discourse.pymc.io/u/zweli)\
**Replies:** 2\
**Last updated:** [July 26, 2024, 5:10pm UTC](https://discourse.pymc.io/t/covariates-in-pymc-marketing-clv-model/14851 "2024-07-26T17:10:47Z")

</div>

I tried using a categorical variable in a Pareto NBD CLV model. Do covariates have to be continuous?

---

## [PYMC convergence error](https://discourse.pymc.io/t/pymc-convergence-error/14842)

<div class="topic-metadata">

**Author:** [@YT19](https://discourse.pymc.io/u/YT19)\
**Replies:** 4\
**Last updated:** [July 25, 2024, 5:38pm UTC](https://discourse.pymc.io/t/pymc-convergence-error/14842 "2024-07-25T17:38:10Z")

</div>

Hello, While fitting the pymc model I am getting a convergence error. Every time I add or remove features to be considered in the model, it throws me the same error. any idea on how can I resolve this in an efficient wa…

---

## [Test data giving negative R sq](https://discourse.pymc.io/t/test-data-giving-negative-r-sq/14843)

<div class="topic-metadata">

**Author:** [@VT02](https://discourse.pymc.io/u/VT02)\
**Replies:** 2\
**Last updated:** [July 25, 2024, 5:36pm UTC](https://discourse.pymc.io/t/test-data-giving-negative-r-sq/14843 "2024-07-25T17:36:14Z")

</div>

Hello, Thanks in advance for helping me out with this. I am very new to PYMC and would love all possible guidance on it. I am using DelayedSaturated MMM on my media data with external features like organic sessions, pr…

---

## [\[Beginner\] Test data giving negative R sq](https://discourse.pymc.io/t/beginner-test-data-giving-negative-r-sq/14831)

<div class="topic-metadata">

**Author:** [@YT19](https://discourse.pymc.io/u/YT19)\
**Replies:** 0\
**Last updated:** [July 23, 2024, 11:11pm UTC](https://discourse.pymc.io/t/beginner-test-data-giving-negative-r-sq/14831 "2024-07-23T23:11:56Z")

</div>

Hello, Thanks in advance for helping me out with this. I am very new to PYMC and would love all possible guidance on it. I am using DelayedSaturated MMM on my media data with external features like organic sessions, pr…

---

## [Pymc-marketing (adstock and saturation)](https://discourse.pymc.io/t/pymc-marketing-adstock-and-saturation/14007)

<div class="topic-metadata">

**Author:** [@juannii](https://discourse.pymc.io/u/juannii)\
**Replies:** 5\
**Last updated:** [July 22, 2024, 8:52am UTC](https://discourse.pymc.io/t/pymc-marketing-adstock-and-saturation/14007 "2024-07-22T08:52:56Z")

</div>

I am new in pymc-markeing and I after having replicated the “MMM Example Notebook” on my VScode, I was trying to do it again with different adstock model (in particular, I tried with Weibull PDF). I do not know how to do…

---

## ["%pip install pymc-marketing" only gives me pymc-marketing-0.1.1, not the version 0.6.0](https://discourse.pymc.io/t/pip-install-pymc-marketing-only-gives-me-pymc-marketing-0-1-1-not-the-version-0-6-0/14676)

<div class="topic-metadata">

**Author:** [@sean](https://discourse.pymc.io/u/sean)\
**Replies:** 3\
**Last updated:** [June 26, 2024, 4:23pm UTC](https://discourse.pymc.io/t/pip-install-pymc-marketing-only-gives-me-pymc-marketing-0-1-1-not-the-version-0-6-0/14676 "2024-06-26T16:23:02Z")

</div>

Hi team, I tried to install it on Databricks using $pip install pymc-marketing but it only gives me pymc-marketing-0.1.1, not the version 0.6.0. And then, I tried to reproduce the analysis on your web but got the error…

---

## [Mac M1 cant find Numpyro distribution for PYMC-Marketing](https://discourse.pymc.io/t/mac-m1-cant-find-numpyro-distribution-for-pymc-marketing/14674)

<div class="topic-metadata">

**Author:** [@Mark\_Stent](https://discourse.pymc.io/u/Mark_Stent)\
**Replies:** 1\
**Last updated:** [June 26, 2024, 8:36am UTC](https://discourse.pymc.io/t/mac-m1-cant-find-numpyro-distribution-for-pymc-marketing/14674 "2024-06-26T08:36:31Z")

</div>

I have had nothing but trouble getting Jax to work and now i cant find a distribution for Numpyro…making using PYMC-marketing useless for me. Does anyone have a workable solution that is not super technical?

---

## [PyMC Warning causing simulations to run very slowly](https://discourse.pymc.io/t/pymc-warning-causing-simulations-to-run-very-slowly/14589)

<div class="topic-metadata">

**Author:** [@Patrick\_O\_Rourke](https://discourse.pymc.io/u/Patrick_O_Rourke)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 12:34pm UTC](https://discourse.pymc.io/t/pymc-warning-causing-simulations-to-run-very-slowly/14589 "2024-06-17T12:34:51Z")

</div>

Hi, When I use pymc on Pycharm, I get the following warning: WARNING (pytensor.tensor.blas): Using NumPy C-API based implementation for BLAS functions. Can can i fix this as it is causing my MCMC simulations to run ve…

---

## [Model\_build raising NotImplemented Error with l\_max set to nonzero](https://discourse.pymc.io/t/model-build-raising-notimplemented-error-with-l-max-set-to-nonzero/14539)

<div class="topic-metadata">

**Author:** [@JenniferSiwu](https://discourse.pymc.io/u/JenniferSiwu)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 7:44pm UTC](https://discourse.pymc.io/t/model-build-raising-notimplemented-error-with-l-max-set-to-nonzero/14539 "2024-06-04T19:44:41Z")

</div>

Hi there, I’m relatively new to pymc-marketing and currently trying out the lift test calibration for my DelayedSaturatedMMM model. However, everytime i build the model, it raised this error: “NotImplementedError: At th…

---

## [Getting started with pymc-marketing - questions and doubts](https://discourse.pymc.io/t/getting-started-with-pymc-marketing-questions-and-doubts/14447)

<div class="topic-metadata">

**Author:** [@bayesian\_padawan](https://discourse.pymc.io/u/bayesian_padawan)\
**Replies:** 2\
**Last updated:** [May 18, 2024, 6:05pm UTC](https://discourse.pymc.io/t/getting-started-with-pymc-marketing-questions-and-doubts/14447 "2024-05-18T18:05:22Z")

</div>

Dear community, I am new to Bayesian modeling and am currently working my way through the “Bayesian Analysis with Python - Third Edition” book. As being a Data Scientist in a travel company busy with marketing analytics…

---

## [Pymc-marketing Install successful; bgm.fit() creates 7 errors](https://discourse.pymc.io/t/pymc-marketing-install-successful-bgm-fit-creates-7-errors/14439)

<div class="topic-metadata">

**Author:** [@Stuart\_Kerr](https://discourse.pymc.io/u/Stuart_Kerr)\
**Replies:** 6\
**Last updated:** [May 17, 2024, 9:34pm UTC](https://discourse.pymc.io/t/pymc-marketing-install-successful-bgm-fit-creates-7-errors/14439 "2024-05-17T21:34:16Z")

</div>

I have previously installed and successfully fit several pymc-marketing models on an Intel-silicon MacBookPro by activating an Anaconda environment and using jupyterlab: % conda create -c conda-forge -n pymc\_env "pymc\>=…

---

## [Prior Predictive Sampling in a Multilevel Linear Model](https://discourse.pymc.io/t/prior-predictive-sampling-in-a-multilevel-linear-model/14384)

<div class="topic-metadata">

**Author:** [@Toph](https://discourse.pymc.io/u/Toph)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 10:08pm UTC](https://discourse.pymc.io/t/prior-predictive-sampling-in-a-multilevel-linear-model/14384 "2024-05-07T22:08:35Z")

</div>

Hi all, Please excuse the long post. I am currently working on a multi-level linear model for a marketing mix prediction where there are four levels, with each level containing between 2 and 7 groups. For example, the …

---

## [Different distribution families for different channels / controls](https://discourse.pymc.io/t/different-distribution-families-for-different-channels-controls/14291)

<div class="topic-metadata">

**Author:** [@Jonas](https://discourse.pymc.io/u/Jonas)\
**Replies:** 4\
**Last updated:** [May 6, 2024, 9:13pm UTC](https://discourse.pymc.io/t/different-distribution-families-for-different-channels-controls/14291 "2024-05-06T21:13:39Z")

</div>

Hi! I have been playing around with PyMC Marketing to build an MMM. The predefined functionality, the plots etc, are very useful! I know the model\_config allows passing different parameters to adjust the priors for the…

[Previous page](https://discourse.pymc.io/tag/pymc-marketing/103.md?match_all_tags=true&tags%5B%5D=pymc-marketing)
