Finance[MarkovChain] - create new finite-state Markov chain
|
Calling Sequence
|
|
MarkovChain(P, S, i, n)
|
|
Parameters
|
|
P
|
-
|
Matrix; transition matrix
|
S
|
-
|
Vector; state space
|
i
|
-
|
posint; initial state
|
n
|
-
|
posint; number of states per year
|
|
|
|
|
Description
|
|
•
|
The MarkovChain command creates a new finite state Markov chain.
|
•
|
The parameter S is a vector containing values for all possible states of the process.
|
|
|
Compatibility
|
|
•
|
The Finance[MarkovChain] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
The following command will issue an error because the number of time steps used in simulation must be a multiple of the number of states per year.
>
|
|
|
|
See Also
|
|
Finance[BlackScholesProcess], Finance[CEVProcess], Finance[Diffusion], Finance[Drift], Finance[ExpectedValue], Finance[GeometricBrownianMotion], Finance[ItoProcess], Finance[PathPlot], Finance[RegimeSwitchingProcess], Finance[SamplePath], Finance[SampleValues], Finance[StochasticProcesses], Finance[WienerProcess]
|
|
Download Help Document
Was this information helpful?