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

Online Help

All Products    Maple    MapleSim


Finance

  

BlackScholesVega

  

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

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

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

BlackScholesVega(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 Vega of an option or a portfolio of options is the sensitivity of the option or portfolio to changes in the volatility of the underlying asset.

Vega=ⅆSⅆσ

• 

The BlackScholesVega command computes the Vega 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 Vega of a European call option with strike price 100, which matures in 1 year. This will define the Vega as a function of the risk-free rate, the dividend yield, and the volatility.

> 

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

38.32995297⁢ⅇ−0.0001999999998σ2⁢ⅇ−0.1249999999⁢σ2−1.×10−10⁢ⅇ−0.0001999999998σ2⁢ⅇ−0.1249999999⁢σ2σ2

(3)

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

> 

BlackScholesVega⁡100,100,1,0.3,0.05,0.03,call

37.81702623

(4)

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

> 

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

38.32995296⁢ⅇ−0.0001999999998σ2⁢ⅇ−0.1249999999⁢σ2−2.0000×10−10⁢ⅇ−0.0001999999998σ2⁢ⅇ−0.1249999999⁢σ2σ2

(5)
> 

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

37.81702620

(6)
> 

Vega≔expand⁡BlackScholesVega⁡100,K,1,σ,0.05,0.03,call

Vega≔1.916497650⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢1K−4.625170183σ21K0.4999999997−17.72825559⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢1K−4.625170183σ21K0.4999999997⁢σ2−3.832995301⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢1K−4.625170183σ2⁢ln⁡1K1K0.4999999997⁢σ2+17.72825555⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢K⁢1K−4.625170184σ2⁢1K0.4999999998σ2+3.832995293⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢K⁢1K−4.625170184σ2⁢1K0.4999999998⁢ln⁡1Kσ2+1.916497646⁢ⅇ−10.69609962σ2⁢ⅇ−0.4999999997⁢ln⁡1K2σ2⁢ⅇ−0.1249999999⁢σ2⁢K⁢1K−4.625170184σ2⁢1K0.4999999998

(7)
> 

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

Here are similar examples for the European put option.

> 

expand⁡BlackScholesVega⁡100,120,1,σ,r,d,put

41.98835973⁢ⅇ−0.01317414389σ2⁢ⅇ−0.1249999999⁢σ2

(8)
> 

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

35.86504172

(9)
> 

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

1.0×10−9⁢ⅇ−0.01317414389σ2⁢ⅇ−0.1249999999⁢σ2σ2+41.98835974⁢ⅇ−0.01317414389σ2⁢ⅇ−0.1249999999⁢σ2

(10)
> 

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

35.86504186

(11)

In this example, you will compute the Vega of a strangle.

> 

S≔expand⁡BlackScholesVega⁡100&comma;t↦piecewise⁡t<90&comma;90−t&comma;t<110&comma;0&comma;t−110&comma;1&comma;σ&comma;r&comma;d

S≔36.36298620⁢&ExponentialE;−0.007857629439σ2⁢&ExponentialE;−0.1249999999⁢σ2+5.×10−9⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.007857629439σ2σ2+40.20079382⁢&ExponentialE;−0.002835811589σ2⁢&ExponentialE;−0.1249999999⁢σ2

(12)
> 

C≔expand⁡BlackScholesVega⁡100&comma;110&comma;1&comma;σ&comma;r&comma;d&comma;call

C≔20.10039692⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.002835811588σ2+3.027529011⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.002835811588σ2σ2+20.10039691⁢&ExponentialE;−0.002835811589σ2⁢&ExponentialE;−0.1249999999⁢σ2−3.027529011⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.002835811589σ2σ2

(13)
> 

P≔expand⁡BlackScholesVega⁡100&comma;90&comma;1&comma;σ&comma;r&comma;d&comma;put

P≔4.558482700⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.007857629432σ2σ2+18.18149310⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.007857629432σ2−4.558482699⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.007857629430σ2σ2+18.18149310⁢&ExponentialE;−0.1249999999⁢σ2⁢&ExponentialE;−0.007857629430σ2

(14)

Check that S is sufficiently close to C+P.

> 

plot⁡S&comma;C+P&comma;σ=0..1&comma;color=red&comma;blue&comma;thickness=3&comma;axes=BOXED&comma;gridlines

References

  

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

Compatibility

• 

The Finance[BlackScholesVega] 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[BlackScholesRho]

Finance[BlackScholesTheta]

Finance[EuropeanOption]

Finance[ImpliedVolatility]

Finance[LatticePrice]