Description Usage Arguments Details Value References Examples
Returns the number of transactions that a randomly chosen customer (for whom we have no prior information) is expected to make in the first n transaction opportunities.
1 | bgbb.Expectation(params, n)
|
params |
BG/BB parameters - a vector with alpha, beta, gamma, and delta, in that order. Alpha and beta are unobserved parameters for the beta-Bernoulli transaction process. Gamma and delta are unobserved parameters for the beta-geometric dropout process. |
n |
number of transaction opportunities; may also be a vector. |
E(X(n) | alpha, beta, gamma, delta)
Mean of the BG/BB probability mass function.
Fader, Peter S., Bruce G.S. Hardie, and Jen Shang. "Customer-Base Analysis in a Discrete-Time Noncontractual Setting." Marketing Science 29(6), pp. 1086-1108. 2010. INFORMS. Web.
1 2 3 4 5 6 7 | params <- c(1.20, 0.75, 0.66, 2.78)
# Expected number of transactions that a randomly chosen customer
# will make in the first 10 transaction opportunities.
bgbb.Expectation(params, n=10)
# We can also compare expected transactions over time:
bgbb.Expectation(params, n=1:10)
|
Loading required package: hypergeo
[1] 3.16499
[1] 0.4973166 0.9207078 1.2927317 1.6266289 1.9309062 2.2113893 2.4722624
[8] 2.7166434 2.9469256 3.1649902
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.