RepositoryJuliaCHSwitzerland
nathanaelbosch

nathanaelbosch/ProbNumDiffEq.jl

Probabilistic Numerical Differential Equation solvers via Bayesian filtering and smoothing

133stars
17forks
9issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: differential-equations

#1 Repository of the month

1
TINIX TRENDING·Topic: probabilistic-numerics

#1 Repository of the month

2
TINIX TRENDING·Topic: ode

#2 Repository of the month

ProbNumDiffEq.jl

Stable Development Build Status Coverage Benchmarks DOI

Banner

ProbNumDiffEq.jl provides probabilistic numerical ODE solvers to the DifferentialEquations.jl ecosystem. The implemented ODE filters solve differential equations via Bayesian filtering and smoothing. The filters compute not just a single point estimate of the true solution, but a posterior distribution that contains an estimate of its numerical approximation error.

Check out the ProbNumDiffEq.jl talk JuliaCon2024.

Installation

Run Julia, enter ] to bring up Julia's package manager, and add the ProbNumDiffEq.jl package:

julia> ]
(v1.8) pkg> add ProbNumDiffEq

Example: Solving the FitzHugh-Nagumo ODE

using ProbNumDiffEq

# ODE definition as in DifferentialEquations.jl
function f(du, u, p, t)
    a, b, c = p
    du[1] = c * (u[1] - u[1]^3 / 3 + u[2])
    du[2] = -(1 / c) * (u[1] - a - b * u[2])
end
u0 = [-1.0, 1.0]
tspan = (0.0, 20.0)
p = (0.2, 0.2, 3.0)
prob = ODEProblem(f, u0, tspan, p)

# Solve the ODE with a probabilistic numerical solver: EK1
sol = solve(prob, EK1())

# Plot the solution with Plots.jl
using Plots
plot(sol, color=["#CB3C33" "#389826" "#9558B2"])

Fitzhugh-Nagumo Solution

In probabilistic numerics, the solution also contains error estimates - it just happens that they are too small to be visible in the plot above. But we can just plot them directly:

using Statistics
stds = std.(sol.pu)
plot(sol.t, hcat(stds...)', color=["#CB3C33" "#389826" "#9558B2"],
     label=["std(u1(t))" "std(u2(t))"], xlabel="t", ylabel="standard-deviation")

Fitzhugh-Nagumo Standard-Deviations

Contributing

Contributions are very welcome! Check the existing issues for ideas on how to contribute to the package. If you want to implement a new functionality/algorithm, open an issue to start a discussion.

Please open issues liberally! If there is anything that's unclear or doesn't work, we would very much like to know about it. This includes not just bugs and feature requests but also general questions about the software, feedback and suggestions.

Citing ProbNumDiffEq.jl

If you use ProbNumDiffEq.jl helpful for your research project, please cite our JOSS paper (link):

@article{Bosch2024,
  doi =          {10.21105/joss.07048},
  url =          {https://doi.org/10.21105/joss.07048},
  year =         2024,
  publisher =    {The Open Journal},
  volume =       9,
  number =       101,
  pages =        7048,
  author =       {Nathanael Bosch},
  title =        {ProbNumDiffEq.jl: Probabilistic Numerical Solvers for Ordinary
                  Differential Equations in Julia},
  journal =      {Journal of Open Source Software}
}
  • ProbDiffEq is similar in scope to ProbNumDiffEq.jl and it provides fast and feature-rich probabilistic ODE solvers but is implemented in Python and built on JAX.
  • ProbNum implements a wide range of probabilistic numerical methods, not only for ODEs but also for linear algebra, quadrature, and filtering/smoothing. It is implemented in Python and NumPy, and it focuses more on breadth and didactic purposes than on performance.

Similar Projects

Discover other similar projects and AI models.

RepositoryJulia
SciML/DifferentialEquations.jl

Multi-language suite for high-performance solvers of differential equations and scientific machine learning (SciML) components. Ordinary differential equations (ODEs), stochastic differential equations (SDEs), delay differential equations (DDEs), differential-algebraic equations (DAEs), and more in Julia.

3.2k
Oct 17, 2026
RepositoryJulia
SciML/ModelingToolkit.jl

An acausal modeling framework for automatically parallelized scientific machine learning (SciML) in Julia. A computer algebra system for integrated symbolics for physics-informed machine learning and automated transformations of differential equations

1.7k
Nov 26, 2026
RepositoryJulia
SciML/OrdinaryDiffEq.jl

High performance ordinary differential equation (ODE) and differential-algebraic equation (DAE) solvers, including neural ordinary differential equations (neural ODEs) and scientific machine learning (SciML)

703
Nov 27, 2026
RepositoryC++
bluescarni/heyoka

C++ library for ODE integration via Taylor's method and LLVM

255
Dec 1, 2026
RepositoryJulia
SciML/NeuralPDE.jl

Physics-Informed Neural Networks (PINN) Solvers of (Partial) Differential Equations for Scientific Machine Learning (SciML) accelerated simulation

1.2k
Nov 29, 2026
RepositoryJulia
SciML/Catalyst.jl

Chemical reaction network and systems biology interface for scientific machine learning (SciML). High performance, GPU-parallelized, and O(1) solvers in open source software.

539
Dec 3, 2026
RepositoryJulia
SciML/DataDrivenDiffEq.jl

Data driven modeling and automated discovery of dynamical systems for the SciML Scientific Machine Learning organization

434
Nov 28, 2026
RepositoryJulia
SciML/SciMLBenchmarks.jl

Scientific machine learning (SciML) benchmarks, AI for science, and (differential) equation solvers. Covers Julia, Python (PyTorch, Jax), MATLAB, R

349
Nov 29, 2026
RepositoryJulia
SciML/DiffEqGPU.jl

GPU-acceleration routines for DifferentialEquations.jl and the broader SciML scientific machine learning ecosystem

332
Nov 30, 2026