knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The SV model equations (measurements and latent state transition) are given as:
It follows that
Assuming $\phi < 1$, the latent state process is stationary, i.e. $\mathbb{E}(X_t)=\mathbb{E}(X_{t-1})\equiv \mu_x$ and $\mathbb{V}(X_t)=\mathbb{V}(X_{t-1})=\sigma_x^2$, we have
\begin{align} \mathbb{E}(X_t)&=\phi\mathbb{E}(X_{t-1}) + \mathbb{E}(\varepsilon_t) \Rightarrow \mu_x(1-\phi_x)=0 \Rightarrow \mu_x=\frac{0}{1-\phi_x}=0\;.\ \mathbb{V}(X_t)&=\phi^2\mathbb{V}(X_{t-1}) + \mathbb{V}(\varepsilon_t) \Rightarrow \mathbb{V}(X_t)(1-\phi^2)=\sigma^2\;.\ \Rightarrow \mathbb{V}(X_t)&=\frac{\sigma^2}{1-\phi^2}\;. \end{align}
Thus, the initial (stationary) distribution of $X_0$ is $$ X_0\sim\mathcal{N}\left(0, \frac{\sigma^2}{1-\phi^2}\right)\;. $$
Assuming that the variance parameters $\sigma^2$ and $\beta^2$ are unknown, but $\phi$ is fixed, we consider a Bayesian setting with standard inverse Gamma priors on the parameters:
This prior setup is conjugate to the model from 1. and 2. such that full conditional Gibbs blocks are obtained with distribution for the parameter in closed form according to:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.