SlideShare a Scribd company logo
1 of 23
Statistics:
Missing Link between Technical Analysis and
Algorithmic Trading
Manish Jalan
Managing Partner and Quantitative Research Head
SG Analytics, Pune/Mumbai, India
APRIL, 2016
The statistical modeling
building blocks
Define End Goal Define Set of Rules
Collect
Data
Back-test Optimize Simulate
Connect to
OMS
Connect to
Exchange
Manage Risk
Improve and Maintain
Modeling Building
2Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Why Mathematics & Statistics?
Pure Technical Models
Moderate ROI when model is working
Large draw-downs when model stops
Long stretch of continuous bleeding in
returns
User might lose confidence
Technical & Statistical Models
Superior ROI when model is working
Flattish ROI when model stops
Shorter stretch of continuous flattish
period
User can diversify and make multi-models
3Statistics: Missing Link between Technical Analysis and Algorithmic Trading
The Mathematics
Data
Distributions
Time Series
Modeling
Market
Microstructure
4Statistics: Missing Link between Technical Analysis and Algorithmic Trading
The Volatility
5
2
1
1
( )
n
i
i
x
n
 

 
Volatility
Is deviation from mean
in daily, 5 min, 10 min etc.
5Statistics: Missing Link between Technical Analysis and Algorithmic Trading
The normal distribution
Normal
Distribution
Most popular data distribution
Standard normal distribution curve
Source: Wikipedia
6Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Mean ix
n
 

Standard
deviation
2
1
1
( )
n
i
i
x
n
 

 
Variance
2 2
1
1
( )
n
i
i
x
n
 

 
Correlation
( , )
x y
Cov x y
r
 

Beta
( , )
( )
s p
s
p
Cov r r
Var r
 
The normal distribution
7Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Normal vs. other distributions
CAUCHY
DISTRIBUTION
BETA
DISTRIBUTION
BINOMIAL
DISTRIBUTION
CHI-SQUARE
DISTRIBUTION
LAPLACE
DISTRIBUTION
POISSON
DISTRIBUTION
EXPONENTIAL
DISTRIBUTION
8Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Behavior of the time-series of data
– Mean reverting, Trending or Random Walk
– 50-60% time series is random walk
– Focus should be on the other 40%
Key elements: Mean and Variance
Different behaviors
– Mean reverting (E.g.: Pairs Trading)
– Non-mean reverting (E.g.: Trend)
– Constant variance (E.g.: Pairs Trading)
– Increasing variance (E.g.: Trend)
Time series modeling
9Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Mean and Variance
0
2
4
6
8
10
12
Constant Mean
0
2
4
6
8
10
Constant Variance
0
10
20
30
40
Increasing Mean
0
5
10
15
20
25
30
Increasing Variance
10Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Mean reversion modeling
Co-integration: Stationary mean and variance
Time series is stationary when
– The mean is constant
– The variance is constant
Test for co-integration
– If |r| < 1, the series is stationary
– If |r| = 1, it is non-stationary (Random walk)
Most popular test: ADF (Augmented Dickey
Fuller)
If ADF < -3.2 (95% probability of co-integrated
series)
1t t ty ry e 
11Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Variance Ratio Test: Test for variance alone
Useful when mean is varying w.r.t to the time
Ornstein-Uhlenbeck Process: Test for mean reversion alone
Useful when only mean reversion rate matters
Generic time series modeling
( )
( )
( )
k t
t
Variance r
VR k
k Variance r




( )t t tdx x dt dW    
12Statistics: Missing Link between Technical Analysis and Algorithmic Trading
0.00%
2.00%
4.00%
6.00%
8.00%
10.00%
12.00%
14.00%
16.00%
18.00%
20.00%
0 10 20 30 40 50
Growth
P/E Ratio
Cluster analysis and PCA
Grouping of similar data and pattern
Useful in factor modeling
PCA: To identify principal component
13Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Regression
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
0.2
-0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25
2
0.659
0.720
y x
R


Useful in identifying alpha-generating factors
y mx c 
14Statistics: Missing Link between Technical Analysis and Algorithmic Trading
1001.50 13
1001.00 19
1000.50 2
1000.00 17
999.50 9
999.00
10 998.50
4 998.00
16 998.00
7 998.00
Last
Traded
Price
Bid-
Ask
Spread
Price Ask QtyBid Qty
Used in UHFT, HFT, Agency Trading
Market microstructure
15Statistics: Missing Link between Technical Analysis and Algorithmic Trading
Market microstructure
09:15 09:30 09:45 10:00 10:4510:3010:15
1005.00 1007.50 1004.50 1003.00 1008.00 1010.50 1009.50
5n  1006.70 
2
1
( ) 35.3
n
i
x 

  2.657 
Market Price of Reliance in 5 min buckets
16Statistics: Missing Link between Technical Analysis and Algorithmic Trading
The spread
( )Spread Ticks BestAsk BestBid 
( )
( ) 10000
( )
2
BestAsk BestBid
Spread BP
BestAsk BestBid

 

Spread in BP
Spread in Ticks
17Statistics: Missing Link between Technical Analysis and Algorithmic Trading
0.00%
1.00%
2.00%
3.00%
4.00%
5.00%
6.00%
7.00%
09:00 09:50 10:40 11:30 12:20 13:10 14:00 14:50
The market curve
Volume / Market curve
BucketVolume
VolumeRatio
DaysTotalVolume

18Statistics: Missing Link between Technical Analysis and Algorithmic Trading
1055.00 2
1054.00 7
1053.00 15
1052.00 25
1051.00 31
1050.00
42 1049.00
20 1048.00
15 1047.00
11 1046.00
6 1045.00
1 2 1 3 1 4 1 5
0 1 2 3 5( ) ( ) ( ) ( )eqVB B B B B B    
1 2 1 3 1 4 1 5
0 1 2 3 5( ) ( ) ( ) ( )eqVA A A A A A    
( , ) eq
eq
VA
f Bid Ask
VB

High frequency example – for execution
Bid-Ask Density function using equivalent volumes
19Statistics: Missing Link between Technical Analysis and Algorithmic Trading
High frequency example
Short Term Upward
Momentum
10:00:00 10:00:30 10:01:00
Trades hitting the Bid
Trades lifted on the Offer
10:01:30
20Statistics: Missing Link between Technical Analysis and Algorithmic Trading
21
Conclusion
Statistical modeling can help you reduce draw-downs in technical analysis
Statistics can help filter for high probability trades
Statistics can enhance the returns on capital deployed
Technical analysis can be used for entry / exits and statistics can be used
for filtering those entries and exits
Statistics can help you re-fine your stop losses and portfolio optimization
Statistics can help in making trade execution better and reduce slippages
per trade
Statistics: Missing Link between Technical Analysis and Algorithmic Trading
22
Recommended referrals
Prop trading
• Statistical Arbitrage:
Algorithmic Trading
Insights and Techniques
by Andrew Pole
• High-Frequency Trading: A
Guide to Algorithmic
Strategies and Trading
Systems by Irene Aldridge
• The Encyclopedia of
Trading Strategies by
Jeffrey Owen and Donna
McCormick
Agency trading
• Algorithmic Trading and
DMA: An introduction to
direct access trading
strategies by Barry
Johnson
• Quantitative Trading:
How to Build Your Own
Algorithmic Trading
Business by Ernset P. Chan
Web forums
Wilmott forum:
www.wilmott.com
Nuclear Phynance:
www.nuclearphynance.com
Statistics: Missing Link between Technical Analysis and Algorithmic Trading
23
Manish Jalan
Managing Partner and Quantitative Research Head
SG Analytics, Pune/Mumbai, India

More Related Content

What's hot

The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
Quantopian
 
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
QuantInsti
 
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an..."Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
Quantopian
 

What's hot (20)

The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
 
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ..."How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
 
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
 
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
 
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
 
"Opportunities and Pitfalls in Momentum Investing" by Gary Antonacci, Author ...
"Opportunities and Pitfalls in Momentum Investing" by Gary Antonacci, Author ..."Opportunities and Pitfalls in Momentum Investing" by Gary Antonacci, Author ...
"Opportunities and Pitfalls in Momentum Investing" by Gary Antonacci, Author ...
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar ppt
 
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
 
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
 
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an..."Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
 
Quantitative Trading in Eurodollar Futures Market by Edith Mandel at QuantCon...
Quantitative Trading in Eurodollar Futures Market by Edith Mandel at QuantCon...Quantitative Trading in Eurodollar Futures Market by Edith Mandel at QuantCon...
Quantitative Trading in Eurodollar Futures Market by Edith Mandel at QuantCon...
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ..."Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
 
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D..."From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
 
Quant insti webinar on algorithmic trading for technocrats!
Quant insti webinar on algorithmic trading for technocrats!Quant insti webinar on algorithmic trading for technocrats!
Quant insti webinar on algorithmic trading for technocrats!
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency trading
 
Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
	 Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...	 Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
 
Algorithmic trading
Algorithmic tradingAlgorithmic trading
Algorithmic trading
 
Webinar Mean Reversion Strategies Presentation
Webinar Mean Reversion Strategies PresentationWebinar Mean Reversion Strategies Presentation
Webinar Mean Reversion Strategies Presentation
 
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle..."Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
 

Similar to Statistics - The Missing Link Between Technical Analysis and Algorithmic Trading by Manish Jalan at QuantCon 2016

Analyze phase lean six sigma tollgate template
Analyze phase   lean six sigma tollgate templateAnalyze phase   lean six sigma tollgate template
Analyze phase lean six sigma tollgate template
Steven Bonacorsi
 
Analyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate TemplatesAnalyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate Templates
Steven Bonacorsi
 
FIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docx
FIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docxFIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docx
FIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docx
AKHIL969626
 
QSO 510 Final Project Case Addendum Vice-president Arun.docx
QSO 510 Final Project Case Addendum  Vice-president Arun.docxQSO 510 Final Project Case Addendum  Vice-president Arun.docx
QSO 510 Final Project Case Addendum Vice-president Arun.docx
amrit47
 

Similar to Statistics - The Missing Link Between Technical Analysis and Algorithmic Trading by Manish Jalan at QuantCon 2016 (20)

Managing Earnings at Asset Light 3PLs
Managing Earnings at Asset Light 3PLsManaging Earnings at Asset Light 3PLs
Managing Earnings at Asset Light 3PLs
 
La Dove Associates -- CRM/Customer Care Consulting Overview
La Dove Associates --  CRM/Customer Care Consulting Overview La Dove Associates --  CRM/Customer Care Consulting Overview
La Dove Associates -- CRM/Customer Care Consulting Overview
 
Automated Trading
Automated TradingAutomated Trading
Automated Trading
 
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
 
AI: 強化学習の応用
AI: 強化学習の応用AI: 強化学習の応用
AI: 強化学習の応用
 
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin..."Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
 
Graphical Analysis
Graphical AnalysisGraphical Analysis
Graphical Analysis
 
Eco550 Assignment 1
Eco550 Assignment 1Eco550 Assignment 1
Eco550 Assignment 1
 
Analyze phase lean six sigma tollgate template
Analyze phase   lean six sigma tollgate templateAnalyze phase   lean six sigma tollgate template
Analyze phase lean six sigma tollgate template
 
Analyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate TemplatesAnalyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate Templates
 
Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX Protocol
 
FIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docx
FIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docxFIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docx
FIRE ADMIN UNIT 1 .orct121320#ffffff#fa951a#FFFFFF#e7b3513VERSON.docx
 
Customer Experience Management for CSPs
Customer Experience Management for CSPsCustomer Experience Management for CSPs
Customer Experience Management for CSPs
 
QSO 510 Final Project Case Addendum Vice-president Arun.docx
QSO 510 Final Project Case Addendum  Vice-president Arun.docxQSO 510 Final Project Case Addendum  Vice-president Arun.docx
QSO 510 Final Project Case Addendum Vice-president Arun.docx
 
Il ruolo chiave degli Advanced Analytics per la Supply Chain
Il ruolo chiave degli Advanced Analytics per la Supply ChainIl ruolo chiave degli Advanced Analytics per la Supply Chain
Il ruolo chiave degli Advanced Analytics per la Supply Chain
 
ACTOR - "Il ruolo chiave degli Advanced Analytics per la Supply Chain. Intel...
ACTOR -  "Il ruolo chiave degli Advanced Analytics per la Supply Chain. Intel...ACTOR -  "Il ruolo chiave degli Advanced Analytics per la Supply Chain. Intel...
ACTOR - "Il ruolo chiave degli Advanced Analytics per la Supply Chain. Intel...
 
Hedging Your Bets: Why Top FI’s are Investing in Machine Learning
Hedging Your Bets: Why Top FI’s are Investing in Machine LearningHedging Your Bets: Why Top FI’s are Investing in Machine Learning
Hedging Your Bets: Why Top FI’s are Investing in Machine Learning
 
RFP Presentation Example
RFP Presentation ExampleRFP Presentation Example
RFP Presentation Example
 
Prediction of customer propensity to churn - Telecom Industry
Prediction of customer propensity to churn - Telecom IndustryPrediction of customer propensity to churn - Telecom Industry
Prediction of customer propensity to churn - Telecom Industry
 
[MPKD1] Introduction to business analytics and simulation
[MPKD1] Introduction to business analytics and simulation[MPKD1] Introduction to business analytics and simulation
[MPKD1] Introduction to business analytics and simulation
 

More from Quantopian

"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red..."From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
Quantopian
 

More from Quantopian (20)

Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.
 
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
 
Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18
 
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,..."Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
 
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
 
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese..."Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
 
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas..."Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
 
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
 
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin..."Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
 
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo..."Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
 
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes..."Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
 
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos..."Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
 
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red..."From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
 
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael..."Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
 
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C..."Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
 
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ..."Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
 
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author..."Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
 
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr..."Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
 
"On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen...
"On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen..."On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen...
"On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen...
 

Recently uploaded

Call Girls in Yamuna Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Yamuna Vihar  (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Yamuna Vihar  (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Yamuna Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Lion One Corporate Presentation May 2024
Lion One Corporate Presentation May 2024Lion One Corporate Presentation May 2024
Lion One Corporate Presentation May 2024
 
Call Girls in Benson Town / 8250092165 Genuine Call girls with real Photos an...
Call Girls in Benson Town / 8250092165 Genuine Call girls with real Photos an...Call Girls in Benson Town / 8250092165 Genuine Call girls with real Photos an...
Call Girls in Benson Town / 8250092165 Genuine Call girls with real Photos an...
 
Certified Kala Jadu, Black magic specialist in Rawalpindi and Bangali Amil ba...
Certified Kala Jadu, Black magic specialist in Rawalpindi and Bangali Amil ba...Certified Kala Jadu, Black magic specialist in Rawalpindi and Bangali Amil ba...
Certified Kala Jadu, Black magic specialist in Rawalpindi and Bangali Amil ba...
 
Seeman_Fiintouch_LLP_Newsletter_May-2024.pdf
Seeman_Fiintouch_LLP_Newsletter_May-2024.pdfSeeman_Fiintouch_LLP_Newsletter_May-2024.pdf
Seeman_Fiintouch_LLP_Newsletter_May-2024.pdf
 
Virar Best Sex Call Girls Number-📞📞9833754194-Poorbi Nalasopara Housewife Cal...
Virar Best Sex Call Girls Number-📞📞9833754194-Poorbi Nalasopara Housewife Cal...Virar Best Sex Call Girls Number-📞📞9833754194-Poorbi Nalasopara Housewife Cal...
Virar Best Sex Call Girls Number-📞📞9833754194-Poorbi Nalasopara Housewife Cal...
 
Technology industry / Finnish economic outlook
Technology industry / Finnish economic outlookTechnology industry / Finnish economic outlook
Technology industry / Finnish economic outlook
 
Premium Call Girls Bangalore Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
Premium Call Girls Bangalore Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...Premium Call Girls Bangalore Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
Premium Call Girls Bangalore Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
cost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxcost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptx
 
Significant AI Trends for the Financial Industry in 2024 and How to Utilize Them
Significant AI Trends for the Financial Industry in 2024 and How to Utilize ThemSignificant AI Trends for the Financial Industry in 2024 and How to Utilize Them
Significant AI Trends for the Financial Industry in 2024 and How to Utilize Them
 
falcon-invoice-discounting-unlocking-prime-investment-opportunities
falcon-invoice-discounting-unlocking-prime-investment-opportunitiesfalcon-invoice-discounting-unlocking-prime-investment-opportunities
falcon-invoice-discounting-unlocking-prime-investment-opportunities
 
W.D. Gann Theory Complete Information.pdf
W.D. Gann Theory Complete Information.pdfW.D. Gann Theory Complete Information.pdf
W.D. Gann Theory Complete Information.pdf
 
Benefits & Risk Of Stock Loans
Benefits & Risk Of Stock LoansBenefits & Risk Of Stock Loans
Benefits & Risk Of Stock Loans
 
Fixed exchange rate and flexible exchange rate.pptx
Fixed exchange rate and flexible exchange rate.pptxFixed exchange rate and flexible exchange rate.pptx
Fixed exchange rate and flexible exchange rate.pptx
 
Q1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfQ1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdf
 
Vip Call Girls Rasulgada😉 Bhubaneswar 9777949614 Housewife Call Girls Servic...
Vip Call Girls Rasulgada😉  Bhubaneswar 9777949614 Housewife Call Girls Servic...Vip Call Girls Rasulgada😉  Bhubaneswar 9777949614 Housewife Call Girls Servic...
Vip Call Girls Rasulgada😉 Bhubaneswar 9777949614 Housewife Call Girls Servic...
 
20240419-SMC-submission-Annual-Superannuation-Performance-Test-–-design-optio...
20240419-SMC-submission-Annual-Superannuation-Performance-Test-–-design-optio...20240419-SMC-submission-Annual-Superannuation-Performance-Test-–-design-optio...
20240419-SMC-submission-Annual-Superannuation-Performance-Test-–-design-optio...
 
Dubai Call Girls Deira O525547819 Dubai Call Girls Bur Dubai Multiple
Dubai Call Girls Deira O525547819 Dubai Call Girls Bur Dubai MultipleDubai Call Girls Deira O525547819 Dubai Call Girls Bur Dubai Multiple
Dubai Call Girls Deira O525547819 Dubai Call Girls Bur Dubai Multiple
 
In Sharjah ௵(+971)558539980 *_௵abortion pills now available.
In Sharjah ௵(+971)558539980 *_௵abortion pills now available.In Sharjah ௵(+971)558539980 *_௵abortion pills now available.
In Sharjah ௵(+971)558539980 *_௵abortion pills now available.
 
Call Girls in Yamuna Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Yamuna Vihar  (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Yamuna Vihar  (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Yamuna Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Kurla Capable Call Girls ,07506202331, Sion Affordable Call Girls
Kurla Capable Call Girls ,07506202331, Sion Affordable Call GirlsKurla Capable Call Girls ,07506202331, Sion Affordable Call Girls
Kurla Capable Call Girls ,07506202331, Sion Affordable Call Girls
 

Statistics - The Missing Link Between Technical Analysis and Algorithmic Trading by Manish Jalan at QuantCon 2016

  • 1. Statistics: Missing Link between Technical Analysis and Algorithmic Trading Manish Jalan Managing Partner and Quantitative Research Head SG Analytics, Pune/Mumbai, India APRIL, 2016
  • 2. The statistical modeling building blocks Define End Goal Define Set of Rules Collect Data Back-test Optimize Simulate Connect to OMS Connect to Exchange Manage Risk Improve and Maintain Modeling Building 2Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 3. Why Mathematics & Statistics? Pure Technical Models Moderate ROI when model is working Large draw-downs when model stops Long stretch of continuous bleeding in returns User might lose confidence Technical & Statistical Models Superior ROI when model is working Flattish ROI when model stops Shorter stretch of continuous flattish period User can diversify and make multi-models 3Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 4. The Mathematics Data Distributions Time Series Modeling Market Microstructure 4Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 5. The Volatility 5 2 1 1 ( ) n i i x n      Volatility Is deviation from mean in daily, 5 min, 10 min etc. 5Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 6. The normal distribution Normal Distribution Most popular data distribution Standard normal distribution curve Source: Wikipedia 6Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 7. Mean ix n    Standard deviation 2 1 1 ( ) n i i x n      Variance 2 2 1 1 ( ) n i i x n      Correlation ( , ) x y Cov x y r    Beta ( , ) ( ) s p s p Cov r r Var r   The normal distribution 7Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 8. Normal vs. other distributions CAUCHY DISTRIBUTION BETA DISTRIBUTION BINOMIAL DISTRIBUTION CHI-SQUARE DISTRIBUTION LAPLACE DISTRIBUTION POISSON DISTRIBUTION EXPONENTIAL DISTRIBUTION 8Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 9. Behavior of the time-series of data – Mean reverting, Trending or Random Walk – 50-60% time series is random walk – Focus should be on the other 40% Key elements: Mean and Variance Different behaviors – Mean reverting (E.g.: Pairs Trading) – Non-mean reverting (E.g.: Trend) – Constant variance (E.g.: Pairs Trading) – Increasing variance (E.g.: Trend) Time series modeling 9Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 10. Mean and Variance 0 2 4 6 8 10 12 Constant Mean 0 2 4 6 8 10 Constant Variance 0 10 20 30 40 Increasing Mean 0 5 10 15 20 25 30 Increasing Variance 10Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 11. Mean reversion modeling Co-integration: Stationary mean and variance Time series is stationary when – The mean is constant – The variance is constant Test for co-integration – If |r| < 1, the series is stationary – If |r| = 1, it is non-stationary (Random walk) Most popular test: ADF (Augmented Dickey Fuller) If ADF < -3.2 (95% probability of co-integrated series) 1t t ty ry e  11Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 12. Variance Ratio Test: Test for variance alone Useful when mean is varying w.r.t to the time Ornstein-Uhlenbeck Process: Test for mean reversion alone Useful when only mean reversion rate matters Generic time series modeling ( ) ( ) ( ) k t t Variance r VR k k Variance r     ( )t t tdx x dt dW     12Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 13. 0.00% 2.00% 4.00% 6.00% 8.00% 10.00% 12.00% 14.00% 16.00% 18.00% 20.00% 0 10 20 30 40 50 Growth P/E Ratio Cluster analysis and PCA Grouping of similar data and pattern Useful in factor modeling PCA: To identify principal component 13Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 14. Regression -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25 2 0.659 0.720 y x R   Useful in identifying alpha-generating factors y mx c  14Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 15. 1001.50 13 1001.00 19 1000.50 2 1000.00 17 999.50 9 999.00 10 998.50 4 998.00 16 998.00 7 998.00 Last Traded Price Bid- Ask Spread Price Ask QtyBid Qty Used in UHFT, HFT, Agency Trading Market microstructure 15Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 16. Market microstructure 09:15 09:30 09:45 10:00 10:4510:3010:15 1005.00 1007.50 1004.50 1003.00 1008.00 1010.50 1009.50 5n  1006.70  2 1 ( ) 35.3 n i x     2.657  Market Price of Reliance in 5 min buckets 16Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 17. The spread ( )Spread Ticks BestAsk BestBid  ( ) ( ) 10000 ( ) 2 BestAsk BestBid Spread BP BestAsk BestBid     Spread in BP Spread in Ticks 17Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 18. 0.00% 1.00% 2.00% 3.00% 4.00% 5.00% 6.00% 7.00% 09:00 09:50 10:40 11:30 12:20 13:10 14:00 14:50 The market curve Volume / Market curve BucketVolume VolumeRatio DaysTotalVolume  18Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 19. 1055.00 2 1054.00 7 1053.00 15 1052.00 25 1051.00 31 1050.00 42 1049.00 20 1048.00 15 1047.00 11 1046.00 6 1045.00 1 2 1 3 1 4 1 5 0 1 2 3 5( ) ( ) ( ) ( )eqVB B B B B B     1 2 1 3 1 4 1 5 0 1 2 3 5( ) ( ) ( ) ( )eqVA A A A A A     ( , ) eq eq VA f Bid Ask VB  High frequency example – for execution Bid-Ask Density function using equivalent volumes 19Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 20. High frequency example Short Term Upward Momentum 10:00:00 10:00:30 10:01:00 Trades hitting the Bid Trades lifted on the Offer 10:01:30 20Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 21. 21 Conclusion Statistical modeling can help you reduce draw-downs in technical analysis Statistics can help filter for high probability trades Statistics can enhance the returns on capital deployed Technical analysis can be used for entry / exits and statistics can be used for filtering those entries and exits Statistics can help you re-fine your stop losses and portfolio optimization Statistics can help in making trade execution better and reduce slippages per trade Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 22. 22 Recommended referrals Prop trading • Statistical Arbitrage: Algorithmic Trading Insights and Techniques by Andrew Pole • High-Frequency Trading: A Guide to Algorithmic Strategies and Trading Systems by Irene Aldridge • The Encyclopedia of Trading Strategies by Jeffrey Owen and Donna McCormick Agency trading • Algorithmic Trading and DMA: An introduction to direct access trading strategies by Barry Johnson • Quantitative Trading: How to Build Your Own Algorithmic Trading Business by Ernset P. Chan Web forums Wilmott forum: www.wilmott.com Nuclear Phynance: www.nuclearphynance.com Statistics: Missing Link between Technical Analysis and Algorithmic Trading
  • 23. 23 Manish Jalan Managing Partner and Quantitative Research Head SG Analytics, Pune/Mumbai, India