BetaGeoModel.expected_probability_alive#

BetaGeoModel.expected_probability_alive(customer_id, frequency, recency, T)[source]#

Posterior expected value of the probability of being alive at time T. The derivation of the closed form solution is available in [2]. :rtype: DataArray

\[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} \right)^{r + x} \right\}\]