Skip to content
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

mbg-cnbd-k: ConditionalExpectedTransactions - why length >= 100 #73

Open
gfmartins opened this issue Mar 5, 2019 · 0 comments
Open

Comments

@gfmartins
Copy link

gfmartins commented Mar 5, 2019

this may be a dumb one... The model mbg-cnbd-k.R has the ConditionalExpectedTransactions function, where there is code to correct for bias. My question is: why length >= 100? is this some rule of thumb? what's the rational behind it? This makes the forecasts conditional to the length of the vector, and not only to their past behaviour. Am I missing something?

I also do not understand the comment: "Only do so, if we can safely assume that the full customer cohort is passed."

# Adjust bias BG/NBD-based approximation by scaling via the Unconditional
# Expectations (for wich we have exact expression). Only do so, if we can
# safely assume that the full customer cohort is passed.
do.bias.corr <- k > 1 && length(x) == length(t.x) 
                            && length(x) == length(T.cal) && length(x) >= 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant