powered by
Computes the effective sample size from historical data given a discounting parameter.
effective_sample_size(m, a0)
Effective sample size (numeric)
Sample size of historical data
Discounting parameter
# With 100 historical observations and 50% discounting effective_sample_size(100, a0 = 0.5) # Returns 50
Run the code above in your browser using DataLab