mbgcnbd.pmf: (M)BG/CNBD-k Probability Mass Function
Description
Uses (M)BG/CNBD-k model parameters to return the probability distribution of
purchase frequencies for a random customer in a given time period, i.e.
\(P(X(t)=x|r,alpha,a,b)\).
Usage
mbgcnbd.pmf(params, t, x)
bgcnbd.pmf(params, t, x)
Arguments
params
A vector with model parameters k, r,
alpha, a and b, in that order.
t
Length end of time period for which probability is being computed.
May also be a vector.
x
Number of repeat transactions for which probability is calculated.
May also be a vector.
Value
\(P(X(t)=x|r,alpha,a,b)\). If either t or x is a
vector, then the output will be a vector as well. If both are vectors, the
output will be a matrix.
References
Platzer Michael, and Thomas Reutterer (forthcoming)
# NOT RUN {cbs <- cdnow.sample()$cbs # load CDNow summary dataparams <- mbgcnbd.EstimateParameters(cbs)
mbgcnbd.pmf(params, t = c(26, 52), x = 0:6)
mbgcnbd.pmf(params, t = 52, x = 0:6)
# }