SlideShare a Scribd company logo
Deep Learning in Finance
Summit
GANs for Option Pricing in Real-Time
Alexandre Combessie & Alexandre Hubert, Data Scientists @Dataiku
© Dataiku, Inc. 2019 | https://dataiku.com | alexandre.combessie@dataiku.com | @dataiku
March 19th, 2019
Engineer Summary
● The normal assumption in Black-Scholes
option pricing formula is outdated, duh.
● Generative Adversarial Networks (GANs) are
the new golden standard for simulation.
● Here is the story of how 2 data scientists
(inc. a former trader) deployed a GAN for
option pricing in real-time, in 10 days.
1. A Short History of Option Pricing
2. GANs for Time Series Generation
3. Option Pricing in Real-Time (demo!)
Agenda
A Short History of
Option Pricing
Options: contract that gives the bearer the right to buy or sell a stock at a given date for a given price
- Call: how much is the right to buy XYZ at 100 USD in 30 days worth?
- Put: how much is the right to sell XYZ at 100 USD in 30 days worth?
Subtleties in pricing such as
- Type of options (European/American)
- Dividends
Why is it so important to get the value right?
- To be competitive when a bid is coming from the market
- To avoid being the target of arbitrageurs...
Options 101
Black and Scholes to determine the fair price of the theoretical value for an option based on 6 parameters:
- Type of options (american/european)
- risk-free rate
- strike price
- underlying stock price
- time
- Volatility
Hypothesis: a stock follows a random walk where the volatility of the stock plays a big part.
The Black–Scholes–Merton model
If assumption is made that prices are distributed log normally - which may or not be true - then log
returns are conveniently normally distributed.
Volatility is a measure of the standard deviation of the log returns.
Modeling Stock Prices & Returns
In the Black-Scholes model, asset price St is assumed to follow a Geometric Brownian motion (GBM) as
defined by the stochastic differential equation
The Formula of Robert Brown et al.
Option Payoffs 101
Call: In exchange for a premium, the bearer has the right to buy the stock at the expiration date for a given price K.
Put: In exchange for a premium, the bearer has the right to sell the stock at the expiration date for a given price K.
1. Simulate a high number of trajectories for a stock
2. Compute the pay-off for each of the trajectory
3. Fair price as the average of the pay-offs
Just Monte Carlo it.
Does the distribution of returns really follow a normal distribution…? Not really.
Lots of improvement and more complex assumption to get better (ARCH/GARCH etc). But still.
How to Evaluate the Fair Price of an Option?
GANs for
Time Series
Generation
GAN is a Deep Learning model that aims to generate examples of real-world data that
are as realistic as possible.
Very famous recently for image generation.
Generative Adversarial Network 101
Fake or real ?
Getting Rid of the Normal Assumption
● Let’s try to use Deep learning to get something that is independent of human
interpretation:
● The main focus for GAN is to generate data from scratch
● It is composed of two networks - a generator and a discriminator
● The generator has to produce some times series of log-returns realistic enough
to fool the discriminator trained to recognize real log-returns times series.
Daily historic prices of SP500 stocks between 2002 and 2017:
1. Create chunk of time series of size 50. Those are our
real examples
2. Generate some fake times series (of size 50) starting
from noise - or can we be smarter?
3. Train a discriminator to flag the real from the fakes
4. Stop when the fake examples seem real enough
GAN GAN style plan
Tip: do not start from pure random noise but … from a GBM because it is what you want to improve.
A Simple Architecture to Demo the Approach
1. The Generator
A generator with 3 dense layers
Importance of the LeakyRelu activation function
Do not forget the dropout
A Simple Architecture to Demo the Approach
2. The Discriminator
Empirical VS Simulated Distributions of Returns
Option Pricing
in Real-Time
(demo!)
Conclusions
GAN tricks for smoother training => read the repo ganhacks by Soumith Chintala
Try some more complex architecture to have an even better times series generator:
- RGAN or RCGAN very appropriate for a stochastic use case (LSTM instead of Dense)
- Have the generator learn more directly from the discriminator: Wasserstein GAN
- Add some Gradient Penalty to the generator to prevent it from being too smart…
Also we did not take the time to implement some sort of error metric to see how much better we improve the
generation from one model to another: RMSE should be a good starting point.
Going Further
Conclusions
Conclusions
From English data
and Japanese affix –iku (育)
“To raise or bring up; to grow up”
Literally,”Data Education”
or ”Let’s Grow the Data skills”
データ
育

More Related Content

What's hot

Autoencoders in Deep Learning
Autoencoders in Deep LearningAutoencoders in Deep Learning
Autoencoders in Deep Learning
milad abbasi
 
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
台灣資料科學年會
 
FHE in Action
FHE in ActionFHE in Action
FHE in Action
文杰 陆
 
Seq2Seq (encoder decoder) model
Seq2Seq (encoder decoder) modelSeq2Seq (encoder decoder) model
Seq2Seq (encoder decoder) model
佳蓉 倪
 
Decision Transformer: Reinforcement Learning via Sequence Modeling
Decision Transformer: Reinforcement Learning via Sequence ModelingDecision Transformer: Reinforcement Learning via Sequence Modeling
Decision Transformer: Reinforcement Learning via Sequence Modeling
Yasunori Ozaki
 
Attention is all you need (UPC Reading Group 2018, by Santi Pascual)
Attention is all you need (UPC Reading Group 2018, by Santi Pascual)Attention is all you need (UPC Reading Group 2018, by Santi Pascual)
Attention is all you need (UPC Reading Group 2018, by Santi Pascual)
Universitat Politècnica de Catalunya
 
Self Supervised Learning 세미나.pptx
Self Supervised Learning 세미나.pptxSelf Supervised Learning 세미나.pptx
Self Supervised Learning 세미나.pptx
DongkyunKim17
 
Demystifying Xgboost
Demystifying XgboostDemystifying Xgboost
Demystifying Xgboost
halifaxchester
 
「予測にいかす統計モデリングの基本」勉強会 第一章
「予測にいかす統計モデリングの基本」勉強会 第一章「予測にいかす統計モデリングの基本」勉強会 第一章
「予測にいかす統計モデリングの基本」勉強会 第一章
Takahiro Yoshinaga
 
is anyone_interest_in_auto-encoding_variational-bayes
is anyone_interest_in_auto-encoding_variational-bayesis anyone_interest_in_auto-encoding_variational-bayes
is anyone_interest_in_auto-encoding_variational-bayes
NAVER Engineering
 
Meta learning tutorial
Meta learning tutorialMeta learning tutorial
Meta learning tutorial
Joaquin Vanschoren
 
敵対的生成ネットワーク(GAN)
敵対的生成ネットワーク(GAN)敵対的生成ネットワーク(GAN)
敵対的生成ネットワーク(GAN)
cvpaper. challenge
 
딥러닝 - 역사와 이론적 기초
딥러닝 - 역사와 이론적 기초딥러닝 - 역사와 이론적 기초
딥러닝 - 역사와 이론적 기초
Hyungsoo Ryoo
 
XGBoost @ Fyber
XGBoost @ FyberXGBoost @ Fyber
XGBoost @ Fyber
Daniel Hen
 
Explicit Density Models
Explicit Density ModelsExplicit Density Models
Explicit Density Models
Sangwoo Mo
 
[DL輪読会]1次近似系MAMLとその理論的背景
[DL輪読会]1次近似系MAMLとその理論的背景[DL輪読会]1次近似系MAMLとその理論的背景
[DL輪読会]1次近似系MAMLとその理論的背景
Deep Learning JP
 
Recurrent neural network
Recurrent neural networkRecurrent neural network
Recurrent neural network
Server CALAP
 
Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10) Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10)
Larry Guo
 
Support Vector Machines
Support Vector MachinesSupport Vector Machines
Support Vector Machines
Sakis Sotiropoulos
 

What's hot (20)

Autoencoders in Deep Learning
Autoencoders in Deep LearningAutoencoders in Deep Learning
Autoencoders in Deep Learning
 
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
 
FHE in Action
FHE in ActionFHE in Action
FHE in Action
 
Seq2Seq (encoder decoder) model
Seq2Seq (encoder decoder) modelSeq2Seq (encoder decoder) model
Seq2Seq (encoder decoder) model
 
Decision Transformer: Reinforcement Learning via Sequence Modeling
Decision Transformer: Reinforcement Learning via Sequence ModelingDecision Transformer: Reinforcement Learning via Sequence Modeling
Decision Transformer: Reinforcement Learning via Sequence Modeling
 
Attention is all you need (UPC Reading Group 2018, by Santi Pascual)
Attention is all you need (UPC Reading Group 2018, by Santi Pascual)Attention is all you need (UPC Reading Group 2018, by Santi Pascual)
Attention is all you need (UPC Reading Group 2018, by Santi Pascual)
 
決定木学習
決定木学習決定木学習
決定木学習
 
Self Supervised Learning 세미나.pptx
Self Supervised Learning 세미나.pptxSelf Supervised Learning 세미나.pptx
Self Supervised Learning 세미나.pptx
 
Demystifying Xgboost
Demystifying XgboostDemystifying Xgboost
Demystifying Xgboost
 
「予測にいかす統計モデリングの基本」勉強会 第一章
「予測にいかす統計モデリングの基本」勉強会 第一章「予測にいかす統計モデリングの基本」勉強会 第一章
「予測にいかす統計モデリングの基本」勉強会 第一章
 
is anyone_interest_in_auto-encoding_variational-bayes
is anyone_interest_in_auto-encoding_variational-bayesis anyone_interest_in_auto-encoding_variational-bayes
is anyone_interest_in_auto-encoding_variational-bayes
 
Meta learning tutorial
Meta learning tutorialMeta learning tutorial
Meta learning tutorial
 
敵対的生成ネットワーク(GAN)
敵対的生成ネットワーク(GAN)敵対的生成ネットワーク(GAN)
敵対的生成ネットワーク(GAN)
 
딥러닝 - 역사와 이론적 기초
딥러닝 - 역사와 이론적 기초딥러닝 - 역사와 이론적 기초
딥러닝 - 역사와 이론적 기초
 
XGBoost @ Fyber
XGBoost @ FyberXGBoost @ Fyber
XGBoost @ Fyber
 
Explicit Density Models
Explicit Density ModelsExplicit Density Models
Explicit Density Models
 
[DL輪読会]1次近似系MAMLとその理論的背景
[DL輪読会]1次近似系MAMLとその理論的背景[DL輪読会]1次近似系MAMLとその理論的背景
[DL輪読会]1次近似系MAMLとその理論的背景
 
Recurrent neural network
Recurrent neural networkRecurrent neural network
Recurrent neural network
 
Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10) Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10)
 
Support Vector Machines
Support Vector MachinesSupport Vector Machines
Support Vector Machines
 

Similar to Generative Adversarial Networks for Option Pricing in Real-Time

Bandit algorithms for website optimization - A summary
Bandit algorithms for website optimization - A summaryBandit algorithms for website optimization - A summary
Bandit algorithms for website optimization - A summary
Kwanghee Choi
 
Using Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the MarketUsing Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the Market
Matthew Ring
 
Practical AI for Business: Bandit Algorithms
Practical AI for Business: Bandit AlgorithmsPractical AI for Business: Bandit Algorithms
Practical AI for Business: Bandit Algorithms
SC5.io
 
Option Pricing Models Lecture NotesThis week’s assignment is .docx
Option Pricing Models Lecture NotesThis week’s assignment is .docxOption Pricing Models Lecture NotesThis week’s assignment is .docx
Option Pricing Models Lecture NotesThis week’s assignment is .docx
hopeaustin33688
 
Mark-Jahn.Online-Auctions
Mark-Jahn.Online-AuctionsMark-Jahn.Online-Auctions
Mark-Jahn.Online-AuctionsMark Jahn
 
Video summarization using clustering
Video summarization using clusteringVideo summarization using clustering
Video summarization using clustering
Sahil Biswas
 
Applying Deep Learning to Enhance Momentum Trading Strategies in Stocks
Applying Deep Learning to Enhance Momentum Trading Strategies in StocksApplying Deep Learning to Enhance Momentum Trading Strategies in Stocks
Applying Deep Learning to Enhance Momentum Trading Strategies in Stocks
Lawrence Takeuchi
 
Using Large Language Models in 10 Lines of Code
Using Large Language Models in 10 Lines of CodeUsing Large Language Models in 10 Lines of Code
Using Large Language Models in 10 Lines of Code
Gautier Marti
 
Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...
Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...
Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...
Alok Singh
 
Optimum Investment Selection process-Nov 9-2013
Optimum Investment Selection process-Nov 9-2013Optimum Investment Selection process-Nov 9-2013
Optimum Investment Selection process-Nov 9-2013Gary Crosbie
 
Bonney_Saberseminar_2016
Bonney_Saberseminar_2016Bonney_Saberseminar_2016
Bonney_Saberseminar_2016Peter Bonney
 
Evolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsEvolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsShubhashis Shil
 
Adtech scala-performance-tuning-150323223738-conversion-gate01
Adtech scala-performance-tuning-150323223738-conversion-gate01Adtech scala-performance-tuning-150323223738-conversion-gate01
Adtech scala-performance-tuning-150323223738-conversion-gate01
Giridhar Addepalli
 
Adtech x Scala x Performance tuning
Adtech x Scala x Performance tuningAdtech x Scala x Performance tuning
Adtech x Scala x Performance tuning
Yosuke Mizutani
 
Gopher in performance_tales_ms_go_cracow
Gopher in performance_tales_ms_go_cracowGopher in performance_tales_ms_go_cracow
Gopher in performance_tales_ms_go_cracow
MateuszSzczyrzyca
 
LearningKit.ppt
LearningKit.pptLearningKit.ppt
LearningKit.pptbutest
 
option valuation
option valuation option valuation
option valuation
latif812
 
Multi-Armed Bandit: an algorithmic perspective
Multi-Armed Bandit: an algorithmic perspectiveMulti-Armed Bandit: an algorithmic perspective
Multi-Armed Bandit: an algorithmic perspective
Gabriele Sottocornola
 

Similar to Generative Adversarial Networks for Option Pricing in Real-Time (20)

Bandit algorithms for website optimization - A summary
Bandit algorithms for website optimization - A summaryBandit algorithms for website optimization - A summary
Bandit algorithms for website optimization - A summary
 
Using Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the MarketUsing Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the Market
 
Practical AI for Business: Bandit Algorithms
Practical AI for Business: Bandit AlgorithmsPractical AI for Business: Bandit Algorithms
Practical AI for Business: Bandit Algorithms
 
project report(1)
project report(1)project report(1)
project report(1)
 
Option Pricing Models Lecture NotesThis week’s assignment is .docx
Option Pricing Models Lecture NotesThis week’s assignment is .docxOption Pricing Models Lecture NotesThis week’s assignment is .docx
Option Pricing Models Lecture NotesThis week’s assignment is .docx
 
Mark-Jahn.Online-Auctions
Mark-Jahn.Online-AuctionsMark-Jahn.Online-Auctions
Mark-Jahn.Online-Auctions
 
Video summarization using clustering
Video summarization using clusteringVideo summarization using clustering
Video summarization using clustering
 
Applying Deep Learning to Enhance Momentum Trading Strategies in Stocks
Applying Deep Learning to Enhance Momentum Trading Strategies in StocksApplying Deep Learning to Enhance Momentum Trading Strategies in Stocks
Applying Deep Learning to Enhance Momentum Trading Strategies in Stocks
 
Using Large Language Models in 10 Lines of Code
Using Large Language Models in 10 Lines of CodeUsing Large Language Models in 10 Lines of Code
Using Large Language Models in 10 Lines of Code
 
Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...
Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...
Big Data Spain 2018: How to build Weighted XGBoost ML model for Imbalance dat...
 
Optimum Investment Selection process-Nov 9-2013
Optimum Investment Selection process-Nov 9-2013Optimum Investment Selection process-Nov 9-2013
Optimum Investment Selection process-Nov 9-2013
 
Bonney_Saberseminar_2016
Bonney_Saberseminar_2016Bonney_Saberseminar_2016
Bonney_Saberseminar_2016
 
Evolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse AuctionsEvolutionary Technique for Combinatorial Reverse Auctions
Evolutionary Technique for Combinatorial Reverse Auctions
 
Adtech scala-performance-tuning-150323223738-conversion-gate01
Adtech scala-performance-tuning-150323223738-conversion-gate01Adtech scala-performance-tuning-150323223738-conversion-gate01
Adtech scala-performance-tuning-150323223738-conversion-gate01
 
Adtech x Scala x Performance tuning
Adtech x Scala x Performance tuningAdtech x Scala x Performance tuning
Adtech x Scala x Performance tuning
 
Gopher in performance_tales_ms_go_cracow
Gopher in performance_tales_ms_go_cracowGopher in performance_tales_ms_go_cracow
Gopher in performance_tales_ms_go_cracow
 
LearningKit.ppt
LearningKit.pptLearningKit.ppt
LearningKit.ppt
 
option valuation
option valuation option valuation
option valuation
 
Decision Making Process
Decision Making ProcessDecision Making Process
Decision Making Process
 
Multi-Armed Bandit: an algorithmic perspective
Multi-Armed Bandit: an algorithmic perspectiveMulti-Armed Bandit: an algorithmic perspective
Multi-Armed Bandit: an algorithmic perspective
 

Recently uploaded

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 

Recently uploaded (20)

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 

Generative Adversarial Networks for Option Pricing in Real-Time

  • 1. Deep Learning in Finance Summit GANs for Option Pricing in Real-Time Alexandre Combessie & Alexandre Hubert, Data Scientists @Dataiku © Dataiku, Inc. 2019 | https://dataiku.com | alexandre.combessie@dataiku.com | @dataiku March 19th, 2019
  • 2. Engineer Summary ● The normal assumption in Black-Scholes option pricing formula is outdated, duh. ● Generative Adversarial Networks (GANs) are the new golden standard for simulation. ● Here is the story of how 2 data scientists (inc. a former trader) deployed a GAN for option pricing in real-time, in 10 days.
  • 3. 1. A Short History of Option Pricing 2. GANs for Time Series Generation 3. Option Pricing in Real-Time (demo!) Agenda
  • 4. A Short History of Option Pricing
  • 5. Options: contract that gives the bearer the right to buy or sell a stock at a given date for a given price - Call: how much is the right to buy XYZ at 100 USD in 30 days worth? - Put: how much is the right to sell XYZ at 100 USD in 30 days worth? Subtleties in pricing such as - Type of options (European/American) - Dividends Why is it so important to get the value right? - To be competitive when a bid is coming from the market - To avoid being the target of arbitrageurs... Options 101
  • 6. Black and Scholes to determine the fair price of the theoretical value for an option based on 6 parameters: - Type of options (american/european) - risk-free rate - strike price - underlying stock price - time - Volatility Hypothesis: a stock follows a random walk where the volatility of the stock plays a big part. The Black–Scholes–Merton model
  • 7. If assumption is made that prices are distributed log normally - which may or not be true - then log returns are conveniently normally distributed. Volatility is a measure of the standard deviation of the log returns. Modeling Stock Prices & Returns
  • 8. In the Black-Scholes model, asset price St is assumed to follow a Geometric Brownian motion (GBM) as defined by the stochastic differential equation The Formula of Robert Brown et al.
  • 9. Option Payoffs 101 Call: In exchange for a premium, the bearer has the right to buy the stock at the expiration date for a given price K. Put: In exchange for a premium, the bearer has the right to sell the stock at the expiration date for a given price K.
  • 10. 1. Simulate a high number of trajectories for a stock 2. Compute the pay-off for each of the trajectory 3. Fair price as the average of the pay-offs Just Monte Carlo it.
  • 11. Does the distribution of returns really follow a normal distribution…? Not really. Lots of improvement and more complex assumption to get better (ARCH/GARCH etc). But still. How to Evaluate the Fair Price of an Option?
  • 13. GAN is a Deep Learning model that aims to generate examples of real-world data that are as realistic as possible. Very famous recently for image generation. Generative Adversarial Network 101 Fake or real ?
  • 14. Getting Rid of the Normal Assumption ● Let’s try to use Deep learning to get something that is independent of human interpretation: ● The main focus for GAN is to generate data from scratch ● It is composed of two networks - a generator and a discriminator ● The generator has to produce some times series of log-returns realistic enough to fool the discriminator trained to recognize real log-returns times series.
  • 15. Daily historic prices of SP500 stocks between 2002 and 2017: 1. Create chunk of time series of size 50. Those are our real examples 2. Generate some fake times series (of size 50) starting from noise - or can we be smarter? 3. Train a discriminator to flag the real from the fakes 4. Stop when the fake examples seem real enough GAN GAN style plan
  • 16. Tip: do not start from pure random noise but … from a GBM because it is what you want to improve. A Simple Architecture to Demo the Approach 1. The Generator
  • 17. A generator with 3 dense layers Importance of the LeakyRelu activation function Do not forget the dropout A Simple Architecture to Demo the Approach 2. The Discriminator
  • 18. Empirical VS Simulated Distributions of Returns
  • 21. GAN tricks for smoother training => read the repo ganhacks by Soumith Chintala Try some more complex architecture to have an even better times series generator: - RGAN or RCGAN very appropriate for a stochastic use case (LSTM instead of Dense) - Have the generator learn more directly from the discriminator: Wasserstein GAN - Add some Gradient Penalty to the generator to prevent it from being too smart… Also we did not take the time to implement some sort of error metric to see how much better we improve the generation from one model to another: RMSE should be a good starting point. Going Further
  • 23. Conclusions From English data and Japanese affix –iku (育) “To raise or bring up; to grow up” Literally,”Data Education” or ”Let’s Grow the Data skills” データ 育