Giter Site home page Giter Site logo

implied-vol's Introduction

Implied Vol

Crates.io Actions status License: MIT

More information about this crate can be found in the crate documentation.

About

implied-vol is a high-performance, pure Rust implementation of Peter Jäckel's implied volatility calculations. This library serves as a robust Rust reimplementation of the methodologies presented in Jäckel's works.

Source Works

Our library follows the methods presented in two pivotal papers by Peter Jäckel:

  1. Let's Be Rational: This work presents an approach to deduce Black’s volatility from option prices with high precision.

  2. Implied Normal Volatility: Here, Jäckel provides an analytical formula to calculate implied normal volatility (also known as Bachelier volatility) from vanilla option prices.

Both resources can be accessed at Peter Jäckel's homepage.

Features

implied-vol gains the benefits of being implemented in Rust, such as cross-compilation with Cargo and powerful static analysis using Clippy lint. This library stands out by offering:

  • Rapid, precise calculations of both implied Black volatility and normal (Bachelier) implied volatility.
  • Exceptional testability and maintainability due to its implementation in Rust.
  • Unit tests aiding error checking.

Performance

Peter Jäckel, the author of the original paper, asserts that "the calculation of a single implied volatility is now down to just under 270 nanoseconds" based on his machine's benchmark measurements. By examining the benchmark measurements performed on this crate's Github Actions, it becomes clear that comparable performance is being achieved.

Precision

On our machine, the absolute error for both implied Black volatility and implied normal volatility calculations is confirmed to be less than twice the machine epsilon in random tests.

Community contributions are always welcome!

License

This project is licensed under the MIT license.

implied-vol's People

Contributors

nakashima-hikaru avatar

Stargazers

Dario Heinisch avatar  avatar Edgeworth avatar Shabbir Hasan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.