Finance - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Finance : Stochastic Processes : Finance/RegimeSwitchingProcess

Finance

  

RegimeSwitchingProcess

  

create new multi-regime stochastic process

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

RegimeSwitchingProcess(P, S, i, n, t)

Parameters

P

-

Matrix; transition matrix

S

-

Vector; regimes

i

-

posint; initial state

n

-

posint; number of states per year

t

-

name; time variable

Description

• 

The RegimeSwitchingProcess command creates a regime-switching process with the specified regimes and transition probability. Each of the regimes must be a one-dimensional stochastic process. The parameter S defines all possible regimes that are one-dimensional stochastic processes. Moves between different regimes are assumed to be governed by the d×d transition probability matrix, P, with generic element Pj,k defined as the probability of moving from regime k to regime j.

• 

The parameter n is the number of regimes per year. This process can only be simulated with m time steps per year, where m is a multiple of n. Assume for example that X is a finite state Markov chain with 3 regimes per year. If we simulate the process X on the interval 0..2 with 12 time steps, then the regime change can occur only at steps 2, 4, 6, 8, and 10.

Examples

withFinance:

Consider a regime switching process with 2 regimes. In the first regime, the process is a Brownian motion with zero drift and high volatility; in the second regime, the process behaves like a Brownian motion with hight drift and low volatility. The transition probabilities are: 0.5 for moving to the second regime given that the process is in the first regime and 0.2 for moving to the first regime given that the process is in the second regime. The process will have 2 regimes per year, which means that the regimes can switch only at t=0.5, t=1.0, and t=1.5.

P0.5,0.5|0.2,0.8

P:=0.50.20.50.8

(1)

SBrownianMotion0,0,2.0,BrownianMotion0,0.5,0.001:

XRegimeSwitchingProcessP,S,1,2:

PathPlotXt,t=0..2,timesteps=20,replications=10,gridlines=true,thickness=2,axes=BOXED,color=red..blue

The second example is similar to the one above, but one of the processes is deterministic.

P0.5,0.5|0.2,0.8

P:=0.50.20.50.8

(2)

SBrownianMotion0,0,2.0,0.5t

S:=_X2,0.5t

(3)

XRegimeSwitchingProcessP,S,1,2,t

X:=_X3

(4)

PathPlotXt,t=0..2,timesteps=20,replications=10,thickness=2,axes=BOXED,gridlines=true,color=red..blue

Compatibility

• 

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

• 

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

See Also

Finance[BlackScholesProcess]

Finance[CEVProcess]

Finance[Diffusion]

Finance[Drift]

Finance[ExpectedValue]

Finance[GeometricBrownianMotion]

Finance[ItoProcess]

Finance[MarkovChain]

Finance[PathPlot]

Finance[SamplePath]

Finance[SampleValues]

Finance[StochasticProcesses]

Finance[WienerProcess]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam