A Bayesian Model for Online Activity Sample Sizes
Thomas Richardson, Yu Liu, James McQueen, Doug Hains
TL;DR
We address the challenge of predicting the number of new online participants in a future period given early-period data, explicitly accounting for heterogeneity in initiation times. The authors propose a hierarchical Bayesian Beta-Geometric model with censoring, enabling posterior predictive sampling of future accrual without reliance on heavy MCMC. They derive posteriors for per-user probabilities $\pi_i$ and hyperparameters $\alpha$, $\beta$, and show how to forecast second-period arrivals even when the total population size is unknown, using a robust plug-in approach for $n_0$ when necessary. Empirical evaluation on a large Amazon dataset demonstrates competitive predictive performance against baselines (e.g., ARIMA, log-linear, Random Forest) and supports practical deployment, with explicit discussion of robustness to $n_0$ and benefits of heterogeneity modeling.
Abstract
In many contexts it is useful to predict the number of individuals in some population who will initiate a particular activity during a given period. For example, the number of users who will install a software update, the number of customers who will use a new feature on a website or who will participate in an A/B test. In practical settings, there is heterogeneity amongst individuals with regard to the distribution of time until they will initiate. For these reasons it is inappropriate to assume that the number of new individuals observed on successive days will be identically distributed. Given observations on the number of unique users participating in an initial period, we present a simple but novel Bayesian method for predicting the number of additional individuals who will participate during a subsequent period. We illustrate the performance of the method in predicting sample size in online experimentation.
