Local Volatility Model Calibration under Optimal Control
Mathwrist White Paper Series

Fengdong Du, ©Mathwrist LLC 2024
(January 28, 2024)
Abstract

High quality local volatility model calibration has always been a very challenging task in quantitative finance field. In this document, we present a high level overview of the PDE constrained optimal control technique that Mathwrist recently developed as a web application for commodity underlyings. This methodology can be readily applied to equities with minor modifications.

1 Introduction

Assume an underlying asset S(t) follows the dynamics

dS(t)S(t)=μ(t)dt+σ(S,t)dW(t) (1)

, where the local volatility function σ(S,t) is deterministic. If S(t) is a martingale in some risk-neutral measure, Dupire [1994] showed that the local volatility function satisfies a parabolic linear partial differential equation (PDE)

12σ2(K,T)K22CK2=CT (2)

, given European call option price C(K,T) with maturity T and strike K. In a more general setup where interest rate r(t)0 and S(t) pays continuous dividend yield q(t), e.g. S(t) follows a SDE,

dS(t)S(t)=(r(t)-q(t))dt+σ(S,t)dW(t)

, Gatheral [2006] gives a general form of the local volatility PDE using undiscounted European call option price,

12σ2(K,T)K22CK2+(r(t)-q(T))(C-KCK)=CT (3)

The local volatility model is extremely useful in many ways. First, if the local volatility function σ(K,T) is known, we can set the initial value C(K,T=0)=(S0-K)+ and solve European call prices for all T>0 and all K simultaneously. This is effectively a market making capability. In other words, one can quote the entire listed option market in terms of σ(K,T).

Secondly, it can be shown that the local variance σ2(K,T) is a risk-neutral expectation of instantaneous variance conditional on S(T)=K under T-forward measure. Local volatility surfaces can be used as the foundation to construct more complicated stochastic local volatility models for exotic derivative products.

Lastly, probably most importantly, for large option trading books and portfolio/risk management, the local volatility model is a consistent framework for option hedging and risk aggregation. In the traditional delta-hedge or delta-sigma-hedge, it is often tricky to decide what implied volatility should be used. Different practice, e.g. sticky delta, sticky moneyness, hedge ratio adjustments, vanna-volga etc could be very confusing even to professionals when context changes. They often are based on different assumptions and very likely introduce self-inconsistency if mixed together.

2 Existing Calibration Techniques

The most common practice to calibrate local volatility models currently perhaps is to first fit a smooth implied volatility surface, compute and differentiate European call prices using the implied volatility surface. This requires the implied volatility surface to be at least second order smooth. Small kinks on the implied volatility surface could be largely magnified in the local volatility surface hence produce unusable results. There are a variety of smoothing or smooth fitting techniques. Overall, it could be very challenging to fit a smooth implied volatility surface that perserves enough accuracy to match market quotes and yet is able to handle data noises. Most fundamentally though, implied volatility surface itself is not a mathematical model. It is not arbitrage free by construction. Additional care is necessary to prevent operable arbitrage opportunities.

PDEs (2) and (3) can be expressed in terms of implied volatility instead of call prices. e.g. Gatheral [2006],

WT=VL[1-yWWy+14(-14-1W+y2W2)(Wy)2+122Wy2] (4)

, where VL and W are local volatility squared and implied volatility squared respectively, y=log(K/F) for forward price F.

Therefore alternatively, one can attempt to fit a smooth implied volatility surface and numerically differentiate using equation (4). But this is even tricker to do because equation (4) is highly nonlinear. Apart from nonlinearity, boundary conditions add extra difficulties if we want to numerically solve PDE (4).

It would be ideal to bypass the step of building an implied volatility surface and directly fit the local volatility model to market quotes. However, this could be an ill-posed “inverse problem” that generally leads to unstable calibration and delivers unexpected results. There seem to be very few works in the direction of solving an optimal control problem under PDE constraints. Mathwrist completed its first version of proof-of-concept work in 2023 and then developed a web application for user experience. Interested users are welcome to compare the performance of our web application to other methodology, particularly from the following aspects,

  • Ability to handle large quote set. 11 1 For example WTI crude oil option has hundreds quotes almost at every expiry in the first year.

  • Calibration turnaround time.

  • Accuracy to match the market.

  • Shape of the local volatility surface and implied volatility smile produced from the model.

  • Vulnerability to market data noise.

3 Commodity Local Volatility

3.1 Dynamics of Future Contracts

Specific for commodities, we assume a future contract F(t,Ti) with maturity at fixed calendar time Ti follows a SDE

dF(t,Ti)F(t,Ti)=α(t,F)σTi[e-2β1(Ti-t)+λ2e-2β2(Ti-t)]12dW(t) (5)

Parameters β10,β20 are decay factors to produce Samuelson effect or humped volatility shape. Parameter λ0 can be interpreted as a blending factor between the two exponential functions. In the special case when β1=0, σTi can be interpreted as the long term volatility and λ behaves like a leverage factor on short term volatility. All together, β1, β2 and λ determine the overall backbone shape of the vol term structure. These parameters are shared across all future contracts.

Parameter σTi0 on the other hand is specific to the future contract F(t,Ti). It is sometimes called the “big-T” parameter. And finally, α(t,F), sometimes referred as the “small-t” function, in our model setup is a local smile scaling surface that is also common across all future contracts maturing at Ti,i=1,,n. This small-t and big-T combined approach gives rich enough volatility dynamics in commodity derivative modelling.

3.2 Calibration of β1, β2, λ and σTi

Parameters β1, β2 and λ can be calibrated from historical future prices. We take an alternative approach and fit them to the ATM implied volatility from all available future options. This step is carried out before we calibrate the smile scaling function α(t,F).

Now, consider a “reduced” model with flat smile for all futures,

dF(t,Ti)F(t,Ti)=σT[e-2β1(Ti-t)+λ2e-2β2(Ti-t)]12dW(t) (6)

Note that here, we replace the contract specific σTi,i=1,,n by a single parameter σT. Introducing a common parameter σT for all futures facilates a stable calibration of β1, β2 and λ. These parameters determine the overall shape of the volatility backbone term structure.

Let Y(t,Ti)=log(F(t,Ti)F(0,Ti)). For an option expiry T<Ti, Y(T,Ti) has the normal distribution Y(T,Ti)𝒩(-Var(T,Ti)2,Var(T,Ti)),

Var(T,Ti)=σT2[e-2β1(Ti-T)-e-2β1Ti2β1+λ2e-2β2(Ti-T)-e-2β2Ti2β2] (7)

Using the ATM option implied volatility quotes for all available option expiry, we construct a residual vector function 𝐫 that measures the difference between market ATM volatility and model produced ATM volatility Var(T,Ti)T.

Let parameter vector θT=(β1,β2,λ,σT), we solve a constrained and regularized nonlinear least squared problem,

argθmin𝐫(θ)22+ξθT𝐑θs.t. 
-aβ1-β2a
lθu

, where ξ is a penalty factor determined by a generalized cross validation method. Matrix 𝐑 is chosen in a way such that θT𝐑θ somewhat measures the roughness of the backbone volatility term structure. Lastly, all constraint bounds are experimentally choosen.

Once β1, β2 and λ are resolved, we discard the calibrated σT value and proceed to determine the big-T parameters σTi. It is a nature choice to choose σTi such that the backbone term structure exactly matches the ATM implied volatility at the terminal option expiry of each future contract. We actually find and take a more preferable way of choosing σTi that helps to better fit α(t,F) in the later stage of solving the optimal control problem.

3.3 Implied Volatility Smile

The backbone parameters are calibrated to ATM implied volatility from market quotes. Many exchange traded future options are American options. A “de-americanization” prerequisite step is involved to compute equivalent Black Scholes implied volatility from American option prices. There are various “de-americanization” techniques in practice, which by itself could be a separate subject. Here, we only focus on local volatility model calibration, assuming implied volatility are given.

Define the log moneyness variable x=log(F/K) at future price F and strike K. We represent a smooth implied volatility curve by a n-degree Chebyshev approximation polynomial,

f(x)=j=0nTj(t(x))βj

, where t(x) mapps the selected log moneyness range to canonical domain [-1,1] and βj is the coefficient of the j-th Chebyshev basis. Let (σ^i-,σ^i+) be the market implied volatility range at quoted strike Ki. We recover the set of basis coefficients β={βj} by solving an elastically constrained quadratic programming problem,

argβminβT𝐑βs.t.  (8)
σ^j-f(xj)σ^j+,j (9)
0f(xlo)ulo (10)
0f(xhi)uhi (11)
ckf′′(xk)k (12)

First of all, our objective function (8) here is to minimize the curvature fluctuation on the implied volatility smile curve. The roughness matrix 𝐑 therefore is constructed as

βT𝐑β=xloxhif′′′(x)2𝑑x

Secondly, for intraday quotes, the market volatility range in linear constraint (9) is taken from bid/ask. For settlement quotes, they could be taken as settlement quote minus/plus some tolerance. Due to market data noises, we impose the set of constraints in (9) as elastic constraints. If there is no feasible solution satisfying all these range constraints, we then solve an elastic programming problem. For the details of elastic constraints, please refer to our NPL product optimization white paper series.

Thirdly, constraints (10) and (11) are chosen to satisfy Lee [2003] implied volatility theoretical bounds at extreme strikes. Lastly, we impose curvature constraints in (12) to prevent the second derivative of the smile curve from being too negative. The iff arbitrage free condition along the strike dimension is to have a positive density 2CK2, implied from undiscounted European call option price C. When we express 2CK2 in Black Scholes formula wrt strike K and apply chain rule to implied volatility from smile function f(x(K)), we can derive this butterfly arbitrage free condition as f′′(x)+c>0 for some second order correction term c. Because of this correction term, it is necessary to require f′′(x) to be not very negative at least at some representative point xk. The negative curvature lower bound ck at those points can be reasonaly estimated.

3.4 Normalizing the PDE

Both the original form of equation (2) and the general form (3) could be normalized to a “dimension-less” PDE. Define state variable x=log(F/K) and temporal variable τ=Ti-t. We have tried two transformations of the undiscounted European call prices C(T,K) to function: a) v(τ,x)=C(T(τ),K(x))K and b) v(τ,x)=C(T(τ),K(x))FiK, used in Jackel [2013]. It appears that b) is slightly better. Then equation (2) then becomes to

vτ=12u2(τ,x)[2vx2-14v] (13)

This transformation not only delivers better numerical performance but also brings the same initial value condition v(0,x)=(ex2-e-x2)+ to all future constracts. From the commodity dynamics (5), we have the local volatility as a control function

u(τ,x)=α(t(τ),K(x))σTi[e-2β1τ+λ2e-2β2τ]12

After all backbone parameters β1, β2, λ and σTi are determined, we now want to recover the smile scaling function s(τ,x)=α(t(τ),K(x)).

3.5 Optimal Control

Assume s(τ,x) is parameterized by a set of control parameters θ. From undiscounted European call option pricess {ci,j} at time to expiry τi and state xj, we want to find θ such that the transformed option values v(τi,xj;θ) are in bid-ask range. This imposes bounded constraints ci,jbidv(τi,xj;θ)ci,jask. If we are working on settlement prices, the bounded constraints are ci,j-ϵv(τi,xj;θ)ci,j+ϵ for a tolerance setting ϵ.

In the space of control variables {θ} that produce v(τ,x) according to the governing law in (13), which in turn satisfies the market price constraints, we like the local smile scaling function s(τ,x) to be smooth. Choosing a smoothness objective function φ(θ) suitable to the particular choice of s(τ,x;θ), our optimal control problem to recover θ can be loosely formulated as,

argθminφ(θ) s.t. 
vτ=𝒜(v;θ),τ
ci,jbidv(τ=Ti,xj)ci,jask

, where 𝒜() is the spatial partial differentiation operator in equation (13). For example, if we solve this linear parabolic PDE (13) by finite difference method, at each time marching step from τl to τl+1, the PDE constraint amounts to a linear equation 𝐯l+1=𝐓l(θ)𝐯l for some finite difference matrix 𝐓(θ) applied to the vector 𝐯 of state function v(τ,x) values at discretized states. Collecting all matrix vector multiplications, we obtain the final values of state function v(Ti,x) as 𝐯l=𝐓l(θ)𝐓l-1(θ)𝐓0(θ)𝐯0. Let (𝐯) be an interpolation function on vector 𝐯 to return the transformed call option values at quoted strikes. The concrete optimal control now is formulated as

argθminφ(θ) s.t.  (14)
𝐜bid(𝐓l(θ)𝐓l-1(θ)𝐓0(θ)𝐯0)𝐜ask (15)
0s(τ,x)shi (16)
c2s(τ,x)x2 (17)

Constraint (16) requires the smile scaling function is bounded in a positive interval. Constraint (17) avoids the curvature of s(t,x) being too negative.

Note that the PDE constraint (15) is a nonlinear implicit function wrt model parameters θ. Mathwrist’s sequential quadratic programming solver is used to solve this optimal control problem. For the details of this solver, please refer to our NPL nonlinear programming white paper.

3.6 Sensitivity Calculation

The most crucial part of solving this optimal control problem is to efficiently and accurately compute the sensitivity θv(θ;τ,xj). Bump and reprice technique is unacceptable in this context. Some observations will help the sensitivity calculation. First, taking differentiation operation wrt model parameters θ at both sides of equation (13) and rearrange terms, we have

τ(vθ)-12u2(τ,x;θ)[2x2(vθ)-14vθ]=r(θ) (18)
r(θ)=u(θ;τ,x)θu(θ;τ,x)[2vx2-14v] (19)

So the sensitivities vθ have the exactly same PDE coefficients as (13) except that they are inhomogeneous PDEs with the source function r(θ). A carefully implemented PDE solver should be able to solve both v(τ,x;θ) and θv(θ;τ,x) on the fly in the same process.

Secondly, applying differentiation operation to the chain of finite difference transformations, we have

θ[𝐓l(θ)𝐓l-1(θ)𝐓0(θ)]=𝐓lθ[𝐓l-1(θ)𝐓0(θ)]+
𝐓l(θ)𝐓l-1θ[𝐓l-2(θ)𝐓0(θ)]++
𝐓l(θ)𝐓l-1(θ)𝐓1(θ)𝐓0(θ)θ

If we choose s(τ,x;θ) such that θ has sensitivity locality in time, for example a sub set of parameters θ1θ has locality in [τ0,τ1], then all above collapses to

𝐓l(θ)𝐓l-1(θ)𝐓1(θ)𝐓0(θ1)θ1 (20)

This is just to solve the same PDE given a different initial value 𝐓0(θ1)θ1 subject to appropriate boundary conditions.

3.7 Accuracy and Speed

In the demo application, we calibrated the local volatility model to over 1400 WTI crude oil options across 10 different option expiry dates in 1.03 sec, details given in table 1. Row RMSE gives the root of mean square errors to market vol. Note that there are two numbers in this row. The RMSE for the first 7 option expiry is 0.0068. As the 8th to 10th option expiry add more data noise, RMSE goes up to 0.0117. The majority of the residual population is distributed within a very narrow range around 0 as shown in figure 1.

Machine Lenovo Thinkpad X1 Yoga
Operating System Windows 10 Professional, 64-bit
Processor Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz 2.81 GHz
Installed RAM 8.00 GB (7.83 GB usable)
Turnaround Time 1.03 sec.
RMSE (0.0068, 0.0117)
Table 1: Test Report
Figure 1: Histogram of Residuals

References

  • Derman and Kani [1994] E. Derman and I. Kani: Riding on a smile, Risk 7, 32–39, 1994
  • Dupire [1994] B. Dupire: Pricing with a smile, Risk Mag., 7(1): 18-20, 1994
  • Gatheral [2006] J. Gatheral: The Volatility Surface: A Practitioner’s Guide, Wiley Finance, John Wiley & Sons, 2006
  • Jackel [2013] P. Jackel: Let’s Be Rational November 2013; Wilmott, pp 40-53, January 2015
  • Lee [2003] R. Lee: The moment formula for implied volatility at extreme strikes, Mathematical Finance. Forthcoming.