Article view

PyNumDiff: Practical Numerical Differentiation for Noisy Data

By Pavel Komarov, Floris van Breugel, Maria Protogerou, Jose Nathan Kutz

Article information

Publication
Published 2 November 2026
Institutions at publication
University of Washington; University of Nevada, Reno; Autodesk (United Kingdom)
1 Citations OpenAlex, 4 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Derivatives of measured data are vital across science and engineering, for identifying governing equations, designing controllers, and processing sensor streams alike. The textbook remedy, finite differencing, amplifies noise as 1 Δ𝑡 and deteriorates rapidly as data grows noisier. Smoothing before differencing helps, but algorithm choice and settings substantially affect the result, and no single approach wins universally. PyNumDiff is an open-source Python package consolidating a broad suite of numerical differentiation methods under a unified API, along with an optimization scheme to select hyperparameters even in the absence of ground truth. It implements seven algorithm families: (1) prefiltering followed by finite difference calculation, (2) iterated finite differencing, (3) polynomial fitting (Savitzky & Golay, 1964), ( 4) global (spectral) and local (wavelet, radial) basis function fitting, (5) total variation regularization (Chartrand, 2011), (6) Kalman smoothing (Kalman, 1960;Rauch et al., 1965), and (7) local approximation with linear models. All PyNumDiff methods return estimates of the true signal and its derivative as a matched pair, (x, 𝑑 x 𝑑𝑡 ), and all have been mathematically refined to minimize computational complexity and make runtimes linear, log-linear, or near-linear.1 This paper describes the package's second generation, through the v0.3 release series.A companion survey (Komarov et al., 2025, sec.7) situates these methods in the literature, covers the theory behind each, benchmarks all methods across test signals, and guides selection for different application scenarios. Statement of NeedNumerical differentiation has a diverse ecosystem of algorithms, each with different theoretical foundations and putative strengths. But there has been no consolidated home where methods can be easily swapped or tested head-to-head, and practitioners are left assembling solutions piecemeal from disparate packages (van Breugel et al., 2022). PyNumDiff addresses this gap: Its unified interface lets users compare methods on the same data, exploit specialized capabilities (e.g.outlier robustness), and tune methods' hyperparameters against known ground truth or to a given signal bandlimit. Derivative estimation trades data fidelity against smoothness, so PyNumDiff uses dual-objective optimization, with a single scalar weight to steer the balance (van Breugel et al., 2020).A natural and growing application is SINDy (Brunton et al., 2016), which discovers governing equations by regressing measured derivatives, making quality of the derivative estimates a direct determinant of model accuracy.

Citations per year

Citations per year
YearCitations
2026 1

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 1 citation, but the citing work is not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United States3
United Kingdom1