This package implements Gibbs sampling for Bayesian inference in time-varying multi-seasonal ARMA (TV-Multi-SARMA) models using the Sequential Monte Carlo (SMC) samplers in SMCsamplers.jl and the Gibbs sampling for dynamic global-local shrinkage priors in DynamicGlobalLocalShrinkage.jl.
The package is in the CompBayesRegistry, which must first be added to your Julia. The package can then be installed by the usual add mechanism in the Julia Package manager.
Install from the Julia package manager by typing ] in the Julia REPL, followed by
registry add https://github.com/compbayes/CompBayesRegistry.git
add TVMultiSARMA
The TVSAR(p,P) with
where
The TVMultiSARMA.jl package allows any number of seasonalities
The AR parameters
where the unrestricted parameters 𝛉ₜ in ℝᵖ are first mapped to the partial autocorrelations 𝐫ₜ in [−1, 1]ᵖ which are then mapped to the stable AR parameters 𝛟ₜ. The map from 𝛉ₜ to 𝐫ₜ can take many forms, for example, the Monahan transformation
The unrestricted parameters 𝛉ₜ evolve over time following independent dynamic shrinkage process (DSP) priors. For example, for a single AR parameter
where
The TVMultiSARMA.jl allows for a stochastic volatility model for the measurement variance
Future versions will include dynamic shrinkage process prior for
The TVMultiSARMA.jl package is limited to time-varying AR models and Bayesian inference using the conditional likelihood. The stochastic volatility model for the measurement errors uses a homoscedastic Gaussian parameter evolation for
- moving average MA and seasonal MA components
- the exact likelihood
- global-local shrinkage priors for the stochastic volatility model
The current package is not optimized for speed, and is rather sloppy with memory allocations and type instabilities. Future versions will include speed optimizations.
See the documentation and the examples folder for usage and illustrations: