Python API#
The package ssfortran calls the Fortran library through its C interface
(C interface). Arrays are numpy arrays with time as the last axis, as in
statsmodels; periods passed as arguments are 0-based.
Representation#
|
A linear Gaussian state space model and its algorithms. |
|
Output of the Kalman filter (DK §4.3, §5.2). |
|
Output of the state and disturbance smoother (DK §4.4-4.5, §5.3). |
|
Output of the augmented Kalman filter and smoother (DK §5.7). |
Models and estimation#
|
A model assembled from structural components (DK ch. |
|
A model declared by the matrix entries each parameter sets. |
|
A model whose system matrices are set by Python code. |
|
Base class of models with parameters, held by the Fortran library. |
|
Maximum likelihood estimates and the fitted model (DK §7.3). |
|
Forecasts past the end of the sample (DK §4.11). |
|
Fit independent models in parallel. |
Components#
|
Observation disturbance \(\varepsilon_t \sim N(0, \Sigma_\varepsilon)\). |
|
Random walk level \(\mu_{t+1} = \mu_t + \xi_t\) (DK ch. |
|
Local linear trend (DK §3.2.1). |
|
Seasonal component of a given period (DK §3.2.2). |
|
Stochastic cycle (DK §3.2.4). |
|
Regression effects \(x_t' \beta_t\) (DK §3.2.5, §3.6). |
|
ARIMA(p, d, q)(P, D, Q)_s component (DK §3.4). |
|
Level in continuous time observed at arbitrary times (DK §3.8.1). |
|
Smooth trend in continuous time observed at arbitrary times (DK §3.8.2). |
Diagnostics#
|
Test for serial correlation with the Ljung-Box statistic. |
Test for normality with the Jarque-Bera statistic. |
|
|
Test for heteroskedasticity by comparing the two ends of the sample. |
Errors and constants#
|
An error reported by the Fortran library. |
|
Return the version of the Fortran library. |
The initialization kinds INIT_KNOWN, INIT_APPROX_DIFFUSE,
INIT_STATIONARY, INIT_DIFFUSE and INIT_GENERAL are
passed to Representation.initialize_block();
FILTER_CONVENTIONAL, FILTER_UNIVARIATE,
DIFFUSE_UNIVARIATE and DIFFUSE_MULTIVARIATE are values of
the filter_method and diffuse_method options.
- ssfortran.INIT_KNOWN#
- ssfortran.INIT_APPROX_DIFFUSE#
- ssfortran.INIT_STATIONARY#
- ssfortran.INIT_DIFFUSE#
- ssfortran.INIT_GENERAL#
- ssfortran.FILTER_CONVENTIONAL#
- ssfortran.FILTER_UNIVARIATE#
- ssfortran.DIFFUSE_UNIVARIATE#
- ssfortran.DIFFUSE_MULTIVARIATE#