Skip to content

Commit

Permalink
Update beta_geo.py
Browse files Browse the repository at this point in the history
Correcting the expected alive probability theoretical formula
  • Loading branch information
konkinit authored and ricardoV94 committed Aug 10, 2023
1 parent 601fca8 commit 882fffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymc_marketing/clv/models/beta_geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ def expected_probability_alive(
derivation of the closed form solution is available in [2].
.. math::
P\left\text{alive} \mid x, t_x, T, r, \alpha, a, b\right)
P\left( \text{alive} \mid x, t_x, T, r, \alpha, a, b \right)
= 1 \Big/
\left\{
1 + \delta_{x>0} \frac{a}{b + x - 1}
\left(
\frac{\alpha + T}{\alpha + t_x}^{r + x}
\right)^{r x}
\frac{\alpha + T}{\alpha + t_x}
\right)^{r + x}
\right\}
"""
T = np.asarray(T)
Expand Down

0 comments on commit 882fffa

Please sign in to comment.