Finance[BrownianMotion] - define one- or multi-dimensional Brownian motion process
|
Calling Sequence
|
|
BrownianMotion(, mu, sigma, opts)
BrownianMotion(, mu, sigma, t, opts)
BrownianMotion(, Mu, Sigma)
|
|
Parameters
|
|
|
-
|
real constant; initial value
|
mu
|
-
|
algebraic expression, operator or procedure; drift parameter
|
sigma
|
-
|
algebraic expression, operator, procedure or a one-dimensional stochastic process; volatility
|
t
|
-
|
time parameter
|
|
-
|
Vector; initial value
|
Mu
|
-
|
Vector; drift parameter
|
Sigma
|
-
|
Matrix; covariance matrix
|
opts
|
-
|
(optional) equation(s) of the form option = value where option is scheme; specify options for the BrownianMotion command
|
|
|
|
|
Description
|
|
where
–
|
is the drift,
|
–
|
is the volatility,
|
and
–
|
is the standard Wiener process.
|
•
|
The parameter defines the initial value of the underlying stochastic process. It must be a real constant.
|
•
|
In the simplest case of a constant drift, mu is a real number (i.e. any expression of type ). Time-dependent drift can be given either as an algebraic expression or as a Maple procedure. If mu is given as an algebraic expression, then the parameter must be passed to specify which variable in mu should be used as a time variable. Maple procedure defining a time-dependent drift must accept one parameter (the time) and return the corresponding value for the drift.
|
•
|
Similar to the drift, the volatility parameter can be constant or time dependent. In addition to this, the volatility can involve other (one-dimensional) stochastic variables. Note that stochastic drift is not supported.
|
•
|
The BrownianMotion(, Mu, Sigma) defines an -dimensional Brownian motion with drift Mu and covariance Sigma. This process is defined by the SDE
|
where
–
|
is a vector of size ,
|
and
–
|
is the standard -dimensional Wiener process.
|
•
|
In this case the drift vector and the covariance matrix are time-independent. The drift parameter Mu must be given as a Vector and the covariance matrix Sigma must be a given as a symmetric matrix (see Matrix).
|
•
|
The scheme option specifies the discretization scheme used for simulation of this process. By default the standard Euler scheme is used. When scheme is set to unbiased the transition density will be used to simulate a value given . This scheme is appropriate in the case of a time-dependent drift and/or volatility.
|
|
|
Options
|
|
•
|
scheme = unbiased or Euler -- This option specifies which discretization scheme should be used for simulating this process.
|
|
|
Compatibility
|
|
•
|
The Finance[BrownianMotion] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
First consider the case of a one-dimensional Brownian motion with constant drift and volatility.
>
|
|
>
|
|
| (2) |
>
|
|
Compute the drift and diffusion for functions of .
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
Here is an example of a one-dimensional Brownian motion with time-dependent parameters given in algebraic form.
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
>
|
|
Here is the same example but with drift and volatility given in the form of Maple procedures.
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
>
|
|
Here is an example of a two-dimensional Brownian motion.
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
You can simulate values for any path function given as a Maple procedure.
>
|
|
>
|
|
| (16) |
>
|
|
Here are examples involving stochastic volatility.
>
|
|
| (17) |
>
|
|
| (18) |
>
|
|
Here is the same using different discretization schemes. For presentation purposes let us consider a Brownian motion with very low volatility and time-dependent drift. Compare the simulated results with the corresponding solution of an ordinary (non-stochastic) differential equation.
>
|
|
| (19) |
>
|
|
| (20) |
>
|
|
| (21) |
>
|
|
| (22) |
>
|
|
>
|
|
|
|
See Also
|
|
Finance[BlackScholesProcess], Finance[CEVProcess], Finance[Diffusion], Finance[Drift], Finance[ExpectedValue], Finance[GeometricBrownianMotion], Finance[ItoProcess], Finance[PathPlot], Finance[SamplePath], Finance[SampleValues], Finance[StochasticProcesses], Finance[WienerProcess]
|
|
References
|
|
|
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.
|
|
|