SlideShare a Scribd company logo
Data-driven Agent Design for
Artificial Market Simulation
Masanori HIRANO, Kiyoshi IZUMI, Hiroki SAKAJI
Izumi Lab.
School of Engineering, The University of Tokyo
hirano@g.ecc.u-tokyo.ac.jp
https://mhirano.jp/
©M.HIRANO & Izumi Lab.
Motivation
• Instability in Financial Markets
• 2008 financial crisis
• Flush Crush
• Price fluctuation by COVID-19
• Regulations are necessary
• New regulations like Basel III
• Can avoid abovementioned crisis?
• Difficulties in Financial markets
• Nonstationary
• Rare phenomena happen frequently
• => Simulation is a good solution, but not trustable.
• Find what’s the matter
• Dealing with trustability with actual data
JSAI2022
DJIA on May 6, 2010 (Flush Crush)
DJIA in 2020 (COVID-19)
6/15/2022 2
©M.HIRANO & Izumi Lab.
Artificial Market Simulation
• Data-Driven<=> Model-Driven
• Simulations on computer using virtual markets
• We can test hypothetical situations!
• Promising approach for financial market analysis
• But…
• Models are human-made
• Humans can overpass key features for model
6/15/2022
JSAI2022
3
Are the simulations realistic?
=> Model based on data is needed
©M.HIRANO & Izumi Lab.
Our work
• Comparing
Traditional model  Our new model w/ data
• Only focus on HFT-MM  Specific trader & strategy
• Target: Tokyo Stock Exchange
• We analyzed a special data
provided by JPX
6/15/2022 JSAI2022 4
Tokyo Stock Exchange
©M.HIRANO & Izumi Lab.
Data
• “Order-book reproduction data”
provided by Japan Exchange Group (JPX)
• Containing masked trader information
<- Called “Virtual Server (VS)”
6/15/2022
JSAI2022
Time Ticker Kind Buy/sell VS Price
11:11:50.702813 A Limit Order sell VS1 2570
11:11:50.703600 B Executed buy VS4 Market Order
11:11:50.704001 A Cancel sell VS1 2570
Sample
Some columns are not shown such as volume
5
©M.HIRANO & Izumi Lab.
What’s the HFT-MM?
• High-Frequency-Trader Market-Making strategy
• Market-making strategy:
• (Basically) order near the best price
• Get profit by the spread (1001-999=2)
• Do repeatedly
• Risk-hedge by high-frequency-trade:
• Always have price move risk (Price move >> spread)
• Do action faster & hedge risk by setting off their inventory
• The reason we focused on this strategy:
• Easy to identify in the ordering data because of the unique behavior
• Well-known simulation model exists
• We cannot handle all data because of computational limitation
6/15/2022
JSAI2022
Sell
Buy
6
©M.HIRANO & Izumi Lab.
Extraction extension of [Uno et al. 18]
1. Filter by actions per ticker (HFT extraction)
2. Calculate indices corresponding to HFT-MM
• Actions per ticker (HFT-MM publish many orders)
• Inventory ratio (HFT-MM hardly doesn’t have inventories)
• Execution ratio (HFT-MM has low execution ratio)
• Cancel ratio (HFT-MM publish many cancel orders)
• Market order ratio (HFT-MM doesn’t use market order)
• Averaged traded ticker per VS(HFT-MM uses many VS)
3. Hierarchical clustering
=> extracted one HFT-MM cluster
6/15/2022
JSAI2022
Jun Uno, Keiichi Goshima, and Reiko Tobe. Cluster Analysis of Trading Behavior: An Attempt to Extract HFT [in Japanese]. In The 12th
Annual Conference of Japanese Association of Behavioral Economics and Finance, 2018.
7
©M.HIRANO & Izumi Lab.
Simulation Model
• Stylized agent: based on [Chiarella 2002]
• 3 factor model: Fundamental, Chartist, Noise
• HFT-MM traditional agent: based on [Avellaneda 2008]
• Modeled as optimized solution for MM
• This algorithm is also used in actual financial market
6/15/2022
JSAI2022
CHIARELLA, C. & Iori, G. (2002). A simulation analysis of the microstructure of double auction markets. Quantitative
Finance, 2(5), 346–353.
AVELLANEDA, M. & Stoikov, S. (2008). High-frequency trading in a limit order book. Quantitative Finance, 8(3), 217–224.
8
©M.HIRANO & Izumi Lab.
Comparison of ordering behavior
• Actual data vs simulation data
• Feature of HFT-MM: How many ticks far from the best
prices their orders are placed in
6/15/2022
JSAI2022
Masanori HIRANO, Kiyoshi IZUMI, Hiroyasu MATSUSHIMA, and Hiroki SAKAJI, "Comparing Actual and Simulated HFT Traders' Behavior for Agent
Design,“ Journal of Artificial Societies and Social Simulation, University of Surry, Vol.23, No.3, e6, 2020, doi.org/10.18564/jasss.4304
9
©M.HIRANO & Izumi Lab.
Replace Traditional Agents by DL-based model
6/15/2022
JSAI2022
Next Order Pred.
Using Actual Data
10
©M.HIRANO & Izumi Lab.
Experiments
• Change HFT-MM model among a traditional one and some
DL-based ones
1. Learning test: How well DL-based model can predict the actual
next order?
2. Simulation test: How well HFT-MM model can work like the
actual HFT-MM trader in simulations
• Criteria: MSE & KLD of order position probability from the
best prices
• Lower scores mean better performance
6/15/2022
JSAI2022
11
©M.HIRANO & Izumi Lab.
Test results in Simulation
• BaseLineModel outperform at best and traditional model
• Better trained model=>Worse in simulation
6/15/2022
JSAI2022
Traditional Model
2 outperforming models
Each dot represents each DL-based model
12
©M.HIRANO & Izumi Lab.
Reason: # of model parameters
• Simulation could be out-of-data(OOD) sample
• Model w/ more parameters show weak to OOD
• Reason1: simulation is not refined enough
• Reason2: data is very specific to Tokyo Stock Exchange
6/15/2022
JSAI2022
• More parameters
=> Trained better
• More parameter
=> Worse simulation
13
©M.HIRANO & Izumi Lab.
Conclusion
• We proposed a trader model based on DL and actual data.
• Some of the proposed models show better performance.
• This suggests that DL-based agent using actual data is one
promising solution for MAS.
• # of parameters in DL model is important to avoid degrading
performance in simulations
• The performance in learning and the performance in simulation
show the reverse relationship
6/15/2022
JSAI2022
Future Work
• Other agents than HFT-MM should be also modeled by DL
• Search for the best parameter size and architecture
• Auto ML tuning for this task
14

More Related Content

Similar to 2022/06/15 JSAI2022: Data-driven Agent Design for Artificial Market Simulation

Applying Predictive Modeling to Crypto Futures Trading
Applying Predictive Modeling to Crypto Futures TradingApplying Predictive Modeling to Crypto Futures Trading
Applying Predictive Modeling to Crypto Futures Trading
CFO Pro+Analytics
 
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Takanobu Mizuta
 
IRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock MarketingIRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock Marketing
IRJET Journal
 
Algorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the MarketAlgorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the Market
IRJET Journal
 
REAL ESTATE PRICE PREDICTION
REAL ESTATE PRICE PREDICTIONREAL ESTATE PRICE PREDICTION
REAL ESTATE PRICE PREDICTION
IRJET Journal
 
Algorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionAlgorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionRajeev Ranjan
 
Ml conference slides
Ml conference slidesMl conference slides
Ml conference slides
QuantUniversity
 
How to bridge the gap between Statisticans and Business folks ? Flutura outli...
How to bridge the gap between Statisticans and Business folks ? Flutura outli...How to bridge the gap between Statisticans and Business folks ? Flutura outli...
How to bridge the gap between Statisticans and Business folks ? Flutura outli...
fluturadsa
 
22 non statistical questions for a statistician v2
22 non statistical questions for a statistician v222 non statistical questions for a statistician v2
22 non statistical questions for a statistician v2
Derick Jose
 
IRJET - Stock Market Analysis and Prediction using Deep Learning
IRJET - Stock Market Analysis and Prediction using Deep LearningIRJET - Stock Market Analysis and Prediction using Deep Learning
IRJET - Stock Market Analysis and Prediction using Deep Learning
IRJET Journal
 
Stock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep LearningStock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep Learning
IRJET Journal
 
IRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning TechniquesIRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning Techniques
IRJET Journal
 
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
Mehdi Merai Ph.D.(c)
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
Nikola Milosevic
 
Big Data at CME Group: Challenges and Opportunities
Big Data at CME Group: Challenges and Opportunities Big Data at CME Group: Challenges and Opportunities
Big Data at CME Group: Challenges and Opportunities
Slim Baltagi
 
Select and focus
Select and focusSelect and focus
Select and focus
Ian Hendy
 
sales forecasting methods in sales .pptx
sales forecasting methods in sales .pptxsales forecasting methods in sales .pptx
sales forecasting methods in sales .pptx
ssuser34e2f61
 
Graphs and Financial Services Analytics
Graphs and Financial Services AnalyticsGraphs and Financial Services Analytics
Graphs and Financial Services Analytics
Neo4j
 
EXTENT-2015: Prognoz Market Surveillance
EXTENT-2015: Prognoz  Market SurveillanceEXTENT-2015: Prognoz  Market Surveillance
EXTENT-2015: Prognoz Market Surveillance
Iosif Itkin
 
Algorithmic Tradiging and High Frequency Trading
Algorithmic Tradiging and High Frequency TradingAlgorithmic Tradiging and High Frequency Trading
Algorithmic Tradiging and High Frequency Trading
RamjiRamakrishnan
 

Similar to 2022/06/15 JSAI2022: Data-driven Agent Design for Artificial Market Simulation (20)

Applying Predictive Modeling to Crypto Futures Trading
Applying Predictive Modeling to Crypto Futures TradingApplying Predictive Modeling to Crypto Futures Trading
Applying Predictive Modeling to Crypto Futures Trading
 
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
 
IRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock MarketingIRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock Marketing
 
Algorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the MarketAlgorithmic Trading and its Impact on the Market
Algorithmic Trading and its Impact on the Market
 
REAL ESTATE PRICE PREDICTION
REAL ESTATE PRICE PREDICTIONREAL ESTATE PRICE PREDICTION
REAL ESTATE PRICE PREDICTION
 
Algorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionAlgorithmic Trading-An Introduction
Algorithmic Trading-An Introduction
 
Ml conference slides
Ml conference slidesMl conference slides
Ml conference slides
 
How to bridge the gap between Statisticans and Business folks ? Flutura outli...
How to bridge the gap between Statisticans and Business folks ? Flutura outli...How to bridge the gap between Statisticans and Business folks ? Flutura outli...
How to bridge the gap between Statisticans and Business folks ? Flutura outli...
 
22 non statistical questions for a statistician v2
22 non statistical questions for a statistician v222 non statistical questions for a statistician v2
22 non statistical questions for a statistician v2
 
IRJET - Stock Market Analysis and Prediction using Deep Learning
IRJET - Stock Market Analysis and Prediction using Deep LearningIRJET - Stock Market Analysis and Prediction using Deep Learning
IRJET - Stock Market Analysis and Prediction using Deep Learning
 
Stock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep LearningStock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep Learning
 
IRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning TechniquesIRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning Techniques
 
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 
Big Data at CME Group: Challenges and Opportunities
Big Data at CME Group: Challenges and Opportunities Big Data at CME Group: Challenges and Opportunities
Big Data at CME Group: Challenges and Opportunities
 
Select and focus
Select and focusSelect and focus
Select and focus
 
sales forecasting methods in sales .pptx
sales forecasting methods in sales .pptxsales forecasting methods in sales .pptx
sales forecasting methods in sales .pptx
 
Graphs and Financial Services Analytics
Graphs and Financial Services AnalyticsGraphs and Financial Services Analytics
Graphs and Financial Services Analytics
 
EXTENT-2015: Prognoz Market Surveillance
EXTENT-2015: Prognoz  Market SurveillanceEXTENT-2015: Prognoz  Market Surveillance
EXTENT-2015: Prognoz Market Surveillance
 
Algorithmic Tradiging and High Frequency Trading
Algorithmic Tradiging and High Frequency TradingAlgorithmic Tradiging and High Frequency Trading
Algorithmic Tradiging and High Frequency Trading
 

More from Masanori HIRANO

2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging
2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging
2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging
Masanori HIRANO
 
2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...
2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...
2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...
Masanori HIRANO
 
2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...
2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...
2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...
Masanori HIRANO
 
2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...
2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...
2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...
Masanori HIRANO
 
2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構
2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構
2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構
Masanori HIRANO
 
2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...
2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...
2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...
Masanori HIRANO
 
2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定
2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定
2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定
Masanori HIRANO
 
2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...
2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...
2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...
Masanori HIRANO
 
2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining
2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining
2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining
Masanori HIRANO
 
2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...
2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...
2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...
Masanori HIRANO
 

More from Masanori HIRANO (10)

2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging
2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging
2023/03/04 sigfin30: 原資産価格過程不要な敵対的Deep Hedging
 
2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...
2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...
2023/03/04 sigfin30 PR: Special Session on Applied Informatics in Finance and...
 
2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...
2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...
2022/11/17 PRIMA2022: Analysis of Carbon Neutrality Scenarios of Industrial C...
 
2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...
2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...
2022/10/30 BESC2022: Parameter Tuning Method for Multi-agent Simulation using...
 
2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構
2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構
2022/03/12 sigfin28: オプションによるオプションのヘッジを可能にする二重 Deep Hedging 機構
 
2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...
2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...
2020/11/19 PRIMA2020: Simulation of Unintentional Collusion Caused by Auto Pr...
 
2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定
2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定
2020/03/18 NLP2020: 金融文書のための別タスク学習による教師なし重要文判定
 
2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...
2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...
2019/10/31 PRIMA2019: Comparison of Behaviors of Actual and Simulated HFT Tra...
 
2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining
2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining
2018/11/17 ICDMW 2018: Selection of Related Stocks using Financial Text Mining
 
2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...
2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...
2018/06/06 JSAI2018 Effects Analysis of CAR Regulations on Financial Markets ...
 

Recently uploaded

when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.
DOT TECH
 
NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...
NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...
NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...
Amil Baba Dawood bangali
 
The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...
Antonis Zairis
 
how to sell pi coins in all Africa Countries.
how to sell pi coins in all Africa Countries.how to sell pi coins in all Africa Countries.
how to sell pi coins in all Africa Countries.
DOT TECH
 
how to sell pi coins on Binance exchange
how to sell pi coins on Binance exchangehow to sell pi coins on Binance exchange
how to sell pi coins on Binance exchange
DOT TECH
 
Scope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theoriesScope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theories
nomankalyar153
 
NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad, Mandi Bah...
NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad,  Mandi Bah...NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad,  Mandi Bah...
NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad, Mandi Bah...
Amil Baba Dawood bangali
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
ydubwyt
 
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdfUS Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
pchutichetpong
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
marketing367770
 
how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.
DOT TECH
 
655264371-checkpoint-science-past-papers-april-2023.pdf
655264371-checkpoint-science-past-papers-april-2023.pdf655264371-checkpoint-science-past-papers-april-2023.pdf
655264371-checkpoint-science-past-papers-april-2023.pdf
morearsh02
 
NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...
NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...
NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...
Amil baba
 
Latino Buying Power - May 2024 Presentation for Latino Caucus
Latino Buying Power - May 2024 Presentation for Latino CaucusLatino Buying Power - May 2024 Presentation for Latino Caucus
Latino Buying Power - May 2024 Presentation for Latino Caucus
Danay Escanaverino
 
how to sell pi coins at high rate quickly.
how to sell pi coins at high rate quickly.how to sell pi coins at high rate quickly.
how to sell pi coins at high rate quickly.
DOT TECH
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
shetivia
 
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
ydubwyt
 
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdfWhich Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
Kezex (KZX)
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
DOT TECH
 
what is the future of Pi Network currency.
what is the future of Pi Network currency.what is the future of Pi Network currency.
what is the future of Pi Network currency.
DOT TECH
 

Recently uploaded (20)

when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.
 
NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...
NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...
NO1 Uk Divorce problem uk all amil baba in karachi,lahore,pakistan talaq ka m...
 
The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...
 
how to sell pi coins in all Africa Countries.
how to sell pi coins in all Africa Countries.how to sell pi coins in all Africa Countries.
how to sell pi coins in all Africa Countries.
 
how to sell pi coins on Binance exchange
how to sell pi coins on Binance exchangehow to sell pi coins on Binance exchange
how to sell pi coins on Binance exchange
 
Scope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theoriesScope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theories
 
NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad, Mandi Bah...
NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad,  Mandi Bah...NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad,  Mandi Bah...
NO1 Uk Black Magic Specialist Expert In Sahiwal, Okara, Hafizabad, Mandi Bah...
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
 
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdfUS Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
 
how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.
 
655264371-checkpoint-science-past-papers-april-2023.pdf
655264371-checkpoint-science-past-papers-april-2023.pdf655264371-checkpoint-science-past-papers-april-2023.pdf
655264371-checkpoint-science-past-papers-april-2023.pdf
 
NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...
NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...
NO1 Uk Rohani Baba In Karachi Bangali Baba Karachi Online Amil Baba WorldWide...
 
Latino Buying Power - May 2024 Presentation for Latino Caucus
Latino Buying Power - May 2024 Presentation for Latino CaucusLatino Buying Power - May 2024 Presentation for Latino Caucus
Latino Buying Power - May 2024 Presentation for Latino Caucus
 
how to sell pi coins at high rate quickly.
how to sell pi coins at high rate quickly.how to sell pi coins at high rate quickly.
how to sell pi coins at high rate quickly.
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
 
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
 
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdfWhich Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
 
what is the future of Pi Network currency.
what is the future of Pi Network currency.what is the future of Pi Network currency.
what is the future of Pi Network currency.
 

2022/06/15 JSAI2022: Data-driven Agent Design for Artificial Market Simulation

  • 1. Data-driven Agent Design for Artificial Market Simulation Masanori HIRANO, Kiyoshi IZUMI, Hiroki SAKAJI Izumi Lab. School of Engineering, The University of Tokyo hirano@g.ecc.u-tokyo.ac.jp https://mhirano.jp/
  • 2. ©M.HIRANO & Izumi Lab. Motivation • Instability in Financial Markets • 2008 financial crisis • Flush Crush • Price fluctuation by COVID-19 • Regulations are necessary • New regulations like Basel III • Can avoid abovementioned crisis? • Difficulties in Financial markets • Nonstationary • Rare phenomena happen frequently • => Simulation is a good solution, but not trustable. • Find what’s the matter • Dealing with trustability with actual data JSAI2022 DJIA on May 6, 2010 (Flush Crush) DJIA in 2020 (COVID-19) 6/15/2022 2
  • 3. ©M.HIRANO & Izumi Lab. Artificial Market Simulation • Data-Driven<=> Model-Driven • Simulations on computer using virtual markets • We can test hypothetical situations! • Promising approach for financial market analysis • But… • Models are human-made • Humans can overpass key features for model 6/15/2022 JSAI2022 3 Are the simulations realistic? => Model based on data is needed
  • 4. ©M.HIRANO & Izumi Lab. Our work • Comparing Traditional model  Our new model w/ data • Only focus on HFT-MM  Specific trader & strategy • Target: Tokyo Stock Exchange • We analyzed a special data provided by JPX 6/15/2022 JSAI2022 4 Tokyo Stock Exchange
  • 5. ©M.HIRANO & Izumi Lab. Data • “Order-book reproduction data” provided by Japan Exchange Group (JPX) • Containing masked trader information <- Called “Virtual Server (VS)” 6/15/2022 JSAI2022 Time Ticker Kind Buy/sell VS Price 11:11:50.702813 A Limit Order sell VS1 2570 11:11:50.703600 B Executed buy VS4 Market Order 11:11:50.704001 A Cancel sell VS1 2570 Sample Some columns are not shown such as volume 5
  • 6. ©M.HIRANO & Izumi Lab. What’s the HFT-MM? • High-Frequency-Trader Market-Making strategy • Market-making strategy: • (Basically) order near the best price • Get profit by the spread (1001-999=2) • Do repeatedly • Risk-hedge by high-frequency-trade: • Always have price move risk (Price move >> spread) • Do action faster & hedge risk by setting off their inventory • The reason we focused on this strategy: • Easy to identify in the ordering data because of the unique behavior • Well-known simulation model exists • We cannot handle all data because of computational limitation 6/15/2022 JSAI2022 Sell Buy 6
  • 7. ©M.HIRANO & Izumi Lab. Extraction extension of [Uno et al. 18] 1. Filter by actions per ticker (HFT extraction) 2. Calculate indices corresponding to HFT-MM • Actions per ticker (HFT-MM publish many orders) • Inventory ratio (HFT-MM hardly doesn’t have inventories) • Execution ratio (HFT-MM has low execution ratio) • Cancel ratio (HFT-MM publish many cancel orders) • Market order ratio (HFT-MM doesn’t use market order) • Averaged traded ticker per VS(HFT-MM uses many VS) 3. Hierarchical clustering => extracted one HFT-MM cluster 6/15/2022 JSAI2022 Jun Uno, Keiichi Goshima, and Reiko Tobe. Cluster Analysis of Trading Behavior: An Attempt to Extract HFT [in Japanese]. In The 12th Annual Conference of Japanese Association of Behavioral Economics and Finance, 2018. 7
  • 8. ©M.HIRANO & Izumi Lab. Simulation Model • Stylized agent: based on [Chiarella 2002] • 3 factor model: Fundamental, Chartist, Noise • HFT-MM traditional agent: based on [Avellaneda 2008] • Modeled as optimized solution for MM • This algorithm is also used in actual financial market 6/15/2022 JSAI2022 CHIARELLA, C. & Iori, G. (2002). A simulation analysis of the microstructure of double auction markets. Quantitative Finance, 2(5), 346–353. AVELLANEDA, M. & Stoikov, S. (2008). High-frequency trading in a limit order book. Quantitative Finance, 8(3), 217–224. 8
  • 9. ©M.HIRANO & Izumi Lab. Comparison of ordering behavior • Actual data vs simulation data • Feature of HFT-MM: How many ticks far from the best prices their orders are placed in 6/15/2022 JSAI2022 Masanori HIRANO, Kiyoshi IZUMI, Hiroyasu MATSUSHIMA, and Hiroki SAKAJI, "Comparing Actual and Simulated HFT Traders' Behavior for Agent Design,“ Journal of Artificial Societies and Social Simulation, University of Surry, Vol.23, No.3, e6, 2020, doi.org/10.18564/jasss.4304 9
  • 10. ©M.HIRANO & Izumi Lab. Replace Traditional Agents by DL-based model 6/15/2022 JSAI2022 Next Order Pred. Using Actual Data 10
  • 11. ©M.HIRANO & Izumi Lab. Experiments • Change HFT-MM model among a traditional one and some DL-based ones 1. Learning test: How well DL-based model can predict the actual next order? 2. Simulation test: How well HFT-MM model can work like the actual HFT-MM trader in simulations • Criteria: MSE & KLD of order position probability from the best prices • Lower scores mean better performance 6/15/2022 JSAI2022 11
  • 12. ©M.HIRANO & Izumi Lab. Test results in Simulation • BaseLineModel outperform at best and traditional model • Better trained model=>Worse in simulation 6/15/2022 JSAI2022 Traditional Model 2 outperforming models Each dot represents each DL-based model 12
  • 13. ©M.HIRANO & Izumi Lab. Reason: # of model parameters • Simulation could be out-of-data(OOD) sample • Model w/ more parameters show weak to OOD • Reason1: simulation is not refined enough • Reason2: data is very specific to Tokyo Stock Exchange 6/15/2022 JSAI2022 • More parameters => Trained better • More parameter => Worse simulation 13
  • 14. ©M.HIRANO & Izumi Lab. Conclusion • We proposed a trader model based on DL and actual data. • Some of the proposed models show better performance. • This suggests that DL-based agent using actual data is one promising solution for MAS. • # of parameters in DL model is important to avoid degrading performance in simulations • The performance in learning and the performance in simulation show the reverse relationship 6/15/2022 JSAI2022 Future Work • Other agents than HFT-MM should be also modeled by DL • Search for the best parameter size and architecture • Auto ML tuning for this task 14