PathGenerator - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Finance

  

PathGenerator

  

create new path generator for a stochastic process

 

Calling Sequence

Parameters

Description

Examples

Compatibility

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 .

Examples

(1)

(2)

Here is a path generator based on a non-homogeneous grid.

(3)

This is simulating a multi-dimensional process.

(4)

(5)

This is creating a path generator for a Vector of one-dimensional processes.

(6)

Compatibility

• 

The Finance[PathGenerator] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance[ExpectedShortfall]

Finance[ExpectedValue]

Finance[PathPlot]

Finance[SamplePath]

Finance[SampleValues]

Finance[TimeGrid]

Finance[ValueAtRisk]

 


Download Help Document