This document outlines a state space model designed for analyzing time series data, incorporating a dynamic coefficient
The state space model consists of two primary components:
-
Observation Equation: It illustrates the relationship between the current observation
$y_t$ and the previous state$x_{t-1}$ , alongside an error term$e_t$ :
-
State Transition Equation: This equation defines the evolution of the state
$x_t$ from$x_{t-1}$ , incorporating the error term modified by the dynamically varying coefficient$\alpha_t$ :
The dynamic coefficient
The standard deviation of the difference between observation and state,
-
Observation Error: The error
$e_t$ is assumed to be a Gaussian process with zero mean and known variance$\sigma^2_e$ , reflecting the model's uncertainty about observations. -
Dynamic Coefficient
$\alpha_t$ : Varies over time within the [0, 1] interval, serving as an adaptive smoothing factor that modulates the influence of past observations on current state predictions. - Independence: Error terms at different points in time are assumed to be independent, simplifying the model's structure.
Employing PyMC for Bayesian estimation, the model leverages prior distributions for unknown parameters, refining these priors into posterior distributions based on observed data:
-
Prior Definitions:
- A Beta distribution is chosen for
$\alpha_t$ , suitable for coefficients that are naturally bounded between 0 and 1. - The standard deviation of the observation error,
$\sigma_e$ , is modeled using a HalfNormal distribution, emphasizing its positive value constraint.
- A Beta distribution is chosen for
-
Sampling:
- Monte Carlo Markov Chain (MCMC) sampling is used to generate posterior distributions for the model parameters, facilitated by PyMC's efficient algorithms and diagnostic tools.
PyMC, a powerful tool for Bayesian statistical modeling and probabilistic inference, provides:
- Intuitive model definition syntax.
- Efficient MCMC sampling.
- Diagnostic tools for assessing sampling convergence.
- Statistical summaries of sampling results.
This approach allows for a nuanced and adaptable estimation of complex time series models, highlighting the integration of uncertainty and dynamic adaptability in the context of exponential smoothing.