## Option greeks: formula proofs and python implementation – Part 2

This documents is the second part of a general overview of vanilla options partial sensitivities (option greeks). In a first article we had covered 1st generation greeks, their formula, mathematical proof, and suggested an implementation in Python.

In this post we add some second order greeks such as Vanna and Charm.

### Vanna

Vanna is the option’s Delta sensitivity to small changes in the underlying volatility. This measure is actually tantamount to sensitivity of the option’s Vega to small changes in the underlying asset price.

### Formula

Let’s remind the Black-Scholes-Merton formula for Vega:

(1)

The call/put option Vanna will be:

(2)

(3)

### Code

Below you have the python script for Vanna calculation for a 1% change in the unerlying asset volatility.

Here is the piece of code that you can use to calculate and chart the Vanna surface displayed above (the python file that contains the Delta calculation above is called “OptionsAnalytics.py”). This sample was already available in the first part of this overview of BS greeks.

### Shape

When we run our script, this is the Vanna shape that we obtain:

Options Greeks Python Vanna

This is the shape of the Charm sensitivity (Delta variation for a 1-day change in the time to expiry):

Options Greeks Python Charm

1. #### Karan Pillai

Thanks for the proof and codes, super helpful! I was wondering if you’d ever consider doing the same for Vomma and DvegaDtime?

2. #### Tim

Hi – nice website! Just trying to follow some of your derivations and interested to know what you mean by the N'() operator (i.e. what does the hash mark ‘ mean) and how does this differ from the regular pmf of a standard normal distribution, that appears as just N() in your notation (no dash).
thanks
Tim

• #### Team Smile of Thales

Hi Tim!
N() stands for the cumulative distribution function (CDF) of the standard normal distribution N(0,1).

(1)

N'() is the probability density function of the standard normal distribution N(0,1).

(2)

Hope this clarifies
Best Regards
Team Smile of Thales

• #### Tim

Thanks, that’s great. (I worked through the derivations by hand, taking the derivatives myself and eventually realised that’s what they must have been). Good luck with the site.