Skip to main content

sima — simultaneous VARMA on the ATSW ladder

sima is the MCP assistant for systems of time series: VARMA models by exact maximum likelihood, built on the univariate models of each series, and, when the series are cointegrated, the VARMA-VEC in levels. The engines are drvarma, whose ladder mode takes fue's univariate files as input, and drvec, the port of drvec C (Mauricio's VARMA-VEC by exact maximum likelihood), which takes the same files. This package is the assistant: the protocol the model walks, the evidence at each node, and the menu of decisions.

It is the third rung of the ATSW ladder:

art (one series)  →  mtram (transfer networks)  →  sima (systems)

You arrive at sima with several univariate models (.pre files from art or fue), or from mtram when its network identification found a cycle: two series that feed each other, which no transfer network can hold. sima takes the same files.

Install

pip install sima-tseries            # from univariate models (.pre / .inp files); brings drvec
pip install "sima-tseries[raw]"     # also from raw data: adds art-tseries, pandas, openpyxl

The raw entry (load_data, characterize, build_univariate, write_specs) uses art's engine, so it needs the raw extra; so do the worked examples that start from the data (lutkepohl_poskitt, tiao_box).

Register the server in your MCP client (the command is sima, stdio). The binary wheels of drvarma carry the compiled likelihood the ladder needs. If they are missing, drvarma warns and runs about 250 times slower. drvec's wheels carry drvec C 0.13, which runs the long bootstraps (the rank test, the IRF bands) 6-12 times faster than the port; the engine used is written in every result.

The protocol

node tool what it answers
N0r–N0c load_data, characterize raw data: the table, and each series' λ, d and seasonality (art's engine)
N0u / N0v build_univariate / write_specs route U (the univariate models first) or route V (the vector first)
N0 load_pre the univariate models, the common window
N1 run_gate does the joint model reproduce the univariate ones? (it stops the analysis if not)
N1b canonical_analysis Box and Tiao's canonical analysis of the levels
N1c / C0 prepare_vec the cointegration question (two or more series with d = 1), the model's purpose, the VEC's specification and its checks
C1 rank_test, plot_rank_bootstrap the cointegration rank, by parametric bootstrap (a job); at small n, the rank at the neighbouring orders (sweep over p)
C2 estimate_vec the adopted VEC: the roles (normalisation), α, β, Π
C3–C4 test_restriction, add_exogenous restrictions on α, β and Γ by LR (who corrects; no feedback in the short run, the conditional model and the hand-over to mtram); exogenous inputs
C5 long_run θ, two half-lives, Gonzalo and Ng's permanent and transitory shocks
C6–C7 irf_bands, sweep the level responses' bootstrap bands; robustness (jobs)
C8 evaluate the yardstick for the VEC: a veto to forecast, a caveat for a long-run claim
— job_status, job_result, job_cancel, jobs the long jobs: detached, cached by content, they outlive the conversation
N2 identify_cross, identify_matrices, identify_echelon the cross dynamics: residual CCFs, Jenkins and Alavi's matrices, the Kronecker indices of the echelon form
N3–N4 estimate, check_residuals, simplify, structure a candidate and its LR, the checking, Tiao and Box's simplification, is it really simultaneous?
N4b study_estimation a fit on the MA invertibility wall
N5 evaluate, forecast_uncertainty the yardstick: does it forecast better than the univariates?
N6 forecast, impulse_response, variance_decomposition, reorder use of the chosen model (on a VEC: the levels; reorder refuses)
— plot_* the figures
— examples, load_example the worked examples
— record_decision, export_guion the record of the analysis
— split_inp out of drvarma's deprecated multivariate .inp

The rules that shape everything:

  • The univariate model is the yardstick. A VARMA that does not forecast better than the univariate models out of sample has no reason to exist, however significant its cross terms are in sample. For a VEC the comparison is always made and reported: a veto when the model is to forecast, a caveat beside a long-run claim (the purpose is recorded at N1c).
  • No cointegration claim without a finished bootstrap. The rank is the parametric bootstrap's; the asymptotic table is orientation only. A rank adopted on theory is written in the guion as such.
  • Evidence and a menu, not a verdict. The tools show the evidence and the options with their arguments for and against. The analyst decides in the guided lane, and the model decides, in writing, in the autonomous lane.

See docs/DESIGN.md and the generated tool reference docs/TOOLS.md.

User manual

Each worked example runs node by node in a conversation with load_example(<name>) (examples lists them).

Licence

GPL-2.0-or-later. Authors: A.B. Treadway, J.A. Mauricio and D.E. Guerrero (the engine); D.E. Guerrero (the assistant).

Metadata

Release files for sima-tseries 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sima-tseries 0.2.2
File Size Uploaded Provenance Actions
sima_tseries-0.2.2.tar.gz 564.2 kB With provenance Details for sima_tseries-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sima-tseries 0.2.2
File Interpreter ABI Platform Actions
sima_tseries-0.2.2-py3-none-any.whl Python 3 none any Details for sima_tseries-0.2.2-py3-none-any.whl

Total release size: 1.1 MB

Release files / sima_tseries-0.2.2.tar.gz

Download URL sima_tseries-0.2.2.tar.gz
Size 564.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a9781e859cf37d49c1fe6e3d332a2ab30efc104e2ff36a55286bc6acd68d8d69
BLAKE2b-256 checksum
How to use checksums
95924dd311b24cd90cfaf1ada319c57262984a5e8d4708e91c07439f84b25902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / sima_tseries-0.2.2-py3-none-any.whl

Download URL sima_tseries-0.2.2-py3-none-any.whl
Size 571.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5b03216ce8a522d0da8c7b480d81040d85459d367ee7b29d68ccf3c4af99093
BLAKE2b-256 checksum
How to use checksums
f455e0aeb1a3f3cfb71deeb0a6d8d857cd5f6c7cbac0f64896ea785efcbb5be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for sima-tseries 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sima_tseries-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page