Skip to main content
QUICK REVIEW

[Paper Review] Shrinkage in the Time-Varying Parameter Model Framework Using the R Package shrinkTVP

Peter Knaus, Angela Bitto-Nemling|arXiv (Cornell University)|Jul 16, 2019
Statistical Methods and InferenceMathematics37 references7 citations
TL;DR

This paper introduces the R package shrinkTVP, which implements shrinkage in time-varying parameter (TVP) models using hierarchical shrinkage priors, including the normal-gamma-gamma (NGG), normal-gamma (NG), and ridge regression priors. The method enables adaptive estimation of time-varying coefficients with automatic hyperparameter learning, offering flexible, robust, and scalable inference through MCMC with adaptive Metropolis-within-Gibbs sampling.

ABSTRACT

Time-varying parameter (TVP) models are widely used in time series analysis to flexibly deal with processes which gradually change over time. However, the risk of overfitting in TVP models is well known. This issue can be dealt with using appropriate global-local shrinkage priors, which pull time-varying parameters towards static ones. In this paper, we introduce the R package shrinkTVP (Knaus, Bitto-Nemling, Cadonna, and Frühwirth-Schnatter 2019), which provides a fully Bayesian implementation of shrinkage priors for TVP models, taking advantage of recent developments in the literature, in particular that of Bitto and Frühwirth-Schnatter (2019). The package shrinkTVP allows for posterior simulation of the parameters through an efficient Markov Chain Monte Carlo (MCMC) scheme. Moreover, summary and visualization methods, as well as the possibility of assessing predictive performance through log predictive density scores (LPDSs), are provided. The computationally intensive tasks have been implemented in C++ and interfaced with R. The paper includes a brief overview of the models and shrinkage priors implemented in the package. Furthermore, core functionalities are illustrated, both with simulated and real data.

Motivation & Objective

  • To develop a flexible Bayesian framework for time-varying parameter models with automatic shrinkage of coefficients.
  • To implement hierarchical shrinkage priors—specifically NGG, NG, and ridge regression—within a unified R package.
  • To enable adaptive MCMC sampling with automatic tuning of proposal distributions for improved mixing and convergence.
  • To support stochastic volatility modeling in the observation equation via integration with the stochvol package.
  • To provide users with full control over prior hyperparameters, including fixing or learning global, pole, and tail parameters.

Proposed method

  • Uses a hierarchical prior structure where time-varying coefficients are modeled as conditionally normal with variances drawn from gamma mixtures, forming the NGG prior.
  • Employs a three-stage hierarchical prior: component-specific variances follow gamma distributions, which themselves depend on hyperpriors with pole, tail, and global parameters.
  • Applies adaptive Metropolis-within-Gibbs sampling for parameters lacking full conditionals, with dynamic tuning of proposal standard deviations based on acceptance rates.
  • Supports three model types via the `mod_type` argument: 'triple' (NGG), 'double' (NG), and 'ridge' (fixed variance normal prior).
  • Integrates stochastic volatility via the stochvol package, allowing state-dependent observation error variances with hyperpriors on volatility parameters.
  • Exposes hyperparameters through `hyperprior_param` and `sv_param` lists, allowing users to customize prior distributions or fix values for specific inference goals.

Experimental results

Research questions

  • RQ1How can hierarchical shrinkage priors be effectively applied to time-varying parameter models to improve coefficient estimation and model stability?
  • RQ2What is the impact of different hierarchical prior structures—NGG, NG, and ridge—on the shrinkage behavior and predictive performance of TVP models?
  • RQ3How does adaptive Metropolis-within-Gibbs sampling improve MCMC convergence and mixing in high-dimensional TVP models?
  • RQ4Can the shrinkTVP package reliably recover true coefficients in synthetic data under varying levels of sparsity and time-varying dynamics?
  • RQ5To what extent can the package support stochastic volatility in the observation equation while maintaining computational efficiency and accurate inference?

Key findings

  • The NGG prior includes the horseshoe and Bayesian Lasso as limiting cases, enabling flexible shrinkage with heavy-tailed and sparse behavior.
  • Setting the pole and tail parameters of the NGG prior to 0.5 recovers the horseshoe prior, which is known for strong shrinkage of irrelevant coefficients.
  • Fixing the pole parameter at 1 and the tail parameters at 0.5 yields the Bayesian Lasso, demonstrating the package's ability to recover standard shrinkage methods.
  • Adaptive Metropolis-within-Gibbs sampling significantly improves MCMC mixing, especially when full conditionals are unavailable for key hyperparameters.
  • The package successfully recovers true coefficients in synthetic data when the data-generating process matches the assumed prior structure.
  • Users can achieve desired degrees of sparsity by fixing the pole parameters at values close to zero, enabling targeted shrinkage of irrelevant time-varying coefficients.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.