-
Notifications
You must be signed in to change notification settings - Fork 235
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 Individual Shifted Beta Geometric (sBG) model #133
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
e17b58e
to
efdc431
Compare
efdc431
to
b1c6c0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments and questions for now! 🙂
dc63495
to
4722d7d
Compare
I dug up a link to the research paper because I'm not familiar with this model: https://faculty.wharton.upenn.edu/wp-content/uploads/2012/04/Fader_hardie_jim_07.pdf Are there plans to add any of the other expressions in that paper like aggregate retention rate? There's even a discounted lifetime value function. Also, looking over the code I see a lot of redundancy in |
Yeah we can add them. In this case it's trivial to do whatever summary statistics we want since we have all the variables in the trace, including individual parameters. Once we do the model per-cohort we will need to look at the close form solutions in those papers. @ColtAllen Do you mind opening an issue for that?
Hmm... maybe, but I think it's simple enough. Just defining a new PyMC model that we can do posterior predictive on with the old fit. |
4722d7d
to
f3f4393
Compare
Changed |
Codecov Report
@@ Coverage Diff @@
## main #133 +/- ##
==========================================
+ Coverage 94.12% 94.45% +0.32%
==========================================
Files 17 18 +1
Lines 919 973 +54
==========================================
+ Hits 865 919 +54
Misses 54 54
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I think the indicated issue is not correct (is pointing to MMM transformations) |
f3f4393
to
fb58ea5
Compare
Addressed comments, ready for re-review |
fb58ea5
to
f47df8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not fully aware of the model details (I will have two), but overall the code looks nice to read. I let a small comment regarding a typo.
I read the paper looks great! I could support adding some formulas missing from the paper in another PR! So I think if you correct the typo above we can merge this one 🙂 |
f47df8c
to
fd38e51
Compare
Typo fixed @juanitorduz |
Found a typo in the notebook, fixing |
fd38e51
to
afb79f7
Compare
Closes #40
Closes #97
ToDO