Questions tagged [stochastic-calculus]

Questions about stochastic calculus in Mathematica, for example how to use ItoProcess and RandomFunction.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
121 views

Kolmogorov backward PDE with boundary conditions

I am trying to solve numerically Kolmogorov backward PDE with boundary conditions: ...
3
votes
0answers
311 views

Stochastic Schrödinger Equation

I have a stochastic coupled Schrödinger equation to solve. $$i\frac{\mathrm d X_k(t)}{\mathrm dt}=-\left(x_{k+1}(t)+x_{k-1}(t)\right)+V_k x_k(t)+\eta_k t x_k(t)$$ where $\left\langle\eta_k(t)\eta_j(...
3
votes
0answers
299 views

Solve ItoProcess SDE

I specified a SDE for a random process $y(t)$ using ItoProcess is there a mathematica function that provides the analytic solution for $y(t)$? I know ...
3
votes
0answers
276 views

Malliavin Derivative with Mathematica is it possible?

Is it possible to define a Malliavin calculus with Mathematica 9? Consider a random variables on the Wiener-space $\Omega=\mathcal{C}([0,1])$ of the form $$F=F(\omega)=\displaystyle\int_{0}^{T}h_{t}...
2
votes
0answers
34 views

TransformedProcess: a few questions about it

I have a couple of technical questions that, after searching the internet for hours, I have not been able to find an answer to. Mathematica's online instructions are not even addressing the issue at ...
2
votes
0answers
38 views

Monitoring time step manually within RandomFunction

Consider the following stochastic differential equation ...
1
vote
0answers
44 views

Mean of ItoProcess

I've defined the following ItoProcess ...
1
vote
0answers
52 views

Having trouble moving program from python to Mathematica

I'm trying to move a Covid-19 model programmed in python to Mathematica and I can't figure out how to translate this segment of the code to Mathematica. ...
1
vote
0answers
39 views

Is it possible to speed up SDE simulation?

Is it possible to speed up SDE simulation in Mathematica? I am simulating a large number of Heston processes that look like the following (note this code is only a slight modification of the ...
1
vote
0answers
49 views

Simulating Stochastic Matrix Differential Equation with Arbitrary Autocorrelation Function

I want to numerically simulate a matrix differential equation that includes a stochastic (vector) Gaussian noise $\mathbf{n}$, where the different vector components are independent, and each component ...
1
vote
0answers
60 views

How to apply TransformedProcess to a user defined ItoProcess?

Hi I would like to manipulate user defined Ito processes, say multiply my process by a deterministic function . Thanks in advance ...
1
vote
0answers
79 views

How to simulate two coupled birth-death-immigration processes?

I am simulating a birth-death-immigration process for two coupled populations that interact by virtue of the birth-rate in one population being equal to the death-rate in the other population. The two ...
1
vote
0answers
119 views

An Ito process with intermediate constraints

I have a controlled stochastic process described by $\dot{x} = X(x) + u(t) + \eta_x(t),$ where $u$ is the control, $\eta_x$ is a white noise with zero mean. The equation is called Langevin equation. ...
1
vote
0answers
116 views

Dealing with Vector Outputs from ItoProcess, RandomProcess (Stochastic Differential Equations)

I'm modeling stochastic chemical kinetics and the ItoProcess[] function has served me well. I am trying to write an efficient code to analyze many (Paths) trajectories of several different reagents (...
1
vote
0answers
85 views

ItoProcess with log

I would like to use ItoProcess to simulate some paths of $r(t)$, a process that follows the sde $$d\ln\left(r\left(t\right)\right)=\left(\theta-\ln\left(r(t)\right)\...
1
vote
0answers
224 views

How to make a parameter stochastic in a differential equation system with NDSolve?

I constructed the differential equation system below, which I solved using NDSolve. Now I need one parameter ($mu$) to be stochastic, e.g. Poisson distributed around a mean and changing slightly at ...
1
vote
0answers
254 views

Simulations with MonteCarlo and Autoregressive methods

I am trying to find the best-fit trend for my data. Here I just generated it but let's say I don't know my data trend at all. ...
1
vote
0answers
86 views

Changing GeometricBrownianMotionProcess function

Since the function GeometricBrownianMotionProcess is given by Mathematica I have some technical questions. If we consider the following example: ...
0
votes
0answers
28 views

Correlated random variables

Assume we have a random variable $X(t)$ that changes as a function of time satisfying a correlation $\left\langle X(0) X(\tau) \right\rangle=e^{-\tau/\tau_c}$. Is Mathematica able to generate random ...
0
votes
0answers
29 views

Explosion of solution with NDSolve

I'm trying to solve a delayed ODE involving white noise with the help of NDSolve. This provides a reasonable solution for times between 0 and 20000. After that the solution seems to explode. A curious ...
0
votes
0answers
50 views

Solving SDE system in Ito form

Can mathematica solve a linear SDE system in Ito form, for example $$ \begin{equation} \begin{bmatrix} dx_1 \\ dx_2 \\ dx_3 \\ dx_4 \end{bmatrix} = \begin{bmatrix} x_1 & ix_2 &...
0
votes
0answers
49 views

How to solve forward Kolmogorov birth-death equations for unspecified number of populations

I'm attempting to use a forward Kolmogorov differential equation to model a birth-death process. This is fairly trivial when there's only one population, but I'm working with an unspecified and time-...
0
votes
0answers
23 views

Puzzling behavior of ItoProcess with Abs

Hi I am simulating a Fisher-Wright diffusion, it works ...
0
votes
0answers
191 views
0
votes
0answers
210 views

How to generate a fractional Brownian motion?

In Mathematica 9.0 I run the following piece of code: ...
0
votes
0answers
208 views

Estimate parameters of two correlated geometric Brownian motions

I would like estimate the parameters of the following set of Geometric Brownian Motions: $d P(t) = \mu_P P(t) d t + \sigma_P P(t) d Z_P(t)$ $d X(t) = \mu_X X(t) d t + \sigma_X X(t) d Z_X(t)$ ...
0
votes
0answers
354 views

Differential equation with random variable

How can I derive analytically or compute numerically the solution to following differential equation $$ dy/dt = y\cdot X\cdot (y\cdot X - g(y,X))\cdot X $$ where X is a random variable (e.g. from a ...
0
votes
0answers
298 views

Time series (stochastic process) estimating parameters using characteristic function

I have a time series of assets ${A_1, A_2, ..., A_n}$, which is described by a sophisticated distribution having the following characteristic function: $\phi(u; t;\theta)$, where $\theta$ is a vector ...