Basic Examples (5)
Define a geometric Brownian motion stochastic process:
Get the arithmetic Brownian motion via a logarithmic transformation:
Mean and variance of the transformed process:
Start with a Wiener process:
In a square transformation of this process, a particular branch is picked in the inverse mapping:
Define a 2D process with the noise as a matrix:
Two variable linear transformation of the process:
Start with a Wiener process:
Perform an exponential transformation:
Create a geometric Brownian motion process:
Reciprocal transformation of the process:
Scope (4)
Create a particular Ito process:
Explicit time-dependent transformation:
Start with a driftless process:
Calculate the drift of the transformation under the variable change z = tanh(x):
Start with a 2D Wiener process:
Transform the process to polar coordinates such that the initial zero drift becomes non zero and radial dependent in polar coordinates:
Start with a 3D Wiener process:
Transform the process from Cartesian to ParabolicCylindrical coordinates using a long name convention:
Options (4)
Define a 1D Wiener process:
Perform a trigonometric change of variables, because of the periodic nature of the transformation is not possible to get a unique solution:
Using the assumption 0<x<π, we select one branch:
Using the assumption -π<x<0, we get a different branch that has a sign flip in the diffusion:
Applications (17)
Mean shifting Ornstein-Uhlenbeck (4)
Define the OrnsteinUhlenbeck process:
Compute mean and variance of the process:
Perform the variable change y=x-μ:
Check the mean and variance, the mean got shifted but the process remains OrnsteinUhlenbeck:
Risk-neutral measure (GBM model) (3)
Define a geometric Brownian motion process modeling a stock price:
Find the discounted stock price via the transformation S = ⅇ-r tx, S is a martingale:
Show a path simulation, setting σ = 0.05 and x0 = 100:
Noisy oscillator (4)
Define a process representing a noisy oscillator, with drift in velocity related to position (as in Hooke's law), with added diffusion only in velocity:
Transforming to E and ϕ variables (energy and phase):
Show a path simulation with σ=0.03,x0=0.5,v0=-0.5. Plotting the phase portrait we get deformed circular paths:
In energy-phase space the same parameters create noisy paths:
Quantum State Diffusion (6)
Define a stochastic differential equation in Cartesian coordinates, this process was obtained from Quantum State Diffusion for some density matrix ρ and Lindblad jump operator L=σz:
Perform change of variables to spherical coordinates which are more appropriate to the geometry of the state space:
Assign parameters. The initial state is on the surface of the Bloch sphere (r =1, θ=π/3, ϕ = π/3):
Generate 100 realizations of the transformed process using simulation time γ/ωx:
Calculate Bloch vector trajectories:
Population of |0〉 can be calculated as
, show some trajectories and how they converge towards the poles:
Possible Issues (2)
If no initial state is supplied when creating a process the default is 0 for each state variable:
Some initial conditions may be undefined under the variable transformation, in this case the origin: