Finance[ImpliedVolatilitySurface] - create new implied volatility term structure
|
Calling Sequence
|
|
ImpliedVolatilitySurface(volatility, T, S, opts)
ImpliedVolatilitySurface(riskfreerate, dividendyield, spot, times, strikes, prices, opts)
ImpliedVolatilitySurface(riskfreerate, dividendyield, spot, dates, strikes, prices, opts)
ImpliedVolatilitySurface(riskfreerate, dividendyield, price, T, K, opts)
ImpliedVolatilitySurface(times, volatilities, opts)
ImpliedVolatilitySurface(dates, volatilities, opts)
ImpliedVolatilitySurface(times, values, volatilities, opts)
ImpliedVolatilitySurface(dates, values, volatilities, opts)
|
|
Parameters
|
|
volatility
|
-
|
algebraic expression, operator or procedure; implied volatility
|
T
|
-
|
name; variable representing time to maturity
|
S
|
-
|
name; variable representing the value of the underlying
|
riskfreerate
|
-
|
non-negative constant, algebraic expression or a yield term structure; risk-free rate
|
dividendyield
|
-
|
non-negative constant, algebraic expression or a yield term structure; dividend yield
|
spot
|
-
|
algebraic expression; initial value of the underlying asset
|
times
|
-
|
list or Vector; times (in years)
|
strikes
|
-
|
list, Vector, listlist or Matrix; strike prices of European call options
|
prices
|
-
|
list, Vector, listlist or Matrix; prices of European call options
|
dates
|
-
|
list; dates
|
price
|
-
|
algebraic expression or procedure; price of a European call option
|
K
|
-
|
name; variable representing the strike price
|
volatilities
|
-
|
list, Vector, listlist or Matrix; volatilities
|
values
|
-
|
list or Vector; values of the underlying
|
opts
|
-
|
equations of the form option = value where option is one of daycounter, interpolation, or referencedate; specify options for the ImpliedVolatilitySurface command
|
|
|
|
|
Description
|
|
•
|
The ImpliedVolatilitySurface(times, volatilities, opts) and ImpliedVolatilitySurface(dates, volatilities, opts) calling sequences create an implied-volatility term structure based on a piecewise interpolation of the specified implied volatilities at the given times or dates. The implied volatilities are assumed to be strike-independent. The times parameter is a list or Vector of times for which implied volatilities are available. In this case the value of the implied volatility at any time is assumed to be independent of the value of the underlying. The dates parameter must be a list of dates given in any of the formats recognized by the Finance[ParseDate] command. The volatilities parameter is a list or Vector of known volatilities.
|
•
|
The ImpliedVolatilitySurface(volatility, T, S, opts) calling sequence constructs an implied-volatility term structure based on the given volatility function. The parameter volatility is the implied volatility given as a function of time from reference and value of the underlying. It can be given either as a Maple procedure or as an algebraic expression. If volatility is given as a procedure it must accept two parameters (time and value of the underlying) and return the corresponding implied volatility as a floating-point number. Finally, if volatility is an algebraic expression, it must depend on two variables. In this case the parameters T and S will be used to determine which variable represents time and which variable represents the value of the underlying.
|
•
|
The ImpliedVolatilitySurface(riskfreerate, dividendyield, callprice, T, K, opts) calling sequence constructs an implied-volatility term structure implied by the available prices of European call options. The parameter riskfreerate is the instantaneous interest rate, which may be time-dependent. The parameter spot is the initial value of the underlying asset. The parameter callprice is the price of the European call option given as a function of time to maturity and strike price. This parameter can be given either as a procedure or as an algebraic expression. In the first case, callprice must accept two parameters: time to maturity and strike price and return the corresponding option price. In the second case, callprice must be an algebraic expression depending on at most two variables. The parameters T and K will specify which variable represents time to maturity and which variable represents the strike price.
|
•
|
The ImpliedVolatilitySurface(riskfreerate, dividendyield, spot, times, strikes, prices, opts) and ImpliedVolatilitySurface(riskfreerate, dividendyield, dates, strikes, prices, opts) calling sequences are similar to the above except that the price function will be determined based on an interpolation of known prices.
|
|
|
Options
|
|
•
|
daycounter = Actual360, Actual365Fixed, AFB, Bond, Euro, Historical, ISDA, ISMA, OneDay, Simple, Thirty360BondBasis, Thirty360EuroBondBasis, Thirty360European, Thirty360Italian, Thirty360USA, or a day counter data structure -- This option specifies the convention used to convert the amount of time between two dates to year fractions.
|
•
|
interpolation = Bilinear or Bicubic -- This option specifies the type of interpolation used to build a volatility surface from a discrete set of rates. The Bilinear interpolation is used by default.
|
•
|
referencedate = date in any of the formats recognized by the Finance[ParseDate] command -- This option specifies the reference date (date when the discount factor is equal to 1).
|
|
|
Compatibility
|
|
•
|
The Finance[ImpliedVolatilitySurface] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
First construct an implied volatility term structure based on:
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
The following example is based on a piecewise approximation of known implied volatilities.
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
>
|
|
| (17) |
In this example you use bi-linear and bi-cubic interpolation of known prices.
>
|
|
| (18) |
>
|
|
| (19) |
>
|
|
| (20) |
>
|
|
| (21) |
>
|
|
| (22) |
>
|
|
| (23) |
>
|
|
| (24) |
>
|
|
| (25) |
>
|
|
| (26) |
>
|
|
| (27) |
>
|
|
| (28) |
>
|
|
| (29) |
>
|
|
| (30) |
In this example you plot implied volatility surface obtained using a piecewise interpolation of known prices.
>
|
|
| (31) |
>
|
|
| (32) |
>
|
|
| (33) |
>
|
|
| (34) |
>
|
|
|
|
References
|
|
|
Brigo, D., Mercurio, F., Interest Rate Models: Theory and Practice, Springer Verlag, 2001.
|
|
Gatheral, J., The Volatility Surface: A Practioner's Guide, (with foreword by Nassim Taleb), Wiley, 2006.
|
|
Hull, J., Options, Futures, and Other Derivatives, 5th. edition, Prentice Hall, 2003.
|
|
|