SlideShare a Scribd company logo
1 of 21
Download to read offline
Machine learning in stock
    market analysis
Agenda
• Economic concepts
• Can we predict the future price of a
  stock?
• Hidden Markov Models
• Building a virtual investor
• Experimental results
• Demo: Ben Investment Assistant
• Conclusions and future work
Economic concepts
• Stock Markets
• Stock price and volume
• Other indicators
Prediction of stock prices
• Random walk and the Efficient Market
  Hypothesis
• Dow Theory
• Conclusions
Hidden Markov Models
• Intuitive description
• Example:
Building a virtual investor
     • He learns from historical financial data



     • Based on what he learned he makes
       decisions (Buy/Sell/Hold)
     • What data do we provide?
Preparing data
• We apply the EWMA financial technique
  to eliminate noise by smoothing the
  series.

• We consider for each the day the rate of
  growth by applying the natural
  logarithm for the daily return

• How do we make use of this data?
Computations
• Modeling observations: Multivariate
  Gaussian mixtures
• Re-estimations:
  – What is the probability of being at state 2
    at time 4?
  – What is the probability of being at state 2
    at time 4 at mixture 3?
  – How do we re-estimate the model?
Computations
Forward procedure:




                     Backward procedure:
Computations
Computations
The algorithm
Experimental results
• Tests conducted for 14 randomly
  selected companies from different
  sectors: financial, utilities, technology,
  services and healthcare.
• We obtained to over 100% in revenues,
  and we suffered losses only when a
  company suffered a huge depreciation
  in its stock price.
• A few examples...
Goldman Sachs (NYSE:GS)



       Above is the Goldman Sachs stock price evolution (June 07 – June 08)




       Above is the account evolution for investing in Goldman Sachs during
       June 07 – June 08 (After a year it generated a 53.3% revenue)
Royal Gold (NYSE:RGLD)



       Above is the Royal Gold stock price evolution for the testing period




       Above is the account evolution for investing in Royal Gold (It
       generated a 50.3% revenue in 97 days)
An extreme case I (NYSE:MBI)



        Above is the MBIA stock price evolution for June 07 – June 08




        Above is the account evolution for investing in MBIA. The system does
        a good job at minimizing losses (only 26.2% loss)
An extreme case II (NYSE:MBI)




       Above is the MBIA stock price evolution for June 07 – June 08




       Using Auto-regression trees. A 74.2% loss
Demo: Investing in Google

      • Ben Investment Assistant was done
      using:
         • Windows Presentation
         Foundation, Sql Server, Analysis
         Services, ADOMD.NET, AMO, .NET
         3.5, C# 3.0, Linq to SQL on
         Windows Vista Business.
         • 3-tier architecture, highly scalable
Conclusions
• Due to our results we can invalidate the
  assumption that past data has no use.

• Because the algorithm behaves like an
  investor we can have losses if the
  company suffers a severe depreciation
  of value.
Future work
• If we let Ben make decisions on a
  diversified portfolio we might almost be
  certain of a profitable outcome.

• We can expand the vector of
  observations to include more data (for
  example a news index calculated with
  text mining and Google search API)
Thank you!

More Related Content

What's hot

Quantitative methods for choosing projects net present
Quantitative methods for choosing projects   net presentQuantitative methods for choosing projects   net present
Quantitative methods for choosing projects net presentNadya Safitri Dongoran
 
QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal Rate Of Return (IRR)
QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal RateOf Return (IRR)QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal RateOf Return (IRR)
QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal Rate Of Return (IRR) Nadya Safitri Dongoran
 
"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 ExtractAlphaQuantopian
 
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.Quantopian
 
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Quantopian
 
Forecasting shivam
Forecasting shivamForecasting shivam
Forecasting shivamShivam Kumar
 
Sentiment-Driven Financial Intelligence
Sentiment-Driven Financial IntelligenceSentiment-Driven Financial Intelligence
Sentiment-Driven Financial IntelligenceJohn Liu
 
Jiaxin-resume
Jiaxin-resumeJiaxin-resume
Jiaxin-resumeJiaxin Xu
 
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 2016Quantopian
 
Stock Market Trends Prediction after Earning Release.pptx
Stock Market Trends Prediction after Earning Release.pptxStock Market Trends Prediction after Earning Release.pptx
Stock Market Trends Prediction after Earning Release.pptxChen Qian
 
Week3 day5slide
Week3 day5slideWeek3 day5slide
Week3 day5slideRohitKar2
 
"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...Quantopian
 
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016Quantopian
 
"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 ...Quantopian
 
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and..."Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...Quantopian
 
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...Quantopian
 
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin..."Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...Quantopian
 
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Quantopian
 
Mutual funds-products- f
Mutual funds-products- fMutual funds-products- f
Mutual funds-products- fIshanDhoble1
 

What's hot (20)

Quantitative methods for choosing projects net present
Quantitative methods for choosing projects   net presentQuantitative methods for choosing projects   net present
Quantitative methods for choosing projects net present
 
QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal Rate Of Return (IRR)
QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal RateOf Return (IRR)QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal RateOf Return (IRR)
QUANTITATIVE METHODS FOR CHOOSING PROJECTS - Internal Rate Of Return (IRR)
 
"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
 
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.
 
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
 
Forecasting shivam
Forecasting shivamForecasting shivam
Forecasting shivam
 
Sentiment-Driven Financial Intelligence
Sentiment-Driven Financial IntelligenceSentiment-Driven Financial Intelligence
Sentiment-Driven Financial Intelligence
 
Jiaxin-resume
Jiaxin-resumeJiaxin-resume
Jiaxin-resume
 
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
 
Stock Market Trends Prediction after Earning Release.pptx
Stock Market Trends Prediction after Earning Release.pptxStock Market Trends Prediction after Earning Release.pptx
Stock Market Trends Prediction after Earning Release.pptx
 
Week3 day5slide
Week3 day5slideWeek3 day5slide
Week3 day5slide
 
"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...
 
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
 
Ch 8
Ch 8Ch 8
Ch 8
 
"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 ...
 
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and..."Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
"Trading Without Regret" by Dr. Michael Kearns, Professor at the Computer and...
 
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
 
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin..."Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
 
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
 
Mutual funds-products- f
Mutual funds-products- fMutual funds-products- f
Mutual funds-products- f
 

Similar to Stock Market Analysis Markov Models

Using the ISBSG data to improve your organization success - van Heeringen (Me...
Using the ISBSG data to improve your organization success - van Heeringen (Me...Using the ISBSG data to improve your organization success - van Heeringen (Me...
Using the ISBSG data to improve your organization success - van Heeringen (Me...Harold van Heeringen
 
Quant Foundry Labs - Low Probability Defaults
Quant Foundry Labs - Low Probability DefaultsQuant Foundry Labs - Low Probability Defaults
Quant Foundry Labs - Low Probability DefaultsDavidkerrkelly
 
Step by Step Guide to Revenue Growth
Step by Step Guide to Revenue GrowthStep by Step Guide to Revenue Growth
Step by Step Guide to Revenue Growthsaastr
 
2008 Investment Symposium Zhang 3 24 08
2008 Investment Symposium Zhang 3 24 082008 Investment Symposium Zhang 3 24 08
2008 Investment Symposium Zhang 3 24 08Frank Zhang
 
Marketing Analytics at IBM - export
Marketing Analytics at IBM - exportMarketing Analytics at IBM - export
Marketing Analytics at IBM - exportSpyros Kontogiorgis
 
Using Machine Learning to Accelerate Revenue
Using Machine Learning to Accelerate Revenue Using Machine Learning to Accelerate Revenue
Using Machine Learning to Accelerate Revenue Paul Johnston
 
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...Minitab, LLC
 
AI paper in IIM conference
AI paper in IIM conference AI paper in IIM conference
AI paper in IIM conference Jyotishko Biswas
 
STOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUES
STOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUESSTOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUES
STOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUESIRJET Journal
 
IRJET- Finding Optimal Skyline Product Combinations Under Price Promotion
IRJET- Finding Optimal Skyline Product Combinations Under Price PromotionIRJET- Finding Optimal Skyline Product Combinations Under Price Promotion
IRJET- Finding Optimal Skyline Product Combinations Under Price PromotionIRJET Journal
 
Empowering Innovation Portfolio Decision-Making through Simulation
Empowering Innovation Portfolio Decision-Making through SimulationEmpowering Innovation Portfolio Decision-Making through Simulation
Empowering Innovation Portfolio Decision-Making through SimulationSopheon
 
Stop Flying Blind! Quantifying Risk with Monte Carlo Simulation
Stop Flying Blind! Quantifying Risk with Monte Carlo SimulationStop Flying Blind! Quantifying Risk with Monte Carlo Simulation
Stop Flying Blind! Quantifying Risk with Monte Carlo SimulationSam McAfee
 
GrowUP - A Modern way of Trading
GrowUP - A Modern way of TradingGrowUP - A Modern way of Trading
GrowUP - A Modern way of TradingIRJET Journal
 
Smart solutions for productivity gain IQA conference 2017
Smart solutions for productivity gain   IQA conference 2017Smart solutions for productivity gain   IQA conference 2017
Smart solutions for productivity gain IQA conference 2017Steve Franklin
 
Leveraging Data Analysis for Sales
Leveraging Data Analysis for SalesLeveraging Data Analysis for Sales
Leveraging Data Analysis for SalesAditya Ratnaparkhi
 
IRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning ApproacheIRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning ApproacheIRJET Journal
 
ISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization success
ISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization successISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization success
ISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization successHarold van Heeringen
 

Similar to Stock Market Analysis Markov Models (20)

Stock Market Analysis
Stock Market AnalysisStock Market Analysis
Stock Market Analysis
 
Using the ISBSG data to improve your organization success - van Heeringen (Me...
Using the ISBSG data to improve your organization success - van Heeringen (Me...Using the ISBSG data to improve your organization success - van Heeringen (Me...
Using the ISBSG data to improve your organization success - van Heeringen (Me...
 
Quant Foundry Labs - Low Probability Defaults
Quant Foundry Labs - Low Probability DefaultsQuant Foundry Labs - Low Probability Defaults
Quant Foundry Labs - Low Probability Defaults
 
Step by Step Guide to Revenue Growth
Step by Step Guide to Revenue GrowthStep by Step Guide to Revenue Growth
Step by Step Guide to Revenue Growth
 
2008 Investment Symposium Zhang 3 24 08
2008 Investment Symposium Zhang 3 24 082008 Investment Symposium Zhang 3 24 08
2008 Investment Symposium Zhang 3 24 08
 
Marketing Analytics at IBM - export
Marketing Analytics at IBM - exportMarketing Analytics at IBM - export
Marketing Analytics at IBM - export
 
Using Machine Learning to Accelerate Revenue
Using Machine Learning to Accelerate Revenue Using Machine Learning to Accelerate Revenue
Using Machine Learning to Accelerate Revenue
 
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
 
AI paper in IIM conference
AI paper in IIM conference AI paper in IIM conference
AI paper in IIM conference
 
STOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUES
STOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUESSTOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUES
STOCK MARKET ANALYZING AND PREDICTION USING MACHINE LEARNING TECHNIQUES
 
IRJET- Finding Optimal Skyline Product Combinations Under Price Promotion
IRJET- Finding Optimal Skyline Product Combinations Under Price PromotionIRJET- Finding Optimal Skyline Product Combinations Under Price Promotion
IRJET- Finding Optimal Skyline Product Combinations Under Price Promotion
 
Empowering Innovation Portfolio Decision-Making through Simulation
Empowering Innovation Portfolio Decision-Making through SimulationEmpowering Innovation Portfolio Decision-Making through Simulation
Empowering Innovation Portfolio Decision-Making through Simulation
 
Stop Flying Blind! Quantifying Risk with Monte Carlo Simulation
Stop Flying Blind! Quantifying Risk with Monte Carlo SimulationStop Flying Blind! Quantifying Risk with Monte Carlo Simulation
Stop Flying Blind! Quantifying Risk with Monte Carlo Simulation
 
Strategic approachppg v02
Strategic approachppg v02Strategic approachppg v02
Strategic approachppg v02
 
GrowUP - A Modern way of Trading
GrowUP - A Modern way of TradingGrowUP - A Modern way of Trading
GrowUP - A Modern way of Trading
 
Smart solutions for productivity gain IQA conference 2017
Smart solutions for productivity gain   IQA conference 2017Smart solutions for productivity gain   IQA conference 2017
Smart solutions for productivity gain IQA conference 2017
 
Leveraging Data Analysis for Sales
Leveraging Data Analysis for SalesLeveraging Data Analysis for Sales
Leveraging Data Analysis for Sales
 
I Know First Presentation (May 2016)
I Know First Presentation (May 2016)I Know First Presentation (May 2016)
I Know First Presentation (May 2016)
 
IRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning ApproacheIRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning Approache
 
ISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization success
ISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization successISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization success
ISMA 9 - van Heeringen - Using IFPUG and ISBSG to improve organization success
 

Recently uploaded

APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Pereraictsugar
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdfKhaled Al Awadi
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
PB Project 1: Exploring Your Personal Brand
PB Project 1: Exploring Your Personal BrandPB Project 1: Exploring Your Personal Brand
PB Project 1: Exploring Your Personal BrandSharisaBethune
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMVoces Mineras
 
Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.Anamaria Contreras
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Appkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxAppkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxappkodes
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditNhtLNguyn9
 

Recently uploaded (20)

APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Perera
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
Call Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North GoaCall Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North Goa
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...
No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...
No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...
 
PB Project 1: Exploring Your Personal Brand
PB Project 1: Exploring Your Personal BrandPB Project 1: Exploring Your Personal Brand
PB Project 1: Exploring Your Personal Brand
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQM
 
Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.Traction part 2 - EOS Model JAX Bridges.
Traction part 2 - EOS Model JAX Bridges.
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Appkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxAppkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptx
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal audit
 

Stock Market Analysis Markov Models

  • 1. Machine learning in stock market analysis
  • 2. Agenda • Economic concepts • Can we predict the future price of a stock? • Hidden Markov Models • Building a virtual investor • Experimental results • Demo: Ben Investment Assistant • Conclusions and future work
  • 3. Economic concepts • Stock Markets • Stock price and volume • Other indicators
  • 4. Prediction of stock prices • Random walk and the Efficient Market Hypothesis • Dow Theory • Conclusions
  • 5. Hidden Markov Models • Intuitive description • Example:
  • 6. Building a virtual investor • He learns from historical financial data • Based on what he learned he makes decisions (Buy/Sell/Hold) • What data do we provide?
  • 7. Preparing data • We apply the EWMA financial technique to eliminate noise by smoothing the series. • We consider for each the day the rate of growth by applying the natural logarithm for the daily return • How do we make use of this data?
  • 8. Computations • Modeling observations: Multivariate Gaussian mixtures • Re-estimations: – What is the probability of being at state 2 at time 4? – What is the probability of being at state 2 at time 4 at mixture 3? – How do we re-estimate the model?
  • 9. Computations Forward procedure: Backward procedure:
  • 13. Experimental results • Tests conducted for 14 randomly selected companies from different sectors: financial, utilities, technology, services and healthcare. • We obtained to over 100% in revenues, and we suffered losses only when a company suffered a huge depreciation in its stock price. • A few examples...
  • 14. Goldman Sachs (NYSE:GS) Above is the Goldman Sachs stock price evolution (June 07 – June 08) Above is the account evolution for investing in Goldman Sachs during June 07 – June 08 (After a year it generated a 53.3% revenue)
  • 15. Royal Gold (NYSE:RGLD) Above is the Royal Gold stock price evolution for the testing period Above is the account evolution for investing in Royal Gold (It generated a 50.3% revenue in 97 days)
  • 16. An extreme case I (NYSE:MBI) Above is the MBIA stock price evolution for June 07 – June 08 Above is the account evolution for investing in MBIA. The system does a good job at minimizing losses (only 26.2% loss)
  • 17. An extreme case II (NYSE:MBI) Above is the MBIA stock price evolution for June 07 – June 08 Using Auto-regression trees. A 74.2% loss
  • 18. Demo: Investing in Google • Ben Investment Assistant was done using: • Windows Presentation Foundation, Sql Server, Analysis Services, ADOMD.NET, AMO, .NET 3.5, C# 3.0, Linq to SQL on Windows Vista Business. • 3-tier architecture, highly scalable
  • 19. Conclusions • Due to our results we can invalidate the assumption that past data has no use. • Because the algorithm behaves like an investor we can have losses if the company suffers a severe depreciation of value.
  • 20. Future work • If we let Ben make decisions on a diversified portfolio we might almost be certain of a profitable outcome. • We can expand the vector of observations to include more data (for example a news index calculated with text mining and Google search API)