Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Seasonality to CLV Models #219

Open
ColtAllen opened this issue Mar 28, 2023 · 1 comment
Open

Add Seasonality to CLV Models #219

ColtAllen opened this issue Mar 28, 2023 · 1 comment
Labels
CLV enhancement New feature or request

Comments

@ColtAllen
Copy link
Collaborator

Section 6 in https://www.brucehardie.com/notes/040/time-varying_covariates_in_BGNBD.pdf describes how BetaGeoModel can be extended to account for seasonality. I'm pretty sure this same methodology can be applied to the ParetoNBDModel and other models. Not gonna lie though - this will be involved and span multiple PRs.

Expanding clv.utils.clv_summary() for seasonality periods (and transactions within those periods) demands considerable pandas knowledge and will be the hardest part of this. Prophet might be a useful codebase for ideas. For the models themselves, hopefully logp can be wrapped in a pytensor.switch() statement to go back & forth between the high/low/etc. seasons.

@ColtAllen ColtAllen added enhancement New feature or request CLV labels Mar 28, 2023
@juanitorduz
Copy link
Collaborator

Nice idea! I have not gone into the details, but we already have a function to generate Fourier modes a la Prophet https://github.com/pymc-labs/pymc-marketing/blob/main/pymc_marketing/mmm/utils.py#L6-#L35 ;)
I plan to incorporate seasonality for the current mmm class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLV enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants