Chase the Devil

This note compares special-function choices at the level that matters to the implied volatility solvers : the normalized Black beta price, not standalone erfcx(x) . For x = log(F/K) <= 0 and total volatility s = sigma sqrt(T) , the beta-space OTM call price is B(x, s) = 0.5 * (exp(x/2) * erfc(q1) - exp(-x/2) * erfc(q2)) q1 = -(x/s + s/2) / sqrt(2) q2 = -(x/s - s/2) / sqrt(2) The corresponding for…

The use of erfcx instead of direct erfc or CDF in a Black-Scholes implied volatility solver leads to gain in accuracy and performance in general. But which erfcx should we use? This note compares practical erfcx implementations for Rust implied volatility solvers: Commons: the local Rust port of Apache Commons Numbers BoostErf.erfcx Cody: the Cody rational approximation exposed by the jaeckel = 0…

Choi, Huh and Su have a very good paper entitled Tighter uniform bounds for Black–Scholes implied volatility and the applications to root-finding . What’s particularly great is that it gives both a decent lower bound and a proof a monotone convergence using Newton’s method starting from this lower bound. The industry standard for solving the Black-Scholes implied volatility is Peter Jäckel Let’s …

algorithmic-tradingquant-financerisk-management

Several years ago, I had explored accuracy and performance of different ways to imply the Black-Scholes volatility. Jherek Healy proposed some improvements over my naive algorithm on his blog . Recently, a Linkedin post mentioned a new paper from Wolfgang Schadner which presents an almost explicit formula for the implied volatility. Almost because it actually relies on some implementation of the …

quant-financerisk-managementvolatility-modeling

In my last post, I had a look at Quantlib implementation of a new scrambling method for Sobol due to Brent Burley of Walt Disney Studios Practical Hash-based Owen Scrambling. Because it originates from the CG community, I had assumed that this was faster than the more classic scrambling ACM Algorithm 823 by Hickernell and Hong. I was wrong. It may be faster for specific use cases, but in general …

algorithmic-tradingquant-financerisk-management

The state of the art of Sobol scrambling has changed slightly recently, thanks to the paper from Brent Burley of Walt Disney Studios Practical Hash-based Owen Scrambling. Before that, ACM Algorithm 823 by Hickernell and Hong was the usual reference. Brent Burley&rsquo;s algorithm is supposedly both faster and with better properties. In particular, it performs both shuffling and scrambling. Peter …

algorithmscomputer-science

Recently, I have spent some time on simple neural networks. The idea is to employ them as universal function approximators for some problems appearing in quantitative finance. There are some great papers on it such as the one from Liu et al. (2019) or Horvath et al. (2019) Deep Learning Volatility or Rosenbaum &amp; Zhang (2021). Incidentally, I met Liu back when I was finishing my PhD in TU Delf…

aideep-learning

Thomas Roos recently put a preprint on SSRN called Simple, Flexible, Analytic, Arbitrage Free Volatility Interpolation. Being interested in the subject, I had a detailed look at it. It turns out that Thomas stumbled upon spline stochastic collocation without realizing it. There are a few differences in his approach: The optimization is on the x&rsquo;s instead of the y&rsquo;s, meaning the strike…

mathematicsstochastic-calculus

The modern rough volatility models adopt a forward variance curve terminology (see for example this paper on a rational approximation for the rough Heston, or this presentation on affine forward variance models or this paper on affine forward variance models). In this form, the rough Heston model reads: According to the litterature, the initial forward variance curve is typically built from the i…

quant-financerisk-management

Fabrice Rouah wrote two books on the Heston model: one with C# and Matlab code, and one with VBA code. The two books are very similar. They are good in that they tackle most of the important points with the Heston model, from calibration to simulation. The calibration part (chapter 6) is a bit too short, it would have been great if it presented the actual difficulties with calibration in practice…

quant-financestochastic-calculus

Around 10 years ago, while reading the excellent paper of Etore and Gobet on stochastic Taylor expansions for the pricing of vanilla options with discrete (cash) dividends, I had the idea of a small improvement, by using a more precise proxy for the Taylor expansion. More recently, I applied the idea to approximate arithmetic Asian options prices by using the geometric Asian option price as a pro…

algorithmic-tradingquant-financestochastic-calculus

An interesting idea to calibrate the Heston model in a more stable manner and reduce the calibration time is to make use of variance swap prices. Indeed, there is a simple formula for the theoretical price of a variance swap in the Heston model. It is not perfect since it approximates the variance swap price by the expectation of the integrated variance process over time. In particular it does no…

quant-financerisk-management

I had the opportunity to receive a free book on climate change, through the company I am working for. I had not heard of that book before, it called Saving Us and is written by an actual climate scientist (Katharine Hayhoe). Unfortunately, written by does not mean that it is a scientific book, and it&rsquo;s not. The author does not spend much effort explaining the physics or the reports, but foc…

It is well known that vanilla option prices must increase when we increase the implied volatility. Recently, a post on the Wilmott forums wondered about the true accuracy of Peter Jaeckel implied volatility solver, whether it was truely IEEE 754 compliant. In fact, the author noticed some inaccuracy in the option price itself. Unfortunately I can not reply to the forum, its login process does not…

option-pricingquant-financerisk-management

When computing the derivative of a function by finite difference, which step size is optimal? The answer depends on the kind of difference (forward, backward or central), and the degree of the derivative (first or second typically for finance). For the first derivative, the result is very quick to find (it&rsquo;s on wikipedia). For the second derivative, it&rsquo;s more challenging. The Lecture …

mathematicsoptimization

The COS method is a fast way to price vanilla European options under stochastic volatility models with a known characteristic function. There are alternatives, explored in previous blog posts. A main advantage of the COS method is its simplicity. But this comes at the expense of finding the correct values for the truncation level and the (associated) number of terms. A related issue of the COS me…

derivatives-pricingquant-financestochastic-calculus

I never paid too much attention to it, but the term-structure of variance swaps is not always realistic under the Schobel-Zhu stochastic volatility model. This is not fundamentally the case with the Heston model, the Heston model is merely extremely limited to produce either a flat shape or a downward sloping exponential shape. Under the Schobel-Zhu model, the price of a newly issued variance swa…

quant-financerisk-management

In the previous post, I presented a new stochastic expansion for the prices of Asian options. The stochastic expansion is generalized to basket options in the paper, and can thus be applied on the problem of pricing vanilla options with cash dividends. I have updated the paper with comparisons to more direct stochastic expansions for pricing vanilla options with cash dividends, such as the one of…

derivatives-pricingquant-financestochastic-calculus

Many years ago, I had applied the stochastic expansion technique of Etore and Gobet to a refined proxy, in order to produce more accurate prices for vanilla options with cash dividends under the Black-Scholes model with deterministic jumps at the dividend dates. Any approximation for vanilla basket option prices can also be applied on this problem, and the sophisticated Curran geometric condition…

algorithmic-tradingquant-financestochastic-calculus

In the Black-Scholes model with a term-structure of volatilities, the Log-Euler Monte-Carlo scheme is not necessarily exact. This happens if you have two assets \(S_1\) and \(S_2\), with two different time varying volatilities \(\sigma_1(t), \sigma_2(t) \). The covariance from the Ito isometry from \(t=t_0\) to \(t=t_1\) reads $$ \int_{t_0}^{t_1} \sigma_1(s)\sigma_2(s) \rho ds, $$ while a naive l…

financial-econometricsquant-finance
research.ioresearch.io

Sign up to keep scrolling

Create your feed subscriptions, save articles, keep scrolling.

Already have an account?