_images/logo.png

sde: a simple tool for numerical stochastic differential equations

sde provides basic tools for simulating brownian motions which is the basic ingredients to lots of SDE models, performing different types of stochastic integrations, Eular-Maruyama methods and so much more (to come…).

The origin of this project is this wonderful introductory paper: by Desmond J. Higham.

In this document, we will demonstrate how to:

  • Simulate brownian motion paths

  • Transform simulated bm paths

  • Perform stochastic integrals

  • Carry out numerical sde methods

However, before we get started, we need to install the package first which is freely available on PyPI.

Dependencies

Dependencies

Package

Version

python

>=3.9

numpy

==1.24.2

tqdm

==4.64.1

matplotlib

==3.7.1

Installation

Note

We highly recommend creating a virtual environment before proceeding to installing the package. For how to manage virtual environment via conda, check out their tutorial.

pip install sdeIU

To quickly test if it has been installed:

python -m sde --version

Tutorial

API Reference

Indices and tables