Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Finance Package Commands For Stochastic Processes
Overview
The Financial Modeling package supports a wide range of stochastic processes used in Financial Engineering. This includes processes for modeling equity prices, mean-reverting processes, pure jump processes, jump diffusions as well as multi-variate Ito processes. In addition, the package provides tools for building more complicated processes from simple ones. Below is the list of supported processes:
BrownianMotion
-
uni- or multi-variate Brownian motion
CEVProcess
constant elasticity of variance (CEV) process
DeterministicProcess
deterministic time-dependent process
DynamicPortfolio
a portfolio of stochastic processes that can be dynamically rebalanced
MarkovChain
a finite state Markov chain
GammaProcess
gamma process
GaussMarkovProcess
Gaussian process for modeling short-term interest rate introduced by Hull and White
GeometricBrownianMotion
geometric Brownian motion
HestonProcess
stochastic volatility process introduced by Heston
ItoDiffusion
general uni- or multi-variate Ito process defined by drift and diffusion
MertonJumpDiffusion
jump-diffusion process introduced by Merton
RegimeSwitchingProcess
stochastic process with multiple regimes
OrnsteinUhlenbeckProcess
Ornstein-Uhlenbeck process
PoissonProcess
Poisson process including the doubly-stochastic Poisson (Cox) process
SquareRootDiffusion
square-root diffusion
SVJJProcess
stochastic volatility with jumps (SVJJ) process
WienerProcess
uni- and multi-variate Wiener process including subordinated Wiener process
Here are some related commands.
ExpectedValue
compute a Monte Carlo estimate of the specified expression
Drift
compute the drift component of an Ito process
Diffusion
compute the diffusion component of an Ito process
PathPlot
plot sample path(s) of the specified stochastic process
SamplePath
generate a sample path for the specified stochastic process
SampleValues
generate sample values for the specified expression involving stochastic variables
ValueAtRisk
estimate value-at-risk for the specified expression
Basic commands
For the first example consider the standard Wiener process.
The previous command created a new Maple variable representing the standard Wiener process. This is an ordinary Maple variable with additional attributes containing some information about the underlying stochastic process. This variable is typically accessed in the form , where is the time of interest. For example, the following command can be used to generate some replications of the sample path for the underlying stochastic process.
You can now generate a larger sample and use tools from the Statistics package to analyze the generated data.
You can also simulate any expression involving our stochastic variable.
Simple expressions involving multiple stochastic parameters can be handled the same way.
Alternatively, you can implement any kind of path function using Maple procedures. This function will be called on every replication of the sample path. In the case of a single stochastic factor the path function will be passed a one-dimensional array containing the sample path. In the case of multiple stochastic factors, the path function will be passed a two-dimensional array where each row contains a sample path for the corresponding stochastic factor.
Consider, for example, a path function that returns In the case when the path function is given explicitly, you must know the number of time steps in advance. You will use time steps in this example, which means that the sample path will contain points.
Now you can compute the expected value of this path function.
Compare this to:
Consider an example involving two stochastic factors (the same as above).
Here is a procedure that computes the expected value of the absorbing Wiener process.
Ito Processes
An Ito process is a stochastic process governed by the stochastic differential equation (SDE)
where is the drift parameter and is the volatility parameter. The coefficients of the above SDE can be extracted using the Drift and Diffusion commands.
Here is a slightly more complicated example.
Here is an example involving a multi-dimensional process.
Here is an Ito process defined explicitly.
See Also
Term Structures worksheet, Cash Flow Analysis worksheet, Day Counters worksheet, Lattice Methods worksheet, Calendars worksheet
Download Help Document