The R Package MitISEM: Efficient and Robust Simulation Procedures for Bayesian Inference

Nalan Basturk*, Stefano Grassi, Lennart Hoogerheide, Anne Opschoor, Herman K. van Dijk

*Corresponding author for this work

Research output: Contribution to journalArticleAcademicpeer-review

Abstract

This paper presents the R package MitISEM (mixture of t by importance sampling weighted expectation maximization) which provides an automatic and flexible two-stage method to approximate a non-elliptical target density kernel - typically a posterior density kernel - using an adaptive mixture of Student t densities as approximating density. In the first stage a mixture of Student t densities is fitted to the target using an expectation maximization algorithm where each step of the optimization procedure is weighted using importance sampling. In the second stage this mixture density is a candidate density for efficient and robust application of importance sampling or the Metropolis-Hastings (MH) method to estimate properties of the target distribution. The package enables Bayesian inference and prediction on model parameters and probabilities, in particular, for models where densities have multi-modal or other non-elliptical shapes like curved ridges. These shapes occur in research topics in several scientific fields. For instance, analysis of DNA data in bio-informatics, obtaining loans in the banking sector by heterogeneous groups in financial economics and analysis of education's effect on earned income in labor economics. The package MitISEM provides also an extended algorithm, 'sequential MitISEM', which substantially decreases computation time when the target density has to be approximated for increasing data samples. This occurs when the posterior or predictive density is updated with new observations and/or when one computes model probabilities using predictive likelihoods. We illustrate the MitISEM algorithm using three canonical statistical and econometric models that are characterized by several types of non-elliptical posterior shapes and that describe well-known data patterns in econometrics and finance. We show that MH using the candidate density obtained by MitISEM outperforms, in terms of numerical efficiency, MH using a simpler candidate, as well as the Gibbs sampler. The MitISEM approach is also used for Bayesian model comparison using predictive likelihoods.
Original languageEnglish
Pages (from-to)1-40
JournalJournal of Statistical Software
Volume79
Issue number1
DOIs
Publication statusPublished - Jul 2017

Keywords

  • finite mixtures
  • Student t densities
  • importance sampling
  • MCMC
  • Metropolis-Hastings algorithm
  • expectation maximization
  • Bayesian inference
  • R software

Cite this