Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:Avhz RustQuant SABR Volatility

From Leeroopedia


Knowledge Sources
Domains Volatility_Modeling, Derivatives_Pricing
Last Updated 2026-02-07 21:00 GMT

Overview

The SABR (Stochastic Alpha Beta Rho) volatility model for computing implied volatilities that capture the market's volatility smile and skew.

Description

The SABR Volatility model in RustQuant implements the Hagan et al. (2002) approximation formula for implied volatility. The model is represented by the Sabr02 struct containing five parameters:

  • f -- The forward price of the underlying asset.
  • alpha -- The initial volatility level (α).
  • beta -- The CEV (constant elasticity of variance) exponent (β[0,1]), controlling the backbone of the smile.
  • rho -- The correlation between the asset and volatility processes (ρ[1,1]).
  • nu -- The volatility of volatility (ν).

Special cases of β:

  • β=0 corresponds to the stochastic normal model.
  • β=0.5 corresponds to the stochastic CIR model.
  • β=1 corresponds to the stochastic lognormal model.

The library provides two main capabilities:

  • Volatility computation -- The volatility(k, t) method computes the SABR implied volatility for a given strike k and time to expiry t, suitable for input to the Black (1976) model.
  • Model calibration -- The fit(volatilities, strikes, t) method calibrates the model parameters (α, ρ, ν) to market data using particle swarm optimization via the argmin crate. The β parameter is held fixed during calibration.

Additionally, a SABR stochastic process struct is available in the stochastics crate, defining the model parameters as ModelParameter types for potential use in Monte Carlo simulation.

Usage

Use the SABR Volatility model when pricing options across a range of strikes where the Black-Scholes assumption of constant volatility is insufficient. The model is the industry standard for interest rate derivatives, foreign exchange options, and equity index options where capturing the volatility smile and skew is essential for accurate pricing and risk management.

Theoretical Basis

The SABR model describes the joint dynamics of the forward price F and its volatility σ:

dFt=σtFtβdW1

dσt=νσtdW2

with dW1dW2=ρdt.

The Hagan et al. (2002) approximation for the implied Black volatility is:

σB(K,T)=zχ(z)α[1+((1β)2α224(FK)1β+ρβαν4(FK)(1β)/2+(23ρ2)ν224)T](FK)(1β)/2[1+(1β)224ln2FK+(1β)41920ln4FK]

where:

z=(FK)(1β)/2ln(F/K)α (absorbed into the coefficient/chi ratio in the implementation)

χ(z)=ln(12ρz+z2+zρ)1ρ

Calibration minimizes the root-mean-square error between model and market volatilities using particle swarm optimization with bounds α(ε,), ρ[1,1], and ν[1,).

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment