nfoursid
Implementation of N4SID, Kalman filtering and state-space models
Decision gist · record as of 2026-08-14
Yes, if you need subspace identification or Kalman filtering for state-space models. The package is stable, permissively licensed, and has low install friction. However, maintenance is aging (last release 386 days ago), so verify that the implementation meets your numerical accuracy requirements and check the documentation and examples before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later.
- Low friction install with a pure-Python wheel.
- Maintenance is aging—last release was 386 days ago—but the repository remains active and the package is marked Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2025-07-24 (386 days) · last repo commit 2025-07-24 · 28 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 358,929 downloads/mo, #7,255 on PyPI
Alternatives
Verify before relying
pip install nfoursid
import nfoursid
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Use with numpy arrays or pandas DataFrames for time-series data
# See documentation at https://nfoursid.readthedocs.io/ for examples- Specific N4SID algorithm implementation details and numerical accuracy compared to the referenced papers
- Performance characteristics on large time-series datasets
- Whether Kalman filtering is provided as a standalone tool or only within state-space models
What it is and what it does
NFourSID is a Python implementation of the N4SID (Numerical algorithms for Subspace System IDentification) algorithm, a classical method for identifying state-space models from time-series data. It includes Kalman filtering and supports a family of linear time-series models—ARMAX, ARMA, AR, and MA—all representable as state-space systems. The package depends on numpy for numerical computation, pandas for data handling, and matplotlib for visualization.
The library is designed for researchers and practitioners working with multi-dimensional time-series who need to fit linear dynamical systems. It implements algorithms from foundational control theory literature and is suitable for system identification tasks where you have input-output or output-only measurements and want to recover the underlying state-space structure.
Use it for
- Identify state-space models from experimental time-series data in control systems or signal processing applications.
- Fit ARMAX or ARMA models to univariate or multivariate time-series for forecasting or analysis.
- Implement Kalman filtering for state estimation in linear dynamical systems.
- Perform subspace identification on combined deterministic-stochastic systems from measurement data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need subspace identification or Kalman filtering for state-space models.
The package is stable, permissively licensed, and has low install friction. However, maintenance is aging (last release 386 days ago), so verify that the implementation meets your numerical accuracy requirements and check the documentation and examples before committing to production use.
Install
nfoursid on PyPI
Before you install
Low friction install with a pure-Python wheel. Maintenance is aging—last release was 386 days ago—but the repository remains active and the package is marked Production/Stable.
Requires Python 3.7 or later.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install nfoursid
import nfoursid
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Use with numpy arrays or pandas DataFrames for time-series data
# See documentation at https://nfoursid.readthedocs.io/ for examples
Verify before relying
- Specific N4SID algorithm implementation details and numerical accuracy compared to the referenced papers
- Performance characteristics on large time-series datasets
- Whether Kalman filtering is provided as a standalone tool or only within state-space models
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesmatplotlibnumpypandas |
| Maintenance | Aging 386 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 358,929 / month, #7,255 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 |
Evidence: nfoursid-1.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “state-space model identification”
- nfoursidImplements the N4SID algorithm for subspace identification of…
- mamba-ssmMamba-ssm implements state-space model architectures (Mamba, Mamba-2,…
- statsmodelsstatsmodels provides statistical models, inference methods, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also control · simdkalman · filterpy · pykalman · mamba-ssm · ai4ts · tbats · lttb · timesfm · neuralforecast