Next Article in Journal
Corrosion Protection of Carbon Steel Using Natural Seaweeds from Seawater
Previous Article in Journal
Nutritional Composition and Uses of Chia (Salvia hispanica) in Guatemala
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Machine Learning to Compute Implied Volatility from European/American Options Considering Dividend Yield †

by
Shuaiqiang Liu
1,
Álvaro Leitao
2,*,
Anastasia Borovykh
3 and
Cornelis W. Oosterlee
4
1
Delft University of Technology, 2628 Delft, The Netherlands
2
CITIC, University of A Coruña, 15071 A Coruña, Spain
3
Imperial College London, London SW7 2AZ, UK
4
Centrum Wiskunde & Informatica, 1098 XG Amsterdam, The Netherlands
*
Author to whom correspondence should be addressed.
Presented at the 3rd XoveTIC Conference, A Coruña, Spain, 8–9 October 2020.
Proceedings 2020, 54(1), 61; https://doi.org/10.3390/proceedings2020054061
Published: 15 September 2020
(This article belongs to the Proceedings of 3rd XoveTIC Conference)

Abstract

:
Computing implied volatility from observed option prices is a frequent and challenging task in finance, even more in the presence of dividends. In this work, we employ a data-driven machine learning approach to determine the Black–Scholes implied volatility, including European-style and American-style options. The inverse function of the pricing model is approximated by an artificial neural network, which decouples the offline (training) and online (prediction) phases and eliminates the need for an iterative process to solve a minimization problem. Meanwhile, two challenging issues are tackled to improve accuracy and robustness, i.e., steep gradients of the volatility with respect to the option price and irregular early-exercise domains for American options. It is shown that deep neural networks can be used as an efficient numerical technique to compute implied volatility from European/American options. An extended version of this work can be found in [1].

1. Problem Formulation

The Black–Scholes model for pricing European options reads,
V e u t + 1 2 σ 2 S 2 2 V e u S 2 + ( r q ) S V e u S r V e u = 0 ,
where r and q are the risk-less interest rate and continuous dividend yield, respectively.
For American options, the original Black–Scholes equation becomes a variational inequality,
V a m t + 1 2 σ 2 S 2 2 V a m S 2 + ( r q ) S V a m S r V a m 0 ,
where the free boundary condition is V a m ( S , t ) H ( K , S t ) , and the terminal condition is V a m ( S , T ) = H ( K , S T ) . We can employ a numerical method, here the COS method [2], to solve the American pricing model. In this work, we will focus on put options. The European/American Black–Scholes solution is denoted by V e u / a m = B S e u / a m ( σ , S 0 , K , τ , r , q , α ) .
Given an observed market option price V m k t (European or American), the Black–Scholes implied volatility σ * is defined by
B S ( σ * ; S 0 , K , τ , r , q , α ) = V m k t .
There does not exist a closed-form expression of the inverse function for neither American-style or European-style options. A popular way is to formulate the above problem into a minimization problem,
min σ * R + B S ( σ * ; S 0 , K , τ , r , q , α ) V m k t
There are several root-finding numerical algorithms to solve (4), for example, Newton–Raphson,
σ k + 1 * = σ k * V ( σ k * ) V m k t B S ( σ k * ) = σ k * V ( σ k * ) V m k t Vega ( σ k * ) , k = 0 , .
However, some issues are likely to arise when using derivative-based algorithms, see Figure 1.

2. Methodology

In order to avoid an iterative algorithm, we provide a data-driven approach for directly approximating the inverse function of (3) via neural networks. Mathematically, an artificial neural network (ANN) can be represented as a composite function,
F ( x | Θ ) = f ( L ) ( f ( 2 ) ( f ( 1 ) ( x ; θ 1 ) ; θ 2 ) ; θ L ) ,
where x stands for the input variables, Θ for the hidden parameters (i.e., weights and biases), L for the number of hidden layers.
The implied volatility defined by Equation (3) can be written as an inverse function of the pricing model,
σ * = B S 1 ( V m k t ; S , K , τ , r , q , α ) ,
where B S 1 ( · ) denotes the inverse Black–Scholes function (European-style or American-style). Please note that the definition domain of (7) is the continuation region Ω h for American-style options. We use a deep neural network to approximate the inverse Black–Scholes function,
σ * = B S 1 ( V m k t ; S , K , τ , r , q , α ) NN ( V m k t ; S , K , τ , r , q , α ) .
Thus we do not need any iterative algorithm to solve (3).

2.1. ANN for European Implied Volatility

The inverse Black–Scholes function probably gives rise to steep gradients of the volatility with respect to the option price, especially for deep OTM/ITM options. It is known that the ANN has difficulties accurately representing such gradients. Here we employ the gradient-squashing technique, as in [3], to address this issue,
V ^ e u P = log V e u P ( S , t ) max ( K e r τ S t e q τ , 0 ) .

2.2. ANN for American Implied Volatility

For training the ANN to compute implied volatility from American options, there are two steps, due to the early-exercise feature. First, we need to compute again the gradient-squashed time value of an American option,
V ^ a m P = log V a m P ( S t , t ) max ( K S t , K e r τ S t e q τ , 0 ) .
Second, the effective definition domain Ω h of the inverse function (8) is numerically found based on the generated samples.

3. Numerical Results

In addition to being robust, the neural network (IV-ANN) solver is much faster than an iterative numerical solver to compute implied volatility from European/American options including dividends, see Table 1, Table 2, Table 3 and Table 4.

References

  1. Liu, S.; Leitao, A.; Borovykh, A.; Oosterlee, C.W. On Calibration Neural Networks for extracting implied information from American options. arXiv 2020, arXiv:2001.11786. [Google Scholar]
  2. Fang, F.; Oosterlee, C.W. Pricing early-exercise and discrete barrier options by Fourier-cosine series expansions. Numer. Math. 2009, 114, 27. [Google Scholar] [CrossRef]
  3. Liu, S.; Oosterlee, C.W.; Bohte, S.M. Pricing Options and Computing Implied Volatilities using Neural Networks. Risks 2019, 7, 16. [Google Scholar] [CrossRef]
Figure 1. The Vega for American options: One tail is near zero, and the other tail is flat (zero value).
Figure 1. The Vega for American options: One tail is near zero, and the other tail is flat (zero value).
Proceedings 54 00061 g001
Table 1. Artificial neural network (ANN) hyper-parameters.
Table 1. Artificial neural network (ANN) hyper-parameters.
ParametersValues
Hidden layers4
Neurons(each layer)400
ActivationReLU
InitializationGlorot
OptimizerAdam
Batch size1024
Table 2. Model parameter ranges.
Table 2. Model parameter ranges.
ParametersRange
InputsStock price ( K / S 0 )[0.3, 1.8]
Time to maturity ( τ )[0.08, 2.5]
Risk-free rate (r)[0.0, 0.25]
Dividend yield (q)[0.0, 0.25]
Scaled time value ( V ^ )-
OutputVolatility ( σ )(0.01, 1.05)
Table 3. Performance of IV-ANN.
Table 3. Performance of IV-ANN.
PhaseEuropean OptionsAmerican Options
MSEMAEMAPE R 2 MSEMAEMAPE R 2
Training1.72 × 10 7 3.17 × 10 4 6.99 × 10 4 0.99999767.12 × 10 7 5.66 × 10 4 1.42 × 10 4 0.999990
Testing1.94 × 10 7 3.35 × 10 4 7.39 × 10 4 0.99999721.93 × 10 6 6.52 × 10 4 2.35 × 10 3 0.999974
Table 4. Computational cost based on 20,000 option prices.
Table 4. Computational cost based on 20,000 option prices.
MethodGPU (s)CPU (s)Robustness
Newton-Raphson19.6823.06No
Brent52.0860.67Yes
Bi-section337.94390.91Yes
IV-ANN0.201.90Yes
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liu, S.; Leitao, Á.; Borovykh, A.; Oosterlee, C.W. Machine Learning to Compute Implied Volatility from European/American Options Considering Dividend Yield. Proceedings 2020, 54, 61. https://doi.org/10.3390/proceedings2020054061

AMA Style

Liu S, Leitao Á, Borovykh A, Oosterlee CW. Machine Learning to Compute Implied Volatility from European/American Options Considering Dividend Yield. Proceedings. 2020; 54(1):61. https://doi.org/10.3390/proceedings2020054061

Chicago/Turabian Style

Liu, Shuaiqiang, Álvaro Leitao, Anastasia Borovykh, and Cornelis W. Oosterlee. 2020. "Machine Learning to Compute Implied Volatility from European/American Options Considering Dividend Yield" Proceedings 54, no. 1: 61. https://doi.org/10.3390/proceedings2020054061

Article Metrics

Back to TopTop