Proposal: SSVI (Surface SVI) arbitrage-free implied volatility surface
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
Research direction
Start by reading the existing SVI classes in ql/experimental/volatility, especially SviSmileSection, and the BlackVolTermStructure interface. The proposal calls for a new surface, arbitrage-condition validation, observable market inputs, and tests for slices, arbitrage, local volatility, and quote updates. Done means the surface meets those requirements; the issue leaves design questions open before implementation.
Written by the indexing model from the issue text.
Description
Summary
This proposal is to add the SSVI (Surface SVI) parameterisation of Gatheral and Jacquier (Arbitrage-free SVI volatility surfaces, Quantitative Finance 14(1), 2014) as a BlackVolTermStructure, providing an implied volatility surface that is free of static arbitrage by construction.
Motivation
QuantLib currently provides SVI only at the level of individual expiries (SviSmileSection, SviInterpolation and SviInterpolatedSmileSection in ql/experimental/volatility). Calibrating SVI slice by slice gives no guarantee against calendar-spread arbitrage between expiries and, in general, none against butterfly arbitrage within an expiry. There is currently no parametric surface in the library that addresses this.
SSVI is a widely used industry standard for equity and FX implied volatility surfaces. It extends SVI to the whole surface with three parameters per expiry and closed-form sufficient conditions for the absence of static arbitrage.
Model
At log-moneyness k = ln(K/F(t)), the total implied variance is
w(k, t) = θ(t)/2 · (1 + ρ φ(θ) k + sqrt((φ(θ) k + ρ)² + 1 − ρ²))
where θ(t) is the ATM total variance, ρ the skew parameter and φ the curvature function. Sufficient conditions for the absence of static arbitrage include a non-decreasing θ(t), together with:
η(1 + |ρ|) ≤ 2and0 < γ ≤ 1/2for the power-law functionφ(θ) = η θ^(−γ) (1 + θ)^(γ−1);λ ≥ (1 + |ρ|)/4for the Heston-like functionφ(θ) = 1/(λθ) · (1 − (1 − e^(−λθ))/(λθ)).
Each SSVI slice corresponds exactly to a raw SVI smile with parameters
(a, b, ρ, m, σ) = (θ(1 − ρ²)/2, θφ/2, ρ, −ρ/φ, sqrt(1 − ρ²)/φ)
which allows the existing SVI classes to be reused.
Proposed implementation
-
SsviBlackVolSurface, aBlackVolTermStructureconstructed from:- the spot and the dividend and risk-free curves, determining the forwards;
- the ATM total variance
θ(t), specified through ATM volatilities at a set of expiries and interpolated linearly in total variance; - the parameter
ρand the choice ofφ(power-law or Heston-like) with its parameters.
All market inputs are taken as observable handles, so the surface is updated when quotes change.
-
Validation of the no-arbitrage conditions at construction, with explicit error messages.
-
Access to the smile at any expiry as an
SviSmileSection, using the mapping above.
Testing
- Each slice reproduces the corresponding
SviSmileSectionbuilt from the mapped raw parameters. - Durrleman's condition
g(k) ≥ 0holds across strikes and maturities, and the total variance is non-decreasing intfor everyk. - Parameter sets violating the conditions are rejected.
- The surface is compatible with
LocalVolSurfaceand yields positive local variances. - Changes to the input quotes propagate to the surface.
Out of scope
Calibration of ρ and the φ parameters to market quotes, using the existing optimisers, is left for a subsequent pull request.
Open questions
I would appreciate your view @lballabio, on whether this would be a useful addition to the library, and whether the proposed approach is suitable. If so, feedback on the following design points would help before implementation:
- Is
ql/experimental/volatility, alongside the existing SVI classes, the appropriate location? - Should
θ(t)be specified through ATM volatilities at given expiries, as proposed, or through an existing term structure such asBlackVarianceCurve? - Should calibration be included in the initial pull request or kept separate, as proposed?
I intend to implement this proposal and submit it as a pull request once the above points are agreed.
- Dominant language
- C++
- Stars
- 7.7k
- Forks
- 2.3k
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 100
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lballabio/QuantLib
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lballabio/QuantLib#3134 · 1 comment ·
Maintainers usually reply within 3 days
-
BiCGstab discards a converged solution when convergence lands on the last permitted iterationPossibly taken @Rahul19771 claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
Solver1D tests: Probe in test-suite/solvers.cpp has the wrong derivative signPossibly taken @igitur claimed this 6 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 35/100
lballabio/QuantLib#3114 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lballabio/QuantLib#3106 · 2 comments ·
Maintainers usually reply within 3 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
lballabio/QuantLib#3093 · 2 comments ·
Maintainers usually reply within 3 days
All issues in lballabio/QuantLib
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
patrick-hudson/put.gd-desktop#2044 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
uxlfoundation/oneDNN#6604 · 1 comment ·
Maintainers usually reply within 2 days