R/RcppExports.R
effectiveSampleSize.Rd
The ESS is a "rule of thumb" for assessing the degeneracy of the importance distribution: $$ESS = \frac{(\sum_{q=1}^Q w_q)^2}{\sum_{q=1}^Q w_q^2}$$
effectiveSampleSize(log_weights)
log_weights | logarithms of the importance weights of each particle. |
---|
the effective sample size, a scalar between 0 and Q
Liu, JS (2001) "Monte Carlo Strategies in Scientific Computing." Springer, NY, pp. 34--36.
#> [1] 74.85258