Comments (14)
Sure. Do you have a view on the strike interpolation scheme ? SABR or polynomial or other ?
from financepy.
I would use a polynomial interpolation - ideally a SVI implementation
from financepy.
from financepy.
OK. I am looking at SVI surfaces.
from financepy.
Section 5.1 of the below article describes a fast and robust implementation of the SVI algorithm:
https://zeliade.com/wp-content/uploads/whitepapers/zwp-008-RobustNoArbSSVI.pdf
First the "Slices" are calibrated producing a set of parameters for each expiry/curve provided as input.
Then section 7.2 and 7.3 describes how to interpolate (or extrapolate) for any expiry using the previously calibrated parameters.
This jupyter notebook describes well the parametrisation: (The first section can be dismissed as implied vols are given as input in our case and not derived from option prices).
http://www.cmap.polytechnique.fr/~demarco/files/calibrationParis6/TP_M2_probFin_implied_vol_parametrisation_solutions.ipynb
from financepy.
OK. I will look at this today.
from financepy.
SSVI would be polynomial in delta.
SSVI is often used with Listed Option prices as input in the literature which requires a first step to imply the Black-Scholes vols from the prices before then moving to the SSVI polynomial fit.
In this case the vols are given as input so first step is not necessary here.
Further useful resources may be found here:
https://wwwf.imperial.ac.uk/~ajacquie/IC_AMDP/IC_AMDP_Docs/Code/SSVI.pdf
Also happy to take a look at SABR. Is it already available in a VolSurface Class method?
from financepy.
from financepy.
SABR is in the SABR class (shifted and basic) under models. I have just used it in FinFXVolSurfacePlus under market->volatility and I am about to use it again for swaptions. On 12/01/2021 08:42, mattdoub wrote: Cool. SSVI would be polynomial in delta. SSVI is often used with Listed Option prices as input in the literature which requires a first step to imply the Black-Scholes vols from the prices before then moving to the SSVI polynomial fit. In this case the vols are given as input so first step is not necessary here. Further useful resources may be found here: https://wwwf.imperial.ac.uk/~ajacquie/IC_AMDP/IC_AMDP_Docs/Code/SSVI.pdf Also happy to take a look at SABR. Is it already available in a VolSurface Class method? — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#63 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABJ73PK5JXOZZMUNTJEMVWTSZP4PJANCNFSM4V5MI4BA.
Apols meant SSVI polynomia in strike not delta...
from financepy.
Just checked in FinEquityVolatilitySurface. It uses Gatheral's SVI to fit the data you provided. See the test case TestFinEquityVolatilitySurface. I will look at SSVI over the next few days. It's already coded up but not yet wired in.
from financepy.
I am closing this for the moment.
from financepy.
I have added an access function to get the vol called
volatilityFromStrikeDate(K, expiryDate):
from financepy.
Looks v good indeed, and it fits well! ;)
Just noticed a tiny bug:
once the curve is calibrated, if you want to see the object in the console it returns an error:
'FinEquityVolSurface' object has no attribute '_atmMethod'
from financepy.
Fixed.
BTW I don't know if I got lucky with the fit as it is unconstrained. I need to build in constraints and no-arb checks. I seeded the longer expiry date fits with the SVI parameters from the previous expiry date which helps.
from financepy.
Related Issues (20)
- argument type issue - FXVanillaOption with SABR model HOT 3
- Re-generate manual when master is updated HOT 5
- Date Schedule._generate issue HOT 2
- Example of SOFR curve
- Potential issues for CDS pricing HOT 4
- Major implementation change for ibor_swap? A notebook example doesn't tie out anymore. HOT 12
- Bond Curve Fitting HOT 1
- Inconsistency in Day Count in Index Curve? HOT 3
- CDSOption insensitive to vol for Receiver HOT 4
- Division with wrong day count convention causes incorrect forward rates HOT 1
- Bond OAS and accrued interest HOT 2
- barrierOpt.value issue HOT 2
- choose to apply a Black'76 in Fx Vanilla option HOT 1
- Build SOFR curve - suggestions
- Updated FINGBMPROCESS_generatePaths HOT 4
- Backtesting of Strategy HOT 4
- 'bond.print_payments' error HOT 2
- typo in "acccrued"
- Name 'swap_types' is not defined HOT 3
- How to deal with same maturity bonds for bootstrap curve? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from financepy.