|
Calling Sequence
|
|
BinomialTree(G, S, , , opts)
BinomialTree(T, S, , , opts)
BinomialTree(T, N, , , , , , opts)
|
|
Parameters
|
|
G
|
-
|
time grid data structure; time grid
|
S
|
-
|
Array or list; state space of the discretized process
|
|
-
|
non-negative constant or operator; probability of going up
|
|
-
|
(optional) non-negative constant or operator; probability of going down
|
T
|
-
|
positive; stopping time
|
N
|
-
|
posint; number of times steps
|
|
-
|
positive constant; initial value
|
|
-
|
positive constant; upward movement
|
|
-
|
(optional) positive constant; downward movement
|
opts
|
-
|
(optional) equation(s) of the form option = value where option is mutable; specify options for the BinomialTree command
|
|
|
|
|
Options
|
|
•
|
mutable = truefalse -- This option specifies whether the tree should be mutable or not. The default is true.
|
|
|
Description
|
|
•
|
The BinomialTree(G, S, , , opts) calling sequence constructs a recombining binomial tree approximating a certain stochastic process, typically a GeometricBrownianMotion. The constructed tree will be based on the discretizations of the time and the state spaces given by G and S.
|
•
|
Assume that the time grid G consists of N points , , ..., . Then the resulting binomial tree will have N levels, each level representing possible states of the discretized process at time , . The parameter S contains all possible states of the discretized process. The number of elements of S should be equal to , and the elements of S must be sorted in descending order.
|
•
|
At level , the tree has nodes, , ..., . Each node has two descendants at level , (the upper descendant), and (the lower descendant). The initial state of the underlying process will be equal to . For odd , the states of the underlying at the level are , , ..., , , , ..., , . For even , the states of the underlying at the level are , , ..., , , ..., , .
|
•
|
The transition probabilities (i.e. the probability of going from to and the probability of going from to ) are defined by and . Both and can be either non-negative real constants or one-parameter operators. If and are given in the operator form the corresponding transition probabilities at level will be calculated as and respectively, where .
|
•
|
The BinomialTree(T, S, , , opts) calling sequence is similar except that in this case a uniform time grid with step size is used instead of G. In this case N will be deduced from the size of the state array S.
|
•
|
The BinomialTree(T, N, , , , , , opts) calling sequence will construct a binomial tree based on a uniform time grid with step size . Each tree node will have two descendants (the upper descendant) and (the lower descendant). The transition probabilities will be calculated the same way as above. By default is set to and is set to .
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
Here are two different views of the same tree. The first one uses the standard scale, the second one uses the logarithmic scale.
>
|
|
>
|
|
Inspect the tree.
>
|
|
>
|
|
| (3) |
Change the value of the underlying at the uppermost node on level 5 and compare the two trees.
>
|
|
>
|
|
>
|
|
>
|
|
Here is the same example as above but using a non-homogeneous time grid.
>
|
|
>
|
|
| (5) |
>
|
|
Here are two different views of the same tree. The first one uses the standard scale, the second one uses the logarithmic scale.
>
|
|
>
|
|
Inspect the tree.
>
|
|
>
|
|
| (7) |
Change the value of the underlying at the uppermost node on level 5 and compare the two trees.
>
|
|
>
|
|
>
|
|
>
|
|
In this example you will use the third construction.
>
|
|
Here are two different views of the same tree. The first one uses the standard scale, the second one uses the logarithmic scale.
>
|
|
>
|
|
Construct an immutable tree.
>
|
|
>
|
|
Use the default values for and .
>
|
|
>
|
|
Inspect the tree.
>
|
|
>
|
|
| (11) |
Change the value of the underlying at the uppermost node on level 5 and compare the two trees.
>
|
|
>
|
|
>
|
|
>
|
|
|
|
References
|
|
|
Brigo, D., Mercurio, F., Interest Rate Models: Theory and Practice, New York: Springer-Verlag, 2001.
|
|
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.
|
|
|
Compatibility
|
|
•
|
The Finance[BinomialTree] command was introduced in Maple 15.
|
|
|
|