Replies: 2 comments 1 reply
-
It looks like this is working as expected, given how you've defined your functions – So put together, you are taking the second derivative of your function with respect to the argument Does that make sense? |
Beta Was this translation helpful? Give feedback.
-
Your Black Bcholes MC function is in fact linear, therefore second derivative wrt to price is 0. This is in fact unfortunate, as analytical gamma is definitely not zero for vanilla call. Please read this topic for a workaround (i.e. change the max function to heavisde) and the linked paper: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm new about Jax and I'm trying to use it for a finance project: compute option greeks in the MC setting.
I'm able to recover the first order Greeks but I'm getting wrong result from the higher order ones. Here my code:
I get 0 as answer for Gamma. Can someone provide help?
As said I'm quite inexperienced about this topic so I'm sure it sia just a trivial error from my side.
Beta Was this translation helpful? Give feedback.
All reactions