SlideShare a Scribd company logo
1 of 28
Download to read offline
1
2




    • Almost all players on the market (brokerage firm,
    banks, wall street) use technical analysis for the
    study of stock price evolution, mostly as a
    complement for fundamental analysis.
    • Even an expert human has a limited ability in
    analyzing large quantities of correlations between
    useful data's without the help of a computer.
    • Increasing computational power makes way for a
    new breed of expert analysts: Machine Learning
    algorithms.
    • Of course, the human still plays an important role
    in valuing, guiding and interpreting the results.
3




    • The human is not a good analyzing machine by
    default:
      •People have no conscious experience of most of what is
      happening in their minds.
      • We tend to perceive what we expect to perceive.
      • Mind sets for quickly and are resisting to change.
      • New information is assimilated to existing images.
      • “When the facts change, I change. And what do you do,
      sir?” Keynes
4




     To offer you an image of what the stock market is
     To answer the question: Can I predict the price of
    a stock and if yes, to what extent?
     To provide knowledge of some of the latest
    machine learning methods you can use in order to
    make profits on the stock market
5




     The Stock Market
     Is it possible to predict the future price of a stock?
6




     The Stock Market
     Is it possible to predict the future price of a stock?
     Stock Market Analysis: Schools
     Fundamental Analysis
     Technical Analysis
7




     The Stock Market
     Is it possible to predict the future price of a stock?
     Stock Market Analysis: Schools
     Fundamental Analysis
     Technical Analysis
     Designing a Hidden Markov Model for this problem
8




     The Stock Market
     Is it possible to predict the future price of a stock?
     Stock Market Analysis: Schools
     Fundamental Analysis
     Technical Analysis
     Designing a Hidden Markov Model for this problem
     SQL Server Analysis Services
9




     The Stock Market
     Is it possible to predict the future price of a stock?
     Stock Market Analysis: Schools
     Fundamental Analysis
     Technical Analysis
     Designing a Hidden Markov Model for this problem
     SQL Server Analysis Services
     What’s next?
     Review
10




     • Earning Per Share
     • (Free) Cash Flow per Share
     • P/E Ratio
     • Trends
     • Inflation/Deflation
     • Incidental transactions
     • Demography
     • Liquidity
     • Volume
     • Market sentiment
     • Industry economic strength
11




     • Efficient Market Hypothesis
     • Dow Theory
     • Analysis
12




     • If the value of a firm can be related to its financial
     characteristics (growth prospects, risk profile and
     cash flows) then we can see if the stock is under or
     overvalued.
     • Assumptions:
        • The relationship between value and underlying financial
        factors can be measured
        • The relationship is stable over time
        • Deviations from the relationship are corrected in a
        reasonable time period
13




     quot;We try to stick to businesses we believe we
     understand. That means they must be relatively
     simple and stable in character. If a business is
     complex and subject to constant change, we're not
     smart enough to predict future cash flows.“ W. B.
14




     • Assumptions
       • Stock price reflects everything that has or could affect a
       the company (including fundamental factors and market
       psychology), removing the need to consider these factors
       separately.
       • Price movements follow established trends.
       • History repeat itself.
15




     • Problems
       • Patterns of financial time series are dynamic and
       complex.
       • We need to balance between long-term trends and
       short-term sideways.
       • We need to determine usefulness of information.
16




     •We need:
       • A financial expert could apply different unknown
       strategies. We can model this by considering a set of
       states where each state is a unknown strategy
       • We can make different observations regarding the time
       series evolution with each strategy. We will need set of
       observations K. Observations could be Rise, Drop, Large
       Rise …
       • Which strategy we will first apply? A vector of the initial
       state distribution probability.
       • Which strategy is most likely to be applied next? A
       matrix that contain transition probabilities between states
       (strategies).
17
18




     • Problems
       • One observation like the return rate, or LR is not
       enough. We need to feed our machine with vectors of
       observations containing for example price and volume.
       •Also how do we model data more accurately? For each
       state we could build more probability functions that
       describe the data (from different views); also we need to
       quantify all of this probability distributions and to estimate
       each distribution’s weight into the final quantity.
       • How to smooth the time series, do we eliminate noise
       than can confuse the interpretation?
       • More recent data should be more valuable, that is more
       sensitive. But if the recent data is in highly volatile period
       how do we treat this situation so the model wouldn’t be
       affected in the training process?
19




     • To model data we will use a Gaussian mixture
     model at each state. A mixture model combines
     more probability density functions that have the
     form of a Gaussian distribution.
     • For each adjustable distribution we will assign
     adjustable weights to give more credit to some
     distribution, that, at the given time period, predicts
     more accurately.
20
21
22




     • The Gaussian mixture must be multivariate in
     order to accept a vector of observation with a length
     higher the 1.
     • We will use the Gaussian Mixture as a forecast
     generator.
     •What are the parameters for re-estimation?
       • For each Gaussian distribution used in each mixture we
       need to re-estimate the mean, covariance matrix and the
       weight attached that describes it best, based on the
       training cases
       • A transition probability matrix between states
23




     • Now that we found a way to model more
     accurately the data, we ask:
       • At training, how do we capture recent trends?
       • We use a training pool that drops the oldest data when
       a new one is available
       • In financial time series recent data has more value than
       old data. How do we add more value to the recent data?
       • We give her more weight.
       • Stock market time series are highly volatile. How do we
       smooth the series?
       • Using an exponential moving average method.
24




     • Exponential Moving Average


     • Solves the problem of the importance of recent
     data and the problem of needing to smooth the time
     series in order to eliminate misleading information
     and concentrate on trends.
     • The sensitivity of recent data can be controlled
     using the Dow Jones Composite Index, which is a
     less volatile index.
25




     • Re-estimation of parameters
26




     •
              BI Dev         Your Application
              Studio
              (Visual
              Studio)         OLE DB/ ADOMD/ XMLA
                                                     App
         Deploy                                      Data


         Analysis Services   Mining Model
         Server
                             Data Mining Algorithm           Data
                                                            Source
27




     • Try a different approach other than Gaussian
     Mixture
     • More work on the EM algorithm
     • HMM versus Microsoft Time Series in SQL 2008
     (ARIMA + ART)
28




      Review
      Questions

More Related Content

What's hot

What's hot (20)

Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised Learning
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUESTOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price Prediction
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction
 
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSSTOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
 
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET-  	  Future Stock Price Prediction using LSTM Machine Learning AlgorithmIRJET-  	  Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
 
Stock market analysis
Stock market analysisStock market analysis
Stock market analysis
 
TREND ANALYSIS IN STOCK MARKET
TREND ANALYSIS IN STOCK MARKET TREND ANALYSIS IN STOCK MARKET
TREND ANALYSIS IN STOCK MARKET
 
Data visualization
Data visualizationData visualization
Data visualization
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learning
 
1. Data Analytics-introduction
1. Data Analytics-introduction1. Data Analytics-introduction
1. Data Analytics-introduction
 
Presentation1
Presentation1Presentation1
Presentation1
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
 
Business analytics and data visualisation
Business analytics and data visualisationBusiness analytics and data visualisation
Business analytics and data visualisation
 
Statistics for data science
Statistics for data science Statistics for data science
Statistics for data science
 

Similar to Stock Market Analysis

Stock Market Analysis Markov Models
Stock Market Analysis Markov ModelsStock Market Analysis Markov Models
Stock Market Analysis Markov Models
Gabriel Policiuc
 
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
QuantInsti
 
Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008
yamanote
 

Similar to Stock Market Analysis (20)

Graphs and Financial Services Analytics
Graphs and Financial Services AnalyticsGraphs and Financial Services Analytics
Graphs and Financial Services Analytics
 
Cmt learning objective 37 system trading & testing - copy
Cmt learning objective 37  system trading & testing - copyCmt learning objective 37  system trading & testing - copy
Cmt learning objective 37 system trading & testing - copy
 
System Design & testing
System Design  & testing System Design  & testing
System Design & testing
 
Stock Market Analysis Markov Models
Stock Market Analysis Markov ModelsStock Market Analysis Markov Models
Stock Market Analysis Markov Models
 
Applications of Machine Learning in High Frequency Trading
Applications of Machine Learning in High Frequency TradingApplications of Machine Learning in High Frequency Trading
Applications of Machine Learning in High Frequency Trading
 
Navigant qfas april 2015
Navigant qfas april 2015Navigant qfas april 2015
Navigant qfas april 2015
 
Navigant qfas april 2015
Navigant qfas april 2015Navigant qfas april 2015
Navigant qfas april 2015
 
Navigant qfas april 2015
Navigant qfas april 2015Navigant qfas april 2015
Navigant qfas april 2015
 
Predicting House Prices: A Machine Learning Approach
Predicting House Prices: A Machine Learning ApproachPredicting House Prices: A Machine Learning Approach
Predicting House Prices: A Machine Learning Approach
 
Cmt learning objective 3 time based trend calculation
Cmt learning objective 3   time based trend calculationCmt learning objective 3   time based trend calculation
Cmt learning objective 3 time based trend calculation
 
Predictive data mining
Predictive data miningPredictive data mining
Predictive data mining
 
Case study of s&p 500
Case study of s&p 500Case study of s&p 500
Case study of s&p 500
 
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
 
Cmt learning objective 36 case study of s&p 500
Cmt learning objective 36   case study of s&p 500Cmt learning objective 36   case study of s&p 500
Cmt learning objective 36 case study of s&p 500
 
Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008
 
cas_washington_nov2010_web
cas_washington_nov2010_webcas_washington_nov2010_web
cas_washington_nov2010_web
 
Knowledge Management Maturity Models and Phased Measurement
Knowledge Management Maturity Models and Phased MeasurementKnowledge Management Maturity Models and Phased Measurement
Knowledge Management Maturity Models and Phased Measurement
 
Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Production model lifecycle management 2016 09
Production model lifecycle management 2016 09
 
Quant Foundry Labs - Low Probability Defaults
Quant Foundry Labs - Low Probability DefaultsQuant Foundry Labs - Low Probability Defaults
Quant Foundry Labs - Low Probability Defaults
 
What we do; predictive and prescriptive analytics
What we do; predictive and prescriptive analyticsWhat we do; predictive and prescriptive analytics
What we do; predictive and prescriptive analytics
 

Recently uploaded

Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
lizamodels9
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
daisycvs
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Anamikakaur10
 
Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...
Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...
Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...
lizamodels9
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 

Recently uploaded (20)

Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceMalegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...
Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...
Call Girls From Raj Nagar Extension Ghaziabad❤️8448577510 ⊹Best Escorts Servi...
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLWhitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 

Stock Market Analysis

  • 1. 1
  • 2. 2 • Almost all players on the market (brokerage firm, banks, wall street) use technical analysis for the study of stock price evolution, mostly as a complement for fundamental analysis. • Even an expert human has a limited ability in analyzing large quantities of correlations between useful data's without the help of a computer. • Increasing computational power makes way for a new breed of expert analysts: Machine Learning algorithms. • Of course, the human still plays an important role in valuing, guiding and interpreting the results.
  • 3. 3 • The human is not a good analyzing machine by default: •People have no conscious experience of most of what is happening in their minds. • We tend to perceive what we expect to perceive. • Mind sets for quickly and are resisting to change. • New information is assimilated to existing images. • “When the facts change, I change. And what do you do, sir?” Keynes
  • 4. 4  To offer you an image of what the stock market is  To answer the question: Can I predict the price of a stock and if yes, to what extent?  To provide knowledge of some of the latest machine learning methods you can use in order to make profits on the stock market
  • 5. 5  The Stock Market  Is it possible to predict the future price of a stock?
  • 6. 6  The Stock Market  Is it possible to predict the future price of a stock?  Stock Market Analysis: Schools  Fundamental Analysis  Technical Analysis
  • 7. 7  The Stock Market  Is it possible to predict the future price of a stock?  Stock Market Analysis: Schools  Fundamental Analysis  Technical Analysis  Designing a Hidden Markov Model for this problem
  • 8. 8  The Stock Market  Is it possible to predict the future price of a stock?  Stock Market Analysis: Schools  Fundamental Analysis  Technical Analysis  Designing a Hidden Markov Model for this problem  SQL Server Analysis Services
  • 9. 9  The Stock Market  Is it possible to predict the future price of a stock?  Stock Market Analysis: Schools  Fundamental Analysis  Technical Analysis  Designing a Hidden Markov Model for this problem  SQL Server Analysis Services  What’s next?  Review
  • 10. 10 • Earning Per Share • (Free) Cash Flow per Share • P/E Ratio • Trends • Inflation/Deflation • Incidental transactions • Demography • Liquidity • Volume • Market sentiment • Industry economic strength
  • 11. 11 • Efficient Market Hypothesis • Dow Theory • Analysis
  • 12. 12 • If the value of a firm can be related to its financial characteristics (growth prospects, risk profile and cash flows) then we can see if the stock is under or overvalued. • Assumptions: • The relationship between value and underlying financial factors can be measured • The relationship is stable over time • Deviations from the relationship are corrected in a reasonable time period
  • 13. 13 quot;We try to stick to businesses we believe we understand. That means they must be relatively simple and stable in character. If a business is complex and subject to constant change, we're not smart enough to predict future cash flows.“ W. B.
  • 14. 14 • Assumptions • Stock price reflects everything that has or could affect a the company (including fundamental factors and market psychology), removing the need to consider these factors separately. • Price movements follow established trends. • History repeat itself.
  • 15. 15 • Problems • Patterns of financial time series are dynamic and complex. • We need to balance between long-term trends and short-term sideways. • We need to determine usefulness of information.
  • 16. 16 •We need: • A financial expert could apply different unknown strategies. We can model this by considering a set of states where each state is a unknown strategy • We can make different observations regarding the time series evolution with each strategy. We will need set of observations K. Observations could be Rise, Drop, Large Rise … • Which strategy we will first apply? A vector of the initial state distribution probability. • Which strategy is most likely to be applied next? A matrix that contain transition probabilities between states (strategies).
  • 17. 17
  • 18. 18 • Problems • One observation like the return rate, or LR is not enough. We need to feed our machine with vectors of observations containing for example price and volume. •Also how do we model data more accurately? For each state we could build more probability functions that describe the data (from different views); also we need to quantify all of this probability distributions and to estimate each distribution’s weight into the final quantity. • How to smooth the time series, do we eliminate noise than can confuse the interpretation? • More recent data should be more valuable, that is more sensitive. But if the recent data is in highly volatile period how do we treat this situation so the model wouldn’t be affected in the training process?
  • 19. 19 • To model data we will use a Gaussian mixture model at each state. A mixture model combines more probability density functions that have the form of a Gaussian distribution. • For each adjustable distribution we will assign adjustable weights to give more credit to some distribution, that, at the given time period, predicts more accurately.
  • 20. 20
  • 21. 21
  • 22. 22 • The Gaussian mixture must be multivariate in order to accept a vector of observation with a length higher the 1. • We will use the Gaussian Mixture as a forecast generator. •What are the parameters for re-estimation? • For each Gaussian distribution used in each mixture we need to re-estimate the mean, covariance matrix and the weight attached that describes it best, based on the training cases • A transition probability matrix between states
  • 23. 23 • Now that we found a way to model more accurately the data, we ask: • At training, how do we capture recent trends? • We use a training pool that drops the oldest data when a new one is available • In financial time series recent data has more value than old data. How do we add more value to the recent data? • We give her more weight. • Stock market time series are highly volatile. How do we smooth the series? • Using an exponential moving average method.
  • 24. 24 • Exponential Moving Average • Solves the problem of the importance of recent data and the problem of needing to smooth the time series in order to eliminate misleading information and concentrate on trends. • The sensitivity of recent data can be controlled using the Dow Jones Composite Index, which is a less volatile index.
  • 25. 25 • Re-estimation of parameters
  • 26. 26 • BI Dev Your Application Studio (Visual Studio) OLE DB/ ADOMD/ XMLA App Deploy Data Analysis Services Mining Model Server Data Mining Algorithm Data Source
  • 27. 27 • Try a different approach other than Gaussian Mixture • More work on the EM algorithm • HMM versus Microsoft Time Series in SQL 2008 (ARIMA + ART)
  • 28. 28  Review  Questions