do it best , economy and management.
Author : Daniel tulips liu . Copyright © tulipsliu.
Also , Copyright © Sebastian Ankargren , Yukai Yang
First ,Abstract
Abstract Time series are often sampled at different frequencies, which leads to mixed-frequency data. Mixed frequencies are often neglected in applications as high-frequency series are aggregated to lower frequencies. In the mfbvar package, we introduce the possibility to estimate Bayesian vector autoregressive (VAR) models when the set of included time series consists of monthly and quarterly variables. TWe provide a user-friendly interface for model estimation and forecasting. The capabilities of the package are illustrated in an application.
Keywords: vector autoregression, steady-state prior
1. Introduction
Vector autoregressive (VAR) models constitute an important tool for multivariate time series analysis. They are, in their original form, easy to fit and to use and have hence been used for various types of policy analyses as well as for forecasting purposes. A major obstacle in applied VAR modeling is the curse of dimensionality: the number of parameters grows quadratically in the number of variables, and having several hundred or even thousands of parameters is not uncommon. Thus, VAR models estimated by maximum likelihood are usually associated with bad precision.
2. Mixed-Frequency models
Suppose that the system evolves at the monthly frequency. Let xt be an n×1 monthly process. Decompose xt=(xm,t⊤,xq,t⊤)⊤ into nm monthly variables, and a nq-dimensional latent process for the quarterly observations. By letting yt=(ym,t⊤,yq,t⊤)⊤ denote observations, it is implied that ym,t=xm,t as the monthly part is always observed. For the remaining quarterly variables, we instead observe a weighted average of xq. There are two common aggregations used in the literature: intra-quarterly averaging and triangular aggregation. The former assumes the relation between observed and latent variables to be
As the system is assumed to evolve at the monthly frequency, we specify a VAR(p) model for xt:
xt=ϕ+Φ1xt−1+⋯+Φpxt−p+ϵt,ϵt∼N(0,Σ).(1.1)
The VAR(p) model can be written in companion form, where we let zt=(xt⊤,xt−1⊤,…,xt−p+1⊤)⊤. Thus, we obtain
zt=π+Πzt−1+ut,ut∼N(0,Ω),(1.2)
where π, Π and Ω are the corresponding companion form matrices constructed from (ϕ,Φ1,…,Φp,Σ);
It is now possible to specify the observation equation as
yt=MtΛzt(1.3)
where Mt is a deterministic selection matrix and Λ an aggregation matrix based on the weighting scheme employed. The Mt yields a time-varying observation vector by selecting rows corresponding to variables which are observed, whereas Λ aggregates the underlying latent process.
2.1 The steady-state prior proposed by \cite{Villani2009} reformulates \eqref{eq:original} to be on the mean-adjusted form
Φ(L)(xt−Ψdt)=ϵt,
where Φ(L)=(In−Φ1L−⋯−ΦpLp) is an invertible lag polynomial. The intercept ϕ in \eqref{eq:original} can be replaced by the more general deterministic term Φ0dt, where Φ0 is n×m and dt is m×1. The steady-state parameters Ψ in \eqref{eq:meanadj} relate to Φ0 through Ψ=[Φ(L)]−1Φ0. By the reformulation, we obtain parameters Ψ that immediately yield the unconditional mean of xt—the steady state. The rationale is that while it is potentially difficult to express prior beliefs about Φ0, eliciting prior beliefs about Ψ is often easier.
ψj∣ωψ,jωψ,j∣ϕψ,λψϕψλψj∼N(ψj,ωψ,j)∼G(ϕψ,0.5ϕψλψ)∼Exp(1)∼G(c0,c1)=1,…,nm(1.3)
where G(a,b) denotes the gamma distribution with shape-rate parametrization, and Exp(c) denotes the exponential distribution.
The common stochastic volatility specification presented by \cite{Carriero2016} assumes that the covariance structure in the model is constant over time, but adds a factor that enables time-dependent scaling of the error covariance matrix. More specifically, it is assumed that
\begin{align}
\VAR(\epsilon_t|f_t, \Sigma)=f_t\Sigma,
\end{align}
where ft is a scalar, Σ is inverse Wishart as in \eqref{eq:iw}, and
\begin{equation}
\begin{aligned}
\log f_t&=\rho\log f_{t-1}+v_t\
v_t&\sim \operatorname{N}(0, \sigma^2)\
\rho&\sim \operatorname{N}(\underline{\mu}\rho, \underline{\Omega}\rho; |\rho|<1)\
\sigma^2&\sim \operatorname{IG}(\underline{d}\cdot\underline{\sigma}^2, , \underline{d}),
\end{aligned}\label{eq:csv}
\end{equation}
where N(a,b;∣x∣<c) denotes the truncated normal distribution with support (−c,c), and IG(a,b) is the inverse gamma distribution with parameters (a,b).