Finance
Drift
compute the drift component of an Ito process
Calling Sequence
Parameters
Description
Examples
References
Compatibility
Drift(X)
Drift(f, mu, sigma, X, t)
X
-
stochastic process, expression involving stochastic variables
f
algebraic expression involving stochastic variables
mu
algebraic expression, drift term of the original process
sigma
algebraic expression, diffusion term of the original process
name, stochastic variable
t
name, time variable
The Drift(X) calling sequence computes the drift term of an Ito process X. That is, given a process X⁡t governed by the stochastic differential equation (SDE)
dX⁡t=μ⁡X⁡t,t⁢dt+σ⁡X⁡t,t⁢dW⁡t
the Drift command will return mu⁡X⁡t,t.
The parameter X can be either a stochastic process or an expression involving stochastic variables. In the first case a Maple procedure is applied for computing the drift term. This procedure will accept two parameters: the value of the state variable and the time, and return the corresponding value of the drift. In the second case, Ito's lemma will be applied to calculate the drift term of X. Note that the Drift command will perform formal computations; the validity of these computations for a given function f will not be verified.
with⁡Finance:
The Drift command knows how to compute the drift for all supported Ito-type processes.
X≔OrnsteinUhlenbeckProcess⁡0,θ,κ,σ
X≔_X0
Drift⁡X
x,t↦κ⋅θ−x
Drift⁡X⁡t
κ⁢θ−_X0⁡t
You can also use expressions involving stochastic variables.
W≔WienerProcess⁡
W≔_W
Drift⁡a⁢t+b⁢W⁡t
a
X≔t↦exp⁡a⋅t+b⋅W⁡t
X≔t↦ⅇa⋅t+b⋅W⁡t
simplify⁡Drift⁡X⁡tX⁡t
a+b22
U≔WienerProcess⁡
U≔_W0
Y≔t↦exp⁡a⋅t+b⋅W⁡t+c⋅U⁡t
Y≔t↦ⅇa⋅t+b⋅W⁡t+c⋅U⁡t
simplify⁡Drift⁡Y⁡tY⁡t
a+b22+c22
Drift⁡X⁡t,Y⁡t
a⁢ⅇa⁢t+b⁢_W⁡t+b2⁢ⅇa⁢t+b⁢_W⁡t2a⁢ⅇa⁢t+b⁢_W⁡t+c⁢_W0⁡t+b2⁢ⅇa⁢t+b⁢_W⁡t+c⁢_W0⁡t2+c2⁢ⅇa⁢t+b⁢_W⁡t+c⁢_W0⁡t2
The following example deals with two correlated one-dimensional Wiener processes.
Σ≔1.0|0.5,0.5|1.0
Σ≔1.00.50.51.0
V≔WienerProcess⁡Σ
V≔_W1
Z≔t↦exp⁡a⋅t+b⋅V⁡t1+c⋅V⁡t2
Z≔t↦ⅇa⋅t+b⋅V⁡t1+c⋅V⁡t2
simplify⁡Drift⁡Z⁡tZ⁡t
a+0.625000000000000⁢b2+c⁢b+0.625000000000000⁢c2
Glasserman, P., Monte Carlo Methods in Financial Engineering. New York: Springer-Verlag, 2004.
Hull, J., Options, Futures, and Other Derivatives, 5th. edition. Upper Saddle River, New Jersey: Prentice Hall, 2003.
Kloeden, P., and Platen, E., Numerical Solution of Stochastic Differential Equations, New York: Springer-Verlag, 1999.
The Finance[Drift] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[BrownianMotion]
Finance[CEVProcess]
Finance[DeterministicProcess]
Finance[Diffusion]
Finance[GaussianShortRateProcess]
Finance[GeometricBrownianMotion]
Finance[HestonProcess]
Finance[OrnsteinUhlenbeckProcess]
Finance[SquareRootDiffusion]
Finance[StochasticProcesses]
Finance[WienerProcess]
Download Help Document