eff_sample_size function

Effective sample size

Effective sample size

Estimate the effective sample size of a Monte Carlo computation.

## S4 method for signature 'bsmcd_pomp' eff_sample_size(object, ..., format = c("numeric", "data.frame")) ## S4 method for signature 'pfilterd_pomp' eff_sample_size(object, ..., format = c("numeric", "data.frame")) ## S4 method for signature 'wpfilterd_pomp' eff_sample_size(object, ..., format = c("numeric", "data.frame")) ## S4 method for signature 'pfilterList' eff_sample_size(object, ..., format = c("numeric", "data.frame"))

Arguments

  • object: result of a filtering computation
  • ...: ignored
  • format: format of the returned object

Details

Effective sample size is computed as

(i ⁣wit2)1,1/(sum(wit2)), \left(\sum_i\!w_{it}^2\right)^{-1},1/(sum(w_it^2)),

where witw_it is the normalized weight of particle ii at time tt.

See Also

More on sequential Monte Carlo methods: bsmc2(), cond_logLik(), filter_mean(), filter_traj(), kalman, mif2(), pfilter(), pmcmc(), pred_mean(), pred_var(), saved_states(), wpfilter()

Other extraction methods: coef(), cond_logLik(), covmat(), filter_mean(), filter_traj(), forecast(), logLik, obs(), pred_mean(), pred_var(), saved_states(), spy(), states(), summary(), time(), timezero(), traces()

  • Maintainer: Aaron A. King
  • License: GPL-3
  • Last published: 2025-01-08