Crates.io | implied-vol |
lib.rs | implied-vol |
version | 1.0.0 |
source | src |
created_at | 2024-01-14 08:31:10.581613 |
updated_at | 2024-08-11 08:37:07.925882 |
description | A pure rust implementation of Peter Jäckel's implied volatility calculation |
homepage | |
repository | https://github.com/nakashima-hikaru/implied-vol |
max_upload_size | |
id | 1099284 |
size | 82,376 |
More information about this crate can be found in the crate documentation.
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.
Our library follows the methods presented in two pivotal papers by Peter Jäckel:
Let's Be Rational: This work presents an approach to deduce Black’s volatility from option prices with high precision.
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.
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.
On our machine, the relative 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!
normal-distribution
: Provide functions related to standard normal distribution used in calculation of implied
volatilityerror-function
: Provide functions related to error function used in calculation of implied volatilityThis project is licensed under the MIT license.