Skip to Content
ProceedingsProceedings
  • Proceeding Paper
  • Open Access

15 September 2020

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

,
,
and
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
This article belongs to the Proceedings 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.
Figure 1. The Vega for American options: One tail is near zero, and the other tail is flat (zero value).

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.
Table 1. Artificial neural network (ANN) hyper-parameters.
Table 2. Model parameter ranges.
Table 3. Performance of IV-ANN.
Table 4. Computational cost based on 20,000 option prices.

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]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.