geometric_sde_path function
The path of dX = mu X dt + sigma X dW, as a function of the Wiener process's value w at time t.
How to write it
geometric_sde_path(mu, sigma, x0, w, time)
Gives x0 e^((mu - sigma^2/2) t + sigma w); a note says it holds when w is W(t), W(0) = 0.
- mu
- The growth rate, a constant or a function of time. Takes an expression.
- sigma
- The relative noise, a constant. Takes an expression.
- x0
- The starting value. Takes an expression.
- w
- The Wiener process's value at time t, a variable. Takes a variable, or a list of variables.
- time
- The time, a variable. Takes a variable, or a list of variables.
geometric_sde_path(mu, sigma, x0, w, time)
The same for up to six states; the answer is the list of their paths.
- mu
- The growth rate of each state, in brackets. Takes a list.
- sigma
- The noise: one row for each state, one column for each driver. Takes a matrix, written as a list of rows.
- x0
- The starting value of each state. Takes a list.
- w
- The value of each driver at time t, in brackets. Takes a variable, or a list of variables.
- time
- The time, a variable. Takes a variable, or a list of variables.
Examples
geometric_sde_path(mu, sigma, x0, w, t)In the solver,
Open in the solvergeometric_sde_path(mu, sigma, x0, w, t)givesx0*e^(t*(mu - sigma^2/2) + sigma*w).geometric_sde_path(1/10, 1/5, 3, w, t)In the solver,
Open in the solvergeometric_sde_path(1/10, 1/5, 3, w, t)gives3e^(2t/25 + w/5).geometric_sde_path([mu1, mu2], [[s1], [s2]], [x1, x2], [w], t)In the solver,
Open in the solvergeometric_sde_path([mu1, mu2], [[s1], [s2]], [x1, x2], [w], t)gives[x1*e^(t*(mu1 - s1^2/2) + s1*w), x2*e^(t*(mu2 - s2^2/2) + s2*w)].
Related functions
- geometric_brownian_motion_process
A process that grows at rate mu with relative noise sigma, started at x0.
- affine_sde_moments
The mean and variance at time t of dX = (a + b X) dt + sigma dW, started at x0.
- ito_formula
Itô's lemma: the differential of an expression of states that follow an Itô process.
- ito_formula_data
The certified record behind ito_formula: its result, validity, certificate and theorem.
- fit
The least-squares fit of a combination of functions through points.
- ito_integral
The Itô integral of an expression of the Wiener value w and the time s, from 0 to t.