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

Online Help

All Products    Maple    MapleSim


Finance

  

BlackScholesTheta

  

compute the Theta of a European-style option with given payoff

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

BlackScholesTheta(S0, K, T, sigma, r, d, optiontype)

BlackScholesTheta(S0, P, T, sigma, r, d)

Parameters

S0

-

algebraic expression; initial (current) value of the underlying asset

K

-

algebraic expression; strike price

T

-

algebraic expression; time to maturity

sigma

-

algebraic expression; volatility

r

-

algebraic expression; continuously compounded risk-free rate

d

-

algebraic expression; continuously compounded dividend yield

P

-

operator or procedure; payoff function

optiontype

-

call or put; option type

Description

• 

The Theta of an option or a portfolio of options is the rate of change of the option price or the portfolio price with time. As time progresses, the time to maturity decreases; this explains the minus sign in the following definition:

Θ=−ⅆSⅆT

• 

The BlackScholesTheta command computes the Theta of a European-style option with the specified payoff function.

• 

The parameter S0 is the initial (current) value of the underlying asset. The parameter T is the time to maturity in years.

• 

The parameter K specifies the strike price if this is a vanilla put or call option. Any payoff function can be specified using the second calling sequence. In this case the parameter P must be given in the form of an operator, which accepts one parameter (spot price at maturity) and returns the corresponding payoff.

• 

The sigma, r, and d parameters are the volatility, the risk-free rate, and the dividend yield of the underlying asset. These parameters can be given in either the algebraic form or the operator form. The parameter d is optional. By default, the dividend yield is taken to be 0.

Examples

> 

with⁡Finance:

> 

r≔0.05

r≔0.05

(1)
> 

d≔0.03

d≔0.03

(2)

First you compute the Theta of a European call option with strike price 100, which matures in 1 year. This will define the Theta as a function of the risk-free rate, the dividend yield, and the volatility.

> 

expand⁡BlackScholesTheta⁡100,100,1,σ,r,d,call

−0.922405261+1.4556683⁢erf⁡0.01414213562σ+0.3535533905⁢σ−2.×10−10⁢ⅇ−0.0001999999998σ2⁢ⅇ−0.1249999999⁢σ2σ−19.16497649⁢σ⁢ⅇ−0.0001999999998σ2⁢ⅇ−0.1249999999⁢σ2+2.378073561⁢erf⁡−0.01414213562σ+0.3535533905⁢σ

(3)

In this example you will use numeric values for the risk-free rate, the dividend yield, and the volatility.

> 

expand⁡BlackScholesTheta⁡100,100,1,0.3,0.05,0.03,call

−6.187329487

(4)

You can also use the generic method in which the option is defined through its payoff function.

> 

BlackScholesTheta⁡100,t↦max⁡t−100,0,1,0.3,0.05,0.03

−6.187329483

(5)
> 

Θ≔expand⁡BlackScholesTheta⁡100,K,1,σ,r,d,call

Θ≔1.455668300+1.455668300⁢erf⁡3.270489202σ+0.707106781⁢ln⁡1Kσ+0.3535533905⁢σ+8.787467886⁢1K−4.625170183σ2⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2σ⁢1K0.4999999997−0.9582488254⁢σ⁢1K−4.625170183σ2⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ21K0.4999999997+1.916497650⁢1K−4.625170183σ2⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢ln⁡1Kσ⁢1K0.4999999997−0.02378073561⁢K+0.02378073561⁢K⁢erf⁡−3.270489202σ−0.707106781⁢ln⁡1Kσ+0.3535533905⁢σ−8.787467868⁢K⁢1K−4.625170184σ2⁢1K0.4999999998⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2σ−0.9582488229⁢K⁢1K−4.625170184σ2⁢1K0.4999999998⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢σ−1.916497646⁢K⁢1K−4.625170184σ2⁢1K0.4999999998⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢ln⁡1Kσ

(6)
> 

plot3d⁡Θ,σ=0..1,K=70..120,axes=BOXED

Here are similar examples for the European put option.

> 

BlackScholesTheta⁡100,120,1,σ,r,d,put

1.398019973⁢σ+2.853688273⁢erf⁡0.1147786735+0.3535533905⁢σ2σ⁢σ+1.×10−9⁢ⅇ−0.01317414389−0.1249999999⁢σ4σ2−20.99417987⁢ⅇ−0.01317414389−0.1249999999⁢σ4σ2⁢σ2+1.4556683⁢erf⁡−0.1147786735+0.3535533905⁢σ2σ⁢σσ

(7)
> 

BlackScholesTheta⁡100,120,1,0.3,0.05,0.03,put

−2.96788222

(8)
> 

BlackScholesTheta⁡100,t↦max⁡120−t,0,1,σ,r,d

1.45566830⁢erf⁡−0.1147786735+0.3535533905⁢σ2σ⁢σ−1.0×10−9⁢ⅇ−0.01317414389−0.1249999999⁢σ4σ2−20.99417988⁢ⅇ−0.01317414389−0.1249999999⁢σ4σ2⁢σ2+1.398019973⁢σ+2.853688274⁢erf⁡0.1147786735+0.3535533905⁢σ2σ⁢σσ

(9)

Compare with

> 

BlackScholesTheta⁡100,t↦max⁡t−100,0,1,σ,r,d

−19.16497648⁢ⅇ−1.⁢0.1249999999⁢σ4+0.0001999999999σ2⁢σ+1.455668300⁢erf⁡0.01414213562+0.3535533905⁢σ2σ−0.9224052619+2.378073561⁢erf⁡−0.01414213562+0.3535533905⁢σ2σ

(10)
> 

BlackScholesTheta⁡100,t↦max⁡120−t,0,1,0.3,0.05,0.03,d

−2.967882255

(11)

References

  

Hull, J., Options, Futures, and Other Derivatives, 5th. edition. Upper Saddle River, New Jersey: Prentice Hall, 2003.

Compatibility

• 

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

• 

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

See Also

Finance[AmericanOption]

Finance[BermudanOption]

Finance[BlackScholesDelta]

Finance[BlackScholesGamma]

Finance[BlackScholesPrice]

Finance[BlackScholesPrice]

Finance[BlackScholesRho]

Finance[BlackScholesVega]

Finance[EuropeanOption]

Finance[ImpliedVolatility]

Finance[LatticePrice]