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

Online Help

All Products    Maple    MapleSim


Finance

  

BlackScholesProcess

  

create new Black-Scholes process

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

BlackScholesProcess(S0, sigma, r, d)

BlackScholesProcess(S0, sigma, r, d, t, S)

Parameters

S0

-

non-negative constant; initial value

r

-

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

sigma

-

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

d

-

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

t

-

name; time variable

S

-

name; state variable

Description

• 

The BlackScholesProcess command creates a new Black-Scholes process. This is a process St governed by the stochastic differential equation (SDE)

dStSt=rtdtσSt,t22dt+σSt,tdWt

where

– 

r=rt is the risk-free rate,

– 

σ=σS,t is the local volatility,

– 

d=dt is the dividend yield,

and

– 

Wt is the standard Wiener process.

• 

The parameter S0 defines the initial value of the underlying stochastic process. It must be a real constant.

• 

The parameter r is the risk-free rate. The parameter d is the continuous dividend yield. Time-dependent risk-free rate and dividend yield can be given either as an algebraic expression, a Maple procedure, or a yield term structure. If r or d is given as an algebraic expression, then the fifth parameter t must be passed to specify which variable in r should be used as the time variable. Maple procedure defining a time-dependent drift must accept one parameter (the time) and return the corresponding value for the drift.

• 

The sigma parameter is the local volatility. It can be constant or it can be given as a function of time and the value of the state variable. In the second case it can be specified as an algebraic expression, a Maple procedure or a local volatility term structure. If sigma is specified in the algebraic form, the parameters t and S must be given to specify which variable in sigma represents the time variable and which variable represents the value of the underlying.

Examples

withFinance:

First define a Black-Scholes process with constant parameters.

S0100.0

S0100.0

(1)

σ0.3

σ0.3

(2)

r0.05

r0.05

(3)

d0.01

d0.01

(4)

SBlackScholesProcessS0,σ,r,d:

You can compute the expected payoff of a European call option with strike 100 maturing in 1 year.

T1.0

T1.0

(5)

K100

K100

(6)

DiscountFactorr,TExpectedValuemaxSTK,0,timesteps=100,replications=105,output=value

13.64080475

(7)

You can then compare the result to the theoretical price.

BlackScholesPriceS0,K,T,σ,r,d,call

13.61641736

(8)

This is incorporating local volatility term structure.

σLocalVolatilitySurface0.03+0.0001S,t,S:

XBlackScholesProcessS0,σ,r,d:

Again, you can compute the expected payoff of a European call option with strike 100 maturing in 1 year.

VDiscountFactorr,TExpectedValuemaxXTK,0,timesteps=100,replications=103,output=value

V4.142053200

(9)

Then you can compute the implied volatility.

ImpliedVolatilityV,S0,K,T,r,d

0.03719843687

(10)

In this example we implied volatility surface obtained using a piecewise interpolation of known prices.

r0.05

r0.05

(11)

d0.

d0.

(12)

S087

S087

(13)

K85

K85

(14)

CBlackScholesPriceS0,k,t,0.03+0.0001k,r,d:

Useq0.1i,i=1..20:

Sseq80+i,i=0..20:

VFinance:-LocalVolatilityC,S,U,r,d,t,k:

ΣLocalVolatilitySurfaceU,S,V:

XBlackScholesProcessS0,Σ,r,d:

T0.35

T0.35

(15)

PDiscountFactorr,TExpectedValuemaxXTK,0,timesteps=100,replications=103,output=value

P3.501775067

(16)

ImpliedVolatilityP,S0,K,T,r,d

0.03818795821

(17)

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.

Compatibility

• 

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

• 

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

See Also

Finance[BlackScholesPrice]

Finance[BrownianMotion]

Finance[Diffusion]

Finance[Drift]

Finance[ExpectedValue]

Finance[ForwardCurve]

Finance[GeometricBrownianMotion]

Finance[ImpliedVolatility]

Finance[ItoProcess]

Finance[LocalVolatility]

Finance[LocalVolatilitySurface]

Finance[MertonJumpDiffusion]

Finance[PathPlot]

Finance[SamplePath]

Finance[SampleValues]

Finance[StochasticProcesses]