We will compare Euler-Murayama and Milstein methods to solve the stochastic Maltus model for various possible values of the parameters. Recall Maltus stochastic model:

As we have shown, its analytic solution is

We are going to implement Euler-Murayama’s and Milstein’s in numpy and julia. Numpy implementation can be found in the notebook used to perform the calculations. Likewise, julia implementation can be downloaded here.