Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pricing formulas for Barrier options under Black-Scholes #7

Closed
cyrilchim opened this issue Sep 11, 2019 · 13 comments
Closed

Pricing formulas for Barrier options under Black-Scholes #7

cyrilchim opened this issue Sep 11, 2019 · 13 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@cyrilchim
Copy link
Contributor

cyrilchim commented Sep 11, 2019

Formulas for pricing a Barrier option under Black-Scholes model is of interest. (See, e.g., Section 26.9 of Hull(2018), Options, Futures, and Other Derivatives, 9th edition).

The module implementing this method should live under tf_quant_finance/volatility/barrier_option.py. It should support both puts (up-and-in put, down-and-out put) and calls (down-in call, up-and-out call). Tests should be in barrier_option_test.py in the same folder.

@cyrilchim cyrilchim changed the title Pricing formulas for Barrier under Black-Scholes Pricing formulas for Barrier options under Black-Scholes Sep 11, 2019
@cyrilchim cyrilchim added the good first issue Good for newcomers label Sep 11, 2019
@Patil2099
Copy link

@cyrilchim Can I work on this?

@cyrilchim
Copy link
Contributor Author

Hi Pankaj! Thanks for reaching out!

Yes, I'm assigning the issue to you. Please follow Google Python and TensorFlow Probability style guides. Will update with the internal one once it is published.

As a guidance, please familiarize yourself with option_price and binary_price implementations so that it is easier for you to get started.

Please reach out if you have any issues.

@cyrilchim
Copy link
Contributor Author

@Patil2099 Could you please let us know if there is any progress on this?

@saxena-ashish-g
Copy link
Contributor

@DevarakondaV

You might find this paper useful (around page 20).

@DevarakondaV
Copy link
Contributor

@saxena-ashish-g I think I can implement this. I'll give it a shot since @Patil2099 hasn't responded.

@cyrilchim cyrilchim assigned DevarakondaV and unassigned Patil2099 May 15, 2020
@cyrilchim
Copy link
Contributor Author

Reassigned to @DevarakondaV . Thanks!

@DevarakondaV
Copy link
Contributor

Is it expected that the model executes in both graph and eager mode?

@cyrilchim
Copy link
Contributor Author

Yes, we expect that the user is able to build a graph

@cyrilchim
Copy link
Contributor Author

Thanks, Vishnu! This is now merged.

@DevarakondaV
Copy link
Contributor

Hey @cyrilchim no problem! Just to let you know that I haven't committed the changes for xla compatibility yet. Additionally, I was still looking at this. Not sure if you still want me to continue with it?

@saxena-ashish-g
Copy link
Contributor

saxena-ashish-g commented Jun 7, 2020 via email

@DevarakondaV
Copy link
Contributor

@cyrilchim and @saxena-ashish-g, I'll put in the pull request as soon as I can!

@cyrilchim
Copy link
Contributor Author

To add to what Ashish says, if you have an XLA test, please feel free to send a change as that would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants