Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Finance[PathGenerator] - create new path generator for a stochastic process
Calling Sequence
PathGenerator(process, timegrid)
PathGenerator(process, timeinterval, timesteps)
Parameters
process
-
stochastic process; process for the path to be generated
timegrid
list, Vector, or time grid; time grid
timeinterval
range; length of simulation interval
timesteps
positive integer; number of time steps
Description
The PathGenerator command creates a new path generator for the specified stochastic process. This command returns a module that can be used to simulate the underlying stochastic process as if it were a Maple procedure. Assume, for example, that the module returned by the PathGenerator command is assigned to the name . Then for any positive integer , will return replications of the sample path of the underlying process.
In the one-dimensional case, the value returned by is a matrix of size , where is the requested number of replications of the sample path (see the replications option) and is the number of points in the time grid (the number of time steps plus one). Each row of this matrix is a single realization of the sample path of the stochastic process of interest. In the multi-dimensional case, the value returned by is a matrix of size , where and are the same as in the one-dimensional case, and is the dimension of the stochastic process to be simulated, which is either given explicitly or deduced from the dimension of the underlying stochastic process.
The module returned by the PathGenerator command can be passed to other commands such as Finance[SamplePath] or Finance[SampleValues] to simulate the underlying stochastic process.
The PathGenerator(process, timegrid) calling sequence creates a path generator for process based on the specified time grid.
The PathGenerator(process, timeinterval, timesteps) calling sequence constructs a path generator for process based on a uniform time grid on the interval timeinterval using the specified number of time steps. The parameter timeinterval must be of type range , where and are non-negative real constants such that . Note that if , the value at will be simulated using a single step of the default discretization method and hence can suffer from a significant discretization bias. Increasing the number of time steps will refine the grid between and , but will have no effect on the value at . To reduce the bias, use a time interval of the form .
Compatibility
The Finance[PathGenerator] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
Here is a path generator based on a non-homogeneous grid.
This is simulating a multi-dimensional process.
This is creating a path generator for a Vector of one-dimensional processes.
See Also
Finance[ExpectedShortfall], Finance[ExpectedValue], Finance[PathPlot], Finance[SamplePath], Finance[SampleValues], Finance[TimeGrid], Finance[ValueAtRisk]
Download Help Document