MertonJumpDiffusion - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Finance

  

MertonJumpDiffusion

  

create new jump diffusion process

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

MertonJumpDiffusion(X, lambda, a, b)

MertonJumpDiffusion(S0, sigma, r, d, lambda, a, b, t, S)

Parameters

X

-

Black-Scholes process

lambda

-

intensity of the lognormal Poisson process

a

-

scale parameter of the lognormal Poisson process

b

-

shape parameter of the lognormal Poisson process

S0

-

non-negative constant; initial value

sigma

-

non-negative constant, procedure, or local volatility structure; volatility

r

-

non-negative constant, procedure, or yield term structure; risk-free rate

d

-

non-negative constant, procedure, or yield term structure; dividend yield

t

-

name; time variable

S

-

name; state variable

Description

• 

The MertonJumpDiffusion command creates a new jump diffusion process that is governed by the stochastic differential equation (SDE)

dS⁡tS⁡t-=μ⁡t⁢dt+σ⁡t⁢dW⁡t+dJ⁡t

  

where

– 

μ⁡t is the drift parameter

– 

σ⁡t is the volatility parameter

– 

W⁡t is the standard Wiener process

  

and

– 

J⁡t is a compound Poisson process of the form

J⁡t=∑j=1N⁡t⁡Yj−1

  

such that log⁡Yi is independent and lognormally distributed with mean a and standard deviation b.

• 

Both the drift parameter mu and the volatility parameter sigma can be either constant or time-dependent. In the second case they can be specified either as an algebraic expression containing one indeterminate, or as a procedure that accepts one parameter (the time) and returns the corresponding value of the drift (volatility).

• 

Similar to the drift and the volatility parameters, the intensity parameter lambda can be either constant or time-dependent. In the second case it can be specified either as an algebraic expression containing one indeterminate or as a procedure that accepts one parameter (the time).

• 

Both the scale parameter a and the shape parameter b of the underlying lognormal Poisson process must be real constants.

Examples

> 

with⁡Finance:

First consider two examples of jump diffusion with low volatility to observe the effect of jumps.

> 

S0≔100

S0≔100

(1)
> 

r≔0.05

r≔0.05

(2)
> 

d≔0.01

d≔0.01

(3)
> 

σ1≔0.01

σ1≔0.01

(4)
> 

a≔0.

a≔0.

(5)
> 

b≔0.5

b≔0.5

(6)
> 

λ1≔2.0

λ1≔2.0

(7)
> 

λ2≔0.2

λ2≔0.2

(8)
> 

X1≔MertonJumpDiffusion⁡S0,σ1,r,d,λ1,a,b:

> 

PathPlot⁡X1⁡t,t=0..1,timesteps=100,replications=5,color=red..blue,thickness=3,axes=BOXED,gridlines=true

> 

X2≔MertonJumpDiffusion⁡S0,σ1,r,d,λ2,a,b:

> 

PathPlot⁡X2⁡t,t=0..1,timesteps=100,replications=5,color=red..blue,thickness=3,axes=BOXED,gridlines=true

Now consider similar processes but with relatively high volatility.

> 

σ2≔0.5

σ2≔0.5

(9)
> 

X3≔MertonJumpDiffusion⁡S0,σ2,r,d,λ2,a,b:

> 

PathPlot⁡X3⁡t,t=0..1,timesteps=100,replications=5,color=red..blue,thickness=3,axes=BOXED,gridlines=true

> 

Y≔BlackScholesProcess⁡S0,σ2,r,d:

> 

X4≔MertonJumpDiffusion⁡Y,λ1,0,b:

> 

PathPlot⁡X4⁡t,t=0..1,timesteps=100,replications=5,color=red..blue,thickness=3,axes=BOXED,gridlines=true

> 

ExpectedValue⁡max⁡X4⁡1−90,0,timesteps=100,replications=105

value=65.32590075,standarderror=0.5535149183

(10)
> 

S1≔SampleValues⁡Y⁡1,timesteps=100,replications=105

S1≔101.825666716120,211.597429197824,179.868143077322,95.0798588111320,63.8391621539596,43.5499543702013,45.2475969230048,161.596937384455,103.061034307557,45.5608447156157,94.1300994812619,127.844506890246,72.3545511349552,284.761482977310,76.1140212076398,129.539663987378,132.654676243626,39.1159169360427,74.0398460748399,119.980299146567,156.735945812825,119.345653963669,81.3864379263279,96.2607964306695,39.5988147920532,182.616178245010,158.914373802485,106.826881085464,64.1436980239772,82.3759063693563,90.0690291150277,172.311091594169,123.961032944969,170.912735621123,124.731404112040,98.2841097798486,207.671960726774,127.253385260064,175.288909819423,83.9843935504094,56.8384072034971,56.4248989265344,54.0180558889784,71.2642153242922,90.2160083334183,51.1414337598471,266.852905529140,146.075595689887,119.396942735425,76.2357630985960,51.9875413131383,207.571797142636,52.1074383065072,135.277095961755,79.7229054262501,122.869392025421,91.3801401984927,97.7555134085878,43.8385601358150,56.1329654662214,64.8847156504278,55.6748347753161,161.520576963064,159.450124263490,99.9915141965436,81.9704878487797,144.673347516996,136.128481904221,46.3301822288610,171.798457030189,115.615085365962,138.011263167748,120.209313931543,90.6713612149641,37.4528363167679,38.5534909610905,107.835338944180,78.2533846548361,128.063229549924,80.9984690018163,49.3161211584313,120.332880545447,137.910622369281,90.9112460070809,141.859890502353,93.5531381871573,53.4495483926333,76.7220093986117,51.6928381100303,136.495588443138,70.0515511853285,54.1253392543809,100.647224416217,91.3806441011640,123.575753241987,92.7562869022790,87.3396416814101,110.662325465723,39.3922123563587,89.2154366500675,…,⋯ 99900 Array entries not shown

(11)
> 

S2≔SampleValues⁡X4⁡1,timesteps=100,replications=105

S2≔178.148485980954,46.8548971036325,35.4327469684744,177.014080950626,138.574618063823,38.1462730921187,86.0308212743625,243.315879088882,146.601504016804,26.7697472168081,24.4667281693362,82.7756298844434,157.861481918498,222.027125361523,47.9877784151120,56.4552186693529,188.437299496609,67.2691071459988,13.7231893490244,27.1836498735032,190.057164945083,85.7011325347199,143.594406560945,262.279034633010,85.4666233492793,381.090762069329,15.5375162320126,91.8604842561660,48.0110441195653,95.2827412976673,188.853186635390,237.850901956378,88.2137495491228,93.5592072650676,149.393518382644,441.838273448279,161.059355151023,54.2769591627770,147.510576353610,172.203991888290,406.717071293496,57.4943564068663,273.341978142059,74.8063593065170,22.1850638586944,37.3032324078273,159.198643585470,40.0206626381146,38.1266109523970,113.190397398458,64.3676374928235,91.3918214466848,59.7251991009939,181.546272016903,138.617299014866,78.6966015958368,56.4224242389431,82.1062110138599,101.191784544535,102.518701257508,205.081368989036,99.6946541388798,180.623278529842,253.238380361531,103.095314818770,78.1811680102902,69.1045402149384,166.773926313666,118.176384401011,80.6206544111316,93.9909302534598,93.3376522947097,4.14858861200652,103.172162590306,38.5779363609169,124.142347349034,338.729314144461,91.5878131942109,104.388793373774,68.6117350718301,134.420238175529,170.205563049446,40.6582684682798,94.5156364788846,74.5986234811973,73.5192360745397,798.420574017315,85.5081701614424,71.1821955442085,72.2897497517671,149.102466969672,148.456797336900,74.7765763779110,175.050125797822,314.563522370798,25.0862958759955,667.199889892685,88.9357664258972,47.0425695584591,56.6617197095061,…,⋯ 99900 Array entries not shown

(12)
> 

P1≔StatisticsFrequencyPlot⁡S1,range=0..300,thickness=3,color=red,bincount=50:

> 

P2≔StatisticsFrequencyPlot⁡S2,range=0..300,thickness=3,color=blue,bincount=50:

> 

plotsdisplay⁡P1,P2,axes=BOXED,gridlines=true:

Here is another way to define the same jump diffusion process.

> 

J≔PoissonProcess⁡λ2,Normal⁡a,b

J≔_P

(13)
> 

Z≔t↦Y⁡t⋅exp⁡J⁡t

Z≔t↦Y⁡t⋅ⅇJ⁡t

(14)
> 

ExpectedValue⁡max⁡Z⁡1−90,0,timesteps=100,replications=105

value=30.41454912,standarderror=0.1764124093

(15)

References

  

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.

  

Merton, R.C., On the pricing when underlying stock returns are discontinuous, Journal of Financial Economics, (3) 1976, pp. 125-144.

Compatibility

• 

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

• 

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

See Also

Finance[BlackScholesProcess]

Finance[BrownianMotion]

Finance[Diffusion]

Finance[Drift]

Finance[ExpectedValue]

Finance[ForwardCurve]

Finance[GeometricBrownianMotion]

Finance[ImpliedVolatility]

Finance[ItoProcess]

Finance[LocalVolatility]

Finance[LocalVolatilitySurface]

Finance[PathPlot]

Finance[SamplePath]

Finance[SampleValues]

Finance[StochasticProcesses]

Finance[SVJJProcess]