Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
The log of a Gaussian dynamic linear model (GDLM).
The log of a Gaussian dynamic linear model (GDLM) with uncorrelated observation disturbances.
This distribution is equivalent to, for \(t = 1:T\),
\begin{eqnarray*} y_t & \sim N(F' \theta_t, V) \\ \theta_t & \sim N(G \theta_{t-1}, W) \\ \theta_0 & \sim N(m_0, C_0) \end{eqnarray*}
If V is a vector, then the Kalman filter is applied sequentially.
T_y | type of scalar |
T_F | type of design matrix |
T_G | type of transition matrix |
T_V | type of observation covariance matrix |
T_W | type of state covariance matrix |
T_m0 | type of initial state mean vector |
T_C0 | type of initial state covariance matrix |
y | A r x T matrix of observations. Rows are variables, columns are observations. |
F | A n x r matrix. The design matrix. |
G | A n x n matrix. The transition matrix. |
V | A r x r matrix. The observation covariance matrix. |
W | A n x n matrix. The state covariance matrix. |
m0 | A n x 1 matrix. The mean vector of the distribution of the initial state. |
C0 | A n x n matrix. The covariance matrix of the distribution of the initial state. |
std::domain_error | if a matrix in the Kalman filter is not positive semi-definite. |
This distribution is equivalent to, for \(t = 1:T\),
\begin{eqnarray*} y_t & \sim N(F' \theta_t, diag(V)) \\ \theta_t & \sim N(G \theta_{t-1}, W) \\ \theta_0 & \sim N(m_0, C_0) \end{eqnarray*}
If V is a vector, then the Kalman filter is applied sequentially.
y | A r x T matrix of observations. Rows are variables, columns are observations. |
F | A n x r matrix. The design matrix. |
G | A n x n matrix. The transition matrix. |
V | A size r vector. The diagonal of the observation covariance matrix. |
W | A n x n matrix. The state covariance matrix. |
m0 | A n x 1 matrix. The mean vector of the distribution of the initial state. |
C0 | A n x n matrix. The covariance matrix of the distribution of the initial state. |
std::domain_error | if a matrix in the Kalman filter is not semi-positive definite. |
T_y | Type of scalar. |
T_F | Type of design matrix. |
T_G | Type of transition matrix. |
T_V | Type of observation variances |
T_W | Type of state covariance matrix. |
T_m0 | Type of initial state mean vector. |
T_C0 | Type of initial state covariance matrix. |
Definition at line 70 of file gaussian_dlm_obs_lpdf.hpp.