• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

Local Volatility with Example in Python

Joined
1/3/12
Messages
4
Points
11
Can someone help me to give reference point where Local Volatility is explained with example implemented in Python ?
Thanks,
 
Just of curiosity; why does the code need to be Python?
Plan B; wrap C code in a Cython wrapper..

Which model do you want to use for LV?
 
Thanks Daniel for reply, I am looking out to solve using dupire model based on Implied Volatility as input for SPX.
 
You're welcome. Ideally you could build it all from the ground up.
A more effective solution might be to use Quantlib in Python (caveat: I haven't tried it but am confident that QL can do it).


This is the only source I know :)
 
Last edited:
Hi Daniel, Thanks for your suggestion but i feel best is to get C code and use Cython wrapper. Do you know where can I find c code for "Local Volatility" of dupire formula where it will calculate using finite difference method ? Please see the attached document which explain problem statement in detail, Thanks for your help.
 

Attachments

  • Dupire.docx
    19.8 KB · Views: 542
Is this doc a full specification? Is it complete? There's a bit more to the story.
Is this post related to some kind of student project?

BTW did you search in Quantlib?
 
Back
Top