Variational Inference for Shrinkage Priors: The R package vir

02/17/2021
by   Suchit Mehrotra, et al.
0

We present vir, an R package for variational inference with shrinkage priors. Our package implements variational and stochastic variational algorithms for linear and probit regression models, the use of which is a common first step in many applied analyses. We review variational inference and show how the derivation for a Gibbs sampler can be easily modified to derive a corresponding variational or stochastic variational algorithm. We provide simulations showing that, at least for a normal linear model, variational inference can lead to similar uncertainty quantification as the corresponding Gibbs samplers, while estimating the model parameters at a fraction of the computational cost. Our timing experiments show situations in which our algorithms converge faster than the frequentist LASSO implementations in glmnet while simultaneously providing superior parameter estimation and variable selection. Hence, our package can be utilized to quickly explore different combinations of predictors in a linear model, while providing accurate uncertainty quantification in many applied situations. The package is implemented natively in R and RcppEigen, which has the benefit of bypassing the substantial operating system specific overhead of linking external libraries to work efficiently with R.

READ FULL TEXT
research
08/20/2018

Bayesian Function-on-Scalars Regression for High Dimensional Data

We develop a fully Bayesian framework for function-on-scalars regression...
research
08/03/2020

Gibbs sampler and coordinate ascent variational inference: a set-theoretical review

A central task in Bayesian machine learning is the approximation of the ...
research
12/22/2021

Bayesian Approaches to Shrinkage and Sparse Estimation

In all areas of human knowledge, datasets are increasing in both size an...
research
03/04/2015

Local Expectation Gradients for Doubly Stochastic Variational Inference

We introduce local expectation gradients which is a general purpose stoc...
research
02/24/2021

Sparse online variational Bayesian regression

This work considers variational Bayesian inference as an inexpensive and...
research
05/19/2022

Variational Inference for Bayesian Bridge Regression

We study the implementation of Automatic Differentiation Variational inf...
research
07/29/2021

CARlasso: An R package for the estimation of sparse microbial networks with predictors

Microbiome data analyses require statistical tools that can simultaneous...

Please sign up or login with your details

Forgot password? Click here to reset