RTS Kalman Smoother (C++ × Python)
The package provides a high-performance Rauch–Tung–Striebel Kalman smoother for the local level model.
This model is a canonical choice for asset prices and similar data (random walk latent state).
It smooths each asset (column) independently with global process/observation variances (Q, R) shared across assets.
Features
- Handles
NaNobservations (prediction-only step when missing) - Returns smoothed states as the same object type
- Diffuse initialization
Install (from PyPI)
pip install rts_smoother
Install (from source)
pip install -U pip build twine
pip install -e .
Usage
from rts_smoother import smooth
# Provide Q and R manually
df_smoothed = smooth(df, Q=1e-4, R=1e-3)
Model
- State:
x_t = x_{t-1} + w_t,w_t ~ N(0, Q) - Obs:
y_t = x_t + v_t,v_t ~ N(0, R)
Notes
- Built with scikit-build-core and pybind11.
- The compiled extension lives at
rts_smoother/_core.*inside the wheel.
Metadata
Release files for rts-smoother 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rts_smoother-0.1.0.tar.gz | 5.8 kB | Without provenance | Details for rts_smoother-0.1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rts_smoother-0.1.0-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details for rts_smoother-0.1.0-cp314-cp314-win_amd64.whl |
| rts_smoother-0.1.0-cp314-cp314-macosx_15_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 15.0+ ARM64 | Details for rts_smoother-0.1.0-cp314-cp314-macosx_15_0_arm64.whl |
Total release size: 138.5 kB
Release files / rts_smoother-0.1.0.tar.gz
| Download URL | rts_smoother-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd0ac6bd3b70b3302a0575838bac388717994a5f8f5a4239ccfa5fc6bba39376
|
|
BLAKE2b-256 checksum How to use checksums |
b9252fb68b358411df0729735f8dca0603c37b0537813e0ae44cd76a9ffab8c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / rts_smoother-0.1.0-cp314-cp314-win_amd64.whl
| Download URL | rts_smoother-0.1.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 74.2 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cac2e1649e895c032787bd54ddaaef8570aa9d705c38ac305b9cbce8f3bec684
|
|
BLAKE2b-256 checksum How to use checksums |
e7bbd11710ca0a8470b03e6f789e4f56c6a62bcf140d021832d3b88ad0993852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / rts_smoother-0.1.0-cp314-cp314-macosx_15_0_arm64.whl
| Download URL | rts_smoother-0.1.0-cp314-cp314-macosx_15_0_arm64.whl |
|---|---|
| Size | 58.6 kB |
| Tags | CPython 3.14 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ca0eb0423a2068a14d559da7bc5cad1073d6c261b4b9229f5dba5430fa41ba20
|
|
BLAKE2b-256 checksum How to use checksums |
30f0142bb93a89fbcc0071629cffbc29d9d965e958a89b407d1d0b51dbc174cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for rts-smoother 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.