FinancePy

FinancePy API Reference

Sabr

financepy.models.sabr

Classes

SABR

SABR(alpha, beta, rho, nu)
SABR - Stochastic alpha beta rho model by Hagan et al. which is a stochastic volatility model where alpha controls the implied volatility, beta is the exponent on the the underlying asset's process so beta = 0 is normal and beta = 1 is lognormal, rho is the correlation between the underlying and the volatility process.

Methods

black_vol

black_vol(self, f, k, t)
Black volatility from SABR model using Hagan et al. approx.

black_vol_with_alpha

black_vol_with_alpha(self, alpha, f, k, t)

No description available.

value

value(self, forward_rate, strike_rate, time_to_expiry, df, call_or_put)
Price an option using Black's model which values in the forward measure following a change of measure.

set_alpha_from_black_vol

set_alpha_from_black_vol(self, black_vol, forward, strike, time_to_expiry)
Estimate the value of the alpha coefficient of the SABR model by solving for the value of alpha that makes the SABR black vol equal to the input black vol. This uses a numerical 1D solver.

set_alpha_from_atm_black_vol

set_alpha_from_atm_black_vol(self, black_vol, atm_strike, time_to_expiry)
We solve cubic equation for the unknown variable alpha for the special ATM case of the strike equalling the forward following Hagan and al. equation (3.3). We take the smallest real root as the preferred solution. This is useful for calibrating the model when beta has been chosen.
Generated automatically from the FinancePy source code. Do not edit this file manually.