SlideShare a Scribd company logo
2
Most read
6
Most read
9
Most read
Algorithmic Trading and Machine Learning
Michael Kearns
University of Pennsylvania
QuantCon 2015, NYC
Special thanks: Yuriy Nevmyvaka (Lehman, BofA, SAC, Engineers Gate)
Long	
  Version:	
  h-p://techtalks.tv/talks/algorithmic-­‐trading-­‐and-­‐machine-­‐learning/60847/	
  
or	
  Google	
  “techtalks	
  ICML	
  2014	
  kearns”	
  
ML for Trading: Challenges
•  Learning to Act (vs. Predict): Optimized Execution
•  Dealing with Censored Data: Order Routing in Dark Pools
•  Incorporating Risk: Trading Under Inventory Constraints
Learning to Act: ML for Optimized Execution
[Y.	
  Nevmyvaka.	
  Y.	
  Feng,	
  MK;	
  ICML	
  2006]	
  
[MK,	
  Y.	
  Nevmyvaka;	
  In	
  “High	
  Frequency	
  Trading”,	
  O’Hara	
  et	
  al.	
  eds,	
  Risk	
  Books	
  2013]	
  
A Canonical Trading Problem
•  Goal: Sell V shares in T time steps; maximize revenue
•  Benchmarks:
–  Volume Weighted Average Price (VWAP)
–  Time Weighted Average Price (TWAP)
–  Implementation Shortfall (midpoint of bid-ask spread at beginning)
•  View as a problem of state-based control (Reinforcement Learning)
–  Action space: limit orders
–  State variables: inventory and time remaining
–  Additional features capturing order book activity
•  Experimental framework
–  Full historical order book reconstruction and simulation
–  Learn optimal policy on 1 year training; test on following 6 months
–  Pitfalls: directional drift, “counterfactual” market impact
Bid Volume -0.06% Ask Volume -0.28%
Bid-Ask Volume Misbalance 0.13% Bid-Ask Spread 7.97%
Price Level 0.26% Immediate Market Order Cost 4.26%
Signed Transaction Volume 2.81% Price Volatility -0.55%
Spread Volatility 1.89% Signed Incoming Volume 0.59%
Spread + Immediate Cost 8.69% Spread+ImmCost+Signed Vol 12.85%
AddiZonal	
  Improvement	
  From	
  Order	
  Book	
  Features	
  
T=4 I=1 27.16% T=8 I=1 31.15%
T=4 I=4 30.99% T=8 I=4 34.90%
T=4 I=8 31.59% T=8 I=8 35.50%
Improvement	
  Over	
  OpZmized	
  Submit-­‐and-­‐Leave	
  !
Desperately Seeking Alpha
•  A natural modification:
–  Change action space to buy or sell and hold for t seconds, then liquidate (+null action)
–  Add state features capturing directional movements
•  Now trying to predict movement and profit (vs. fixed optimization problem)
•  Definite (aggregate) predictability, but hard to overcome trading costs
•  Still learn broadly consistent policies across stocks:
–  Null action vast majority of time; trade only in extremal states/opportunities
–  Short holding (milliseconds): Momentum
–  Longer holding (seconds): Reversion
Smart Order Routing in Dark Pools
[K.	
  Ganchev,	
  MK,	
  Y.	
  Nevmyvaka.	
  J.	
  Wortman	
  Vaughan;	
  UAI	
  2009,	
  CACM	
  2010]	
  
[K.	
  Amin,	
  MK,	
  P.	
  Key,	
  A.	
  Schwaighofer;	
  UAI	
  2012]	
  
Dark Pools
•  Recently introduced trading mechanism
•  Intended to allow large counterparties to trade with minimal market impact
•  Only specify desired volume and direction (buy/sell); no price specified
•  Buyers and sellers matched in order of arrival
•  Prices will be midpoint of National Best Bid and Offer (NBBO) in lit market
•  Now dozens of dark pool, competing for liquidity instead of price
•  Break trade up over exchanges instead of over time
Buy V shares total
v2 shares
How should we disperse V?
Dark Pool A
Dark Pool B
Dark Pool C
Dark Pool D
?
?
?
?
Smart Order Routing (SOR)
A Distributional Model of Liquidity
•  Assume each dark pool has a stationary distribution P over available shares
•  If we submit v shares, min(v,s) will be executed where s ~ P
•  Our observations are censored by our own actions
•  MLE for P is Kaplan-Meier --- but we must address exploration across pools
•  Want to learn just enough about each pool to do optimal SOR
s	
  
P[s]	
  
Pool	
  A	
  
s	
  
P[s]	
  
Pool	
  B	
  
s	
  
P[s]	
  
Pool	
  C	
  
s	
  
P[s]	
  
Pool	
  D	
  
A Simple and Efficient Algorithm
•  Provably converges quickly to optimal allocations under known distributions
•  Involves optimistic modification to MLE, new convergence bound
•  Analysis reminiscent of E3/RMAX in RL
greedy	
  allocaZon	
  under	
  current	
  distribuZonal	
  esZmates	
  
re-­‐esZmate	
  using	
  censored	
  observaZons	
  
Empirical Evaluation
•  Data: submission/execution data from multiple pools at large brokerage
•  Used to build distribution models (heavy-tailed) and simulator
•  Comparison to uniform allocation (strawman), bandit approach, optimal
Incorporating Risk:
Algorithmic Trading with Inventory Constraints
[E.	
  Even-­‐Dar,	
  MK,	
  J.	
  Wortman	
  Vaughan;	
  ALT	
  2006]	
  
[L.	
  Dworkin,	
  MK,	
  Y.	
  Nevmyvaka;	
  ICML	
  2014]	
  
No-Regret Learning in Finance
•  Originates with Cover’s Universal Portfolios; simple reweighting algorithm
•  Strong theoretical guarantees without stochastic assumptions
–  Compete with best single stock in hindsight
•  Can be applied directly to stocks or higher-level trading strategies
•  Unfortunately methods work poorly in practice:
S&P500,	
  2005-­‐2011	
  
Trading with Inventory Constraints
•  Can’t manage to Sharpe Ratio, but can limit allowed positions/portfolios
•  Restrict to portfolios with daily standard deviation PNL at most $X historically
•  Leads to elliptical constraint in portfolio space depending on correlations
•  Only compete with strategies:
–  Obeying inventory constraints
–  Making only local moves (limit market impact)
•  Combine no-regret with pursuit-evasion to recover theoretical guarantees
correlaZon	
  =	
  0	
   correlaZon	
  =	
  0.5	
   correlaZon	
  =	
  1	
  
Hedged	
   Pursuit-­‐Evasion	
  DirecZonal	
  
Conclusions
•  In the middle (beginning?) of a period of rapid change in markets:
–  Automation of traditional processes and trading
–  Introduction of new market mechanisms (open order books, dark pools)
–  Development of new types of trading and strategies (HFT)
•  Automation + Data ! Machine Learning
•  Challenges:
–  Feature design
–  Censored observations
–  Risk considerations
–  Strategic/adversarial behavior
•  More, and different, to come…
Contact: mkearns@cis.upenn.edu
Long	
  Version:	
  h-p://techtalks.tv/talks/algorithmic-­‐trading-­‐and-­‐machine-­‐learning/60847/	
  
or	
  Google	
  “techtalks	
  ICML	
  2014	
  kearns”	
  

More Related Content

What's hot (20)

PPT
Statistical arbitrage
Mukul Bhartiya
 
PDF
What we learned from running a quant crypto hedge fund
Yingdan (Mora) Liang
 
PPTX
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
Quantopian
 
PDF
10 Ways Backtests Lie by Tucker Balch
Quantopian
 
PPTX
Algorithmic Trading
Thanakrit Lersmethasakul
 
PPTX
DIY Quant Strategies on Quantopian
Jess Stauth
 
PDF
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Quantopian
 
PPTX
Paradigms of trading strategies formulation
QuantInsti
 
PDF
Machine learning for factor investing
QuantUniversity
 
PPTX
Algorithmic & High-Frequency Trading
Ryan Hendricks
 
PDF
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
Quantopian
 
PDF
Classical Methods - Chapter 28 - Bring All Together Real World Charts | CMT ...
Professional Training Academy
 
PDF
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
Quantopian
 
PDF
Simulating HFT for Low-Latency Investors - The Investor’s View (Robert Almgren)
CBS Competitiveness Platform
 
PPTX
Algo Trading
Francesco Torraco
 
PDF
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
Quantopian
 
PDF
Blockchain Interview Questions and Answers | Blockchain Technology | Blockcha...
Edureka!
 
PDF
Classical Methods - CH 25 - Multi Time Frames | CMT Level 3 | Chartered Mark...
Professional Training Academy
 
PDF
Intro to Quant Trading Strategies (Lecture 1 of 10)
Adrian Aley
 
PDF
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
Quantopian
 
Statistical arbitrage
Mukul Bhartiya
 
What we learned from running a quant crypto hedge fund
Yingdan (Mora) Liang
 
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
Quantopian
 
10 Ways Backtests Lie by Tucker Balch
Quantopian
 
Algorithmic Trading
Thanakrit Lersmethasakul
 
DIY Quant Strategies on Quantopian
Jess Stauth
 
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Quantopian
 
Paradigms of trading strategies formulation
QuantInsti
 
Machine learning for factor investing
QuantUniversity
 
Algorithmic & High-Frequency Trading
Ryan Hendricks
 
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
Quantopian
 
Classical Methods - Chapter 28 - Bring All Together Real World Charts | CMT ...
Professional Training Academy
 
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
Quantopian
 
Simulating HFT for Low-Latency Investors - The Investor’s View (Robert Almgren)
CBS Competitiveness Platform
 
Algo Trading
Francesco Torraco
 
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
Quantopian
 
Blockchain Interview Questions and Answers | Blockchain Technology | Blockcha...
Edureka!
 
Classical Methods - CH 25 - Multi Time Frames | CMT Level 3 | Chartered Mark...
Professional Training Academy
 
Intro to Quant Trading Strategies (Lecture 1 of 10)
Adrian Aley
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
Quantopian
 

Similar to Algorithmic trading and Machine Learning by Michael Kearns, Professor of Computer and Information Science, UPenn (20)

PDF
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
Quantopian
 
PPT
Portfolio Planning
ahmad bassiouny
 
PDF
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
Quantopian
 
PPTX
Algorithmic Trading: an Overview
EXANTE
 
PDF
Online Learning Startegy of MArket MAking.pdf
Gal Zahavi
 
PPTX
Automated Trading
Gaurav Chakravorty
 
PDF
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
NUS-ISS
 
PDF
Machine Learning Trading Strategies_ The New Frontier in Quantitative Finance...
Lucas Lagone
 
PDF
Intro to Quantitative Investment (Lecture 1 of 6)
Adrian Aley
 
PPTX
Reinforcement Learning For Trading
Thomas Starke
 
PDF
Algorithmic Trading and its Impact on the Market
IRJET Journal
 
PDF
max dama on automated trading
mustafa sarac
 
PDF
AI: 強化学習の応用
Kevin No
 
PDF
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
Quantopian
 
PDF
Quant trading with artificial intelligence
Roger Lee, CFA
 
PDF
Chapter 3 statistical arbitrage algo trading
Quan Risk
 
PDF
Stock prediction and algorithmic trading
Shreshth Saxena
 
PDF
Introduction to Algorithmic Trading
Andrew Kreimer
 
ODP
Using Java & Genetic Algorithms to Beat the Market
Matthew Ring
 
PPTX
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
Quantopian
 
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
Quantopian
 
Portfolio Planning
ahmad bassiouny
 
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
Quantopian
 
Algorithmic Trading: an Overview
EXANTE
 
Online Learning Startegy of MArket MAking.pdf
Gal Zahavi
 
Automated Trading
Gaurav Chakravorty
 
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
NUS-ISS
 
Machine Learning Trading Strategies_ The New Frontier in Quantitative Finance...
Lucas Lagone
 
Intro to Quantitative Investment (Lecture 1 of 6)
Adrian Aley
 
Reinforcement Learning For Trading
Thomas Starke
 
Algorithmic Trading and its Impact on the Market
IRJET Journal
 
max dama on automated trading
mustafa sarac
 
AI: 強化学習の応用
Kevin No
 
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
Quantopian
 
Quant trading with artificial intelligence
Roger Lee, CFA
 
Chapter 3 statistical arbitrage algo trading
Quan Risk
 
Stock prediction and algorithmic trading
Shreshth Saxena
 
Introduction to Algorithmic Trading
Andrew Kreimer
 
Using Java & Genetic Algorithms to Beat the Market
Matthew Ring
 
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
Quantopian
 
Ad

More from Quantopian (20)

PPTX
Being open (source) in the traditionally secretive field of quant finance.
Quantopian
 
PPTX
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Quantopian
 
PPTX
Tearsheet feedback webinar 10.10.18
Quantopian
 
PDF
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
Quantopian
 
PPTX
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
Quantopian
 
PPTX
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
Quantopian
 
PDF
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
Quantopian
 
PDF
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
Quantopian
 
PDF
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
Quantopian
 
PDF
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
Quantopian
 
PPTX
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
Quantopian
 
PDF
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
Quantopian
 
PPTX
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
Quantopian
 
PDF
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
Quantopian
 
PDF
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
Quantopian
 
PDF
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
Quantopian
 
PDF
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
Quantopian
 
PPTX
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
Quantopian
 
PPTX
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
Quantopian
 
PPTX
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
Quantopian
 
Being open (source) in the traditionally secretive field of quant finance.
Quantopian
 
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Quantopian
 
Tearsheet feedback webinar 10.10.18
Quantopian
 
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
Quantopian
 
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
Quantopian
 
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
Quantopian
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
Quantopian
 
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
Quantopian
 
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
Quantopian
 
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
Quantopian
 
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
Quantopian
 
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
Quantopian
 
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
Quantopian
 
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
Quantopian
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
Quantopian
 
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
Quantopian
 
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
Quantopian
 
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
Quantopian
 
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
Quantopian
 
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
Quantopian
 
Ad

Recently uploaded (20)

PPTX
financial reporting qualissssssssssssssty.pptx
viditrajchoudharimba
 
PDF
VVuyo Mpako- Managing Director of NEXT176 at Old Mutual
itnewsafrica
 
PDF
Bradwin Roper- Chief of Payments Partnerships at JUMO
itnewsafrica
 
PPTX
办理流程澳洲电子毕业证堪培拉大学文凭UC学费单
Taqyea
 
PPTX
Chapter 23 - Generative AI for credit regulations.pptx
Dr. LAM Yat-fai (林日辉)
 
PDF
Creo_Final Presentation.pdfhhkskdjkekedkdk
lovepreetgee
 
PDF
Marina Short- CEO, Consumer Profile Bureau
itnewsafrica
 
PDF
Jacques Coetzer- Chief Technology Officer at Risk X Group
itnewsafrica
 
PDF
Simon Arias Entrepreneur, Motivational Leader & Founder of Arias Agencies
Simon Arias
 
PPTX
united states Presentation Debt crises 1st.pptx
marialabib40
 
PDF
Rufaida Hamilton- Head of Payments from Standard Bank
itnewsafrica
 
PPTX
Poverty alleviation and Women empowerment. Bandhan Bank .pptx
61ShifaMahat
 
PDF
George Prinsloo- Account Executive at DocFusion
itnewsafrica
 
PDF
Asia’s Most Influential Hospital CEOs: The Leaders Transforming Healthcare Ac...
Gorman Bain Capital
 
PDF
Our added value in Software & financial services sector 0725.pdf
dpioux
 
PDF
Today, July 10, 2025, the Conference on the Recovery of Ukraine (URC2025) beg...
Інститут економічних досліджень та політичних консультацій
 
PPTX
Karl Marx good man present ation and.pptx
NavyaDeora
 
PDF
Overview of the Nigerian Tax Reform Bill Tax-reform-bills-CFOs_Nov2024.pdf
UmarUAUKUMO
 
PDF
Option trees - BDT tree - mean reversion - short rate model - risk management
luc faucheux
 
financial reporting qualissssssssssssssty.pptx
viditrajchoudharimba
 
VVuyo Mpako- Managing Director of NEXT176 at Old Mutual
itnewsafrica
 
Bradwin Roper- Chief of Payments Partnerships at JUMO
itnewsafrica
 
办理流程澳洲电子毕业证堪培拉大学文凭UC学费单
Taqyea
 
Chapter 23 - Generative AI for credit regulations.pptx
Dr. LAM Yat-fai (林日辉)
 
Creo_Final Presentation.pdfhhkskdjkekedkdk
lovepreetgee
 
Marina Short- CEO, Consumer Profile Bureau
itnewsafrica
 
Jacques Coetzer- Chief Technology Officer at Risk X Group
itnewsafrica
 
Simon Arias Entrepreneur, Motivational Leader & Founder of Arias Agencies
Simon Arias
 
united states Presentation Debt crises 1st.pptx
marialabib40
 
Rufaida Hamilton- Head of Payments from Standard Bank
itnewsafrica
 
Poverty alleviation and Women empowerment. Bandhan Bank .pptx
61ShifaMahat
 
George Prinsloo- Account Executive at DocFusion
itnewsafrica
 
Asia’s Most Influential Hospital CEOs: The Leaders Transforming Healthcare Ac...
Gorman Bain Capital
 
Our added value in Software & financial services sector 0725.pdf
dpioux
 
Today, July 10, 2025, the Conference on the Recovery of Ukraine (URC2025) beg...
Інститут економічних досліджень та політичних консультацій
 
Karl Marx good man present ation and.pptx
NavyaDeora
 
Overview of the Nigerian Tax Reform Bill Tax-reform-bills-CFOs_Nov2024.pdf
UmarUAUKUMO
 
Option trees - BDT tree - mean reversion - short rate model - risk management
luc faucheux
 

Algorithmic trading and Machine Learning by Michael Kearns, Professor of Computer and Information Science, UPenn

  • 1. Algorithmic Trading and Machine Learning Michael Kearns University of Pennsylvania QuantCon 2015, NYC Special thanks: Yuriy Nevmyvaka (Lehman, BofA, SAC, Engineers Gate) Long  Version:  h-p://techtalks.tv/talks/algorithmic-­‐trading-­‐and-­‐machine-­‐learning/60847/   or  Google  “techtalks  ICML  2014  kearns”  
  • 2. ML for Trading: Challenges •  Learning to Act (vs. Predict): Optimized Execution •  Dealing with Censored Data: Order Routing in Dark Pools •  Incorporating Risk: Trading Under Inventory Constraints
  • 3. Learning to Act: ML for Optimized Execution [Y.  Nevmyvaka.  Y.  Feng,  MK;  ICML  2006]   [MK,  Y.  Nevmyvaka;  In  “High  Frequency  Trading”,  O’Hara  et  al.  eds,  Risk  Books  2013]  
  • 4. A Canonical Trading Problem •  Goal: Sell V shares in T time steps; maximize revenue •  Benchmarks: –  Volume Weighted Average Price (VWAP) –  Time Weighted Average Price (TWAP) –  Implementation Shortfall (midpoint of bid-ask spread at beginning) •  View as a problem of state-based control (Reinforcement Learning) –  Action space: limit orders –  State variables: inventory and time remaining –  Additional features capturing order book activity •  Experimental framework –  Full historical order book reconstruction and simulation –  Learn optimal policy on 1 year training; test on following 6 months –  Pitfalls: directional drift, “counterfactual” market impact
  • 5. Bid Volume -0.06% Ask Volume -0.28% Bid-Ask Volume Misbalance 0.13% Bid-Ask Spread 7.97% Price Level 0.26% Immediate Market Order Cost 4.26% Signed Transaction Volume 2.81% Price Volatility -0.55% Spread Volatility 1.89% Signed Incoming Volume 0.59% Spread + Immediate Cost 8.69% Spread+ImmCost+Signed Vol 12.85% AddiZonal  Improvement  From  Order  Book  Features   T=4 I=1 27.16% T=8 I=1 31.15% T=4 I=4 30.99% T=8 I=4 34.90% T=4 I=8 31.59% T=8 I=8 35.50% Improvement  Over  OpZmized  Submit-­‐and-­‐Leave  !
  • 6. Desperately Seeking Alpha •  A natural modification: –  Change action space to buy or sell and hold for t seconds, then liquidate (+null action) –  Add state features capturing directional movements •  Now trying to predict movement and profit (vs. fixed optimization problem) •  Definite (aggregate) predictability, but hard to overcome trading costs •  Still learn broadly consistent policies across stocks: –  Null action vast majority of time; trade only in extremal states/opportunities –  Short holding (milliseconds): Momentum –  Longer holding (seconds): Reversion
  • 7. Smart Order Routing in Dark Pools [K.  Ganchev,  MK,  Y.  Nevmyvaka.  J.  Wortman  Vaughan;  UAI  2009,  CACM  2010]   [K.  Amin,  MK,  P.  Key,  A.  Schwaighofer;  UAI  2012]  
  • 8. Dark Pools •  Recently introduced trading mechanism •  Intended to allow large counterparties to trade with minimal market impact •  Only specify desired volume and direction (buy/sell); no price specified •  Buyers and sellers matched in order of arrival •  Prices will be midpoint of National Best Bid and Offer (NBBO) in lit market •  Now dozens of dark pool, competing for liquidity instead of price •  Break trade up over exchanges instead of over time
  • 9. Buy V shares total v2 shares How should we disperse V? Dark Pool A Dark Pool B Dark Pool C Dark Pool D ? ? ? ? Smart Order Routing (SOR)
  • 10. A Distributional Model of Liquidity •  Assume each dark pool has a stationary distribution P over available shares •  If we submit v shares, min(v,s) will be executed where s ~ P •  Our observations are censored by our own actions •  MLE for P is Kaplan-Meier --- but we must address exploration across pools •  Want to learn just enough about each pool to do optimal SOR s   P[s]   Pool  A   s   P[s]   Pool  B   s   P[s]   Pool  C   s   P[s]   Pool  D  
  • 11. A Simple and Efficient Algorithm •  Provably converges quickly to optimal allocations under known distributions •  Involves optimistic modification to MLE, new convergence bound •  Analysis reminiscent of E3/RMAX in RL greedy  allocaZon  under  current  distribuZonal  esZmates   re-­‐esZmate  using  censored  observaZons  
  • 12. Empirical Evaluation •  Data: submission/execution data from multiple pools at large brokerage •  Used to build distribution models (heavy-tailed) and simulator •  Comparison to uniform allocation (strawman), bandit approach, optimal
  • 13. Incorporating Risk: Algorithmic Trading with Inventory Constraints [E.  Even-­‐Dar,  MK,  J.  Wortman  Vaughan;  ALT  2006]   [L.  Dworkin,  MK,  Y.  Nevmyvaka;  ICML  2014]  
  • 14. No-Regret Learning in Finance •  Originates with Cover’s Universal Portfolios; simple reweighting algorithm •  Strong theoretical guarantees without stochastic assumptions –  Compete with best single stock in hindsight •  Can be applied directly to stocks or higher-level trading strategies •  Unfortunately methods work poorly in practice: S&P500,  2005-­‐2011  
  • 15. Trading with Inventory Constraints •  Can’t manage to Sharpe Ratio, but can limit allowed positions/portfolios •  Restrict to portfolios with daily standard deviation PNL at most $X historically •  Leads to elliptical constraint in portfolio space depending on correlations •  Only compete with strategies: –  Obeying inventory constraints –  Making only local moves (limit market impact) •  Combine no-regret with pursuit-evasion to recover theoretical guarantees correlaZon  =  0   correlaZon  =  0.5   correlaZon  =  1  
  • 17. Conclusions •  In the middle (beginning?) of a period of rapid change in markets: –  Automation of traditional processes and trading –  Introduction of new market mechanisms (open order books, dark pools) –  Development of new types of trading and strategies (HFT) •  Automation + Data ! Machine Learning •  Challenges: –  Feature design –  Censored observations –  Risk considerations –  Strategic/adversarial behavior •  More, and different, to come… Contact: [email protected] Long  Version:  h-p://techtalks.tv/talks/algorithmic-­‐trading-­‐and-­‐machine-­‐learning/60847/   or  Google  “techtalks  ICML  2014  kearns”