SlideShare a Scribd company logo
1 of 37
Deep	
  Learning	
  for	
  Stock	
  
Prediction
Yue	
  Zhang
My	
  research	
  areas
Machine Learning
Natural Language Processing
Applications
Text synthesis
Machine translation
Information extractionMarket prediction
Sentiment analysis
Syntactic analysis
This	
  talk
• Reading	
  news	
  from	
  the	
  Internet	
  and	
  
predicting	
  the	
  stock	
  market
Outline
• Event-­‐driven	
  predict
• Two	
  extensions
Introduction
• Is	
  it	
  possible?
– Random	
  walk	
  theory
– Efficient	
  market	
  hypothesis
– Human/algorithm	
  trading
• Examples
– Shares	
  of	
  Apple	
  Inc.	
  fell	
  as	
  trading	
  began	
  in	
  New	
  York	
  
on	
  Tuesday	
  morning,	
  the	
  day	
  after	
  former	
  CEO	
  Steve	
  
Jobs	
  passed	
  away
– Google’s	
  stock	
  falls	
  after	
  grim	
  earnings	
  come	
  out	
  early
Why	
  events?
• Previous	
  work
– Bag-­‐of-­‐words
– Named	
  Entities
– Noun	
  Phrases
• Examples
– Oracle	
  Corp	
  would	
  sue	
  Google	
  Inc.,	
  claiming	
  Google’s	
  
Android	
  operating	
  system…
– Microsoft	
  agrees	
  to	
  buy	
  Nokia’s	
  mobile	
  phone	
  
business	
  for	
  $	
  7.2	
  billion.
Method
• Event	
  Representation
– E=(O1,	
  P,	
  O2,	
  T)
– Actor
– Event
– Object
– Time
Method
• Event	
  Extraction
– Syntactic	
  parsing
– Open	
  information	
  extraction
Method
• Event	
  Generalization
– First,	
  we	
  construct	
  a	
  morphological	
  analysis	
  tool	
  
based	
  on	
  the	
  WordNet stemmer	
  to	
  extract	
  lemma	
  
forms	
  of	
  inflected	
  words
– Second,	
  we	
  generalize	
  each	
  verb	
  to	
  its	
  class	
  name	
  in	
  
VerbNet
• For	
  example
– Instant	
  view:	
  Private	
  sector	
  adds	
  114,000	
  jobs	
  in	
  July.
– (Private	
  sector,	
  adds,	
  114,000	
  jobs)
– (private	
  sector,	
  multiply_class,	
  114,000	
  job)
Method
• Model
– Input:	
  events
– Output:	
  two-­‐way	
  movement
• Training:	
  historical	
  data
• Testing:	
  coming	
  data
Method
• Prediction	
  Model
– Linear	
  model
• Most	
  previous	
  work	
  uses	
  linear	
  models	
  to	
  predict	
  the	
  stock	
  
market.	
  To	
  make	
  direct	
  comparisons,	
  this	
  paper	
  constructs	
  a	
  
linear	
  prediction	
  model	
  by	
  using	
  SVM	
  with	
  linear	
  kernel
– Nonlinear	
  model
• Intuitively,	
  the	
  relationship	
  between	
  events	
  and	
  the	
  stock	
  
market	
  may	
  be	
  more	
  complex	
  than	
  linear,	
  due	
  to	
  hidden	
  and	
  
indirect	
  relationships.	
  We	
  exploit	
  a	
  deep	
  neural	
  network	
  
model,	
  the	
  hidden	
  layers	
  of	
  which	
  is	
  useful	
  for	
  learning	
  such	
  
hidden	
  relationships
…
News	
  documents
φ1
Class	
  +1
The	
  polarity	
  of	
  the	
  stock	
  
price	
  movement	
   is	
  
positive
Class	
  -­‐1
The	
  polarity	
  of	
  the	
  stock	
  
price	
  movement	
   is	
  
negative
Input	
  
Layer
Output	
  
Layer
Hidden	
  
Layers
…
…
φ2 φ3 φM
Method
• Feature	
  Representation
– Bag-­‐of-­‐words
• TF*IDF
– Events
• O1,	
  P,	
  O2,	
  O1	
  +	
  P,	
  P	
  +	
  O2,	
  O1	
  +	
  P	
  +	
  O2
• For	
  Example
– (Microsoft,	
  buy,	
  Nokia's	
  mobile	
  phone	
  business)
– (#arg1=Microsoft,	
  #action=buy,	
  #arg2= Nokia's	
  mobile	
  phone	
  
business,	
  #arg1_action=Microsoft	
  buy,	
  #action_arg2=buy	
  
Nokia's	
  mobile	
  phone	
  business,	
  #arg1_action_arg2=	
  
Microsoft	
  buy	
  Nokia's	
  mobile	
  phone	
  business)
Experiments
• Data	
  Description
– We	
  use	
  publicly	
  available	
  financial	
  news	
  from	
  Reuters	
  
and	
  Bloomberg	
  over	
  the	
  period	
  from	
  October	
  2006	
  to	
  
November	
  2013.	
  This	
  time	
  span	
  witnesses	
  a	
  severe	
  
economic	
  downturn	
  in	
  2007-­‐2010,	
  followed	
  by	
  a	
  
modest	
  recovery	
  in	
  2011-­‐2013.	
  There	
  are	
  106,521	
  
documents	
  in	
  total	
  from	
  Reuters	
  News	
  and	
  447,145	
  
from	
  Bloomberg	
  News.
– We	
  mainly	
  focus	
  on	
  predicting	
  the	
  Standard	
  &Poor's	
  
500	
  stocks	
  (S&P	
  500)	
  index,	
  obtaining	
  indices	
  and	
  
stock	
  price	
  from	
  Yahoo	
  Finance.
Experiments
• Evaluation	
  Metrics
– Accuracy	
  and	
  MCC
• Overall	
  Results
Experiments
• Experiments	
  with	
  Different	
  Number	
  of	
  Hidden	
  
Layers	
  of	
  the	
  Deep	
  Neural	
  Network	
  Model
Experiments
• Experiments	
  with	
  Different	
  Quantities	
  of	
  Data
Experiments
• Individual	
  Stock	
  Prediction
Experiments
• Individual	
  Stock	
  Prediction
Experiments
• Individual	
  Stock	
  Prediction
Conclusion
• Events	
  are	
  useful.	
  
– Events	
  are	
  more	
  useful	
  representations	
  compared	
  to	
  bags-­‐of-­‐words	
  for	
  the	
  
task	
  of	
  stock	
  market	
  prediction.
• Hidden	
  relations	
  useful.
– A	
  deep	
  neural	
  network	
  model	
  can	
  be	
  more	
  accurate	
  on	
  predicting	
  the	
  stock	
  
market	
  compared	
  to	
  the	
  linear	
  model.
• Robust	
  results	
  obtained.
– Our	
  approach	
  can	
  achieve	
  stable	
  experiment	
  results	
  on	
  S&P	
  500	
  index	
  
prediction	
  and	
  individual	
  stock	
  prediction	
  over	
  a	
  large	
  amount	
  of	
  data	
  (eight	
  
years	
  of	
  stock	
  prices	
  and	
  more	
  than	
  550,000	
  pieces	
  of	
  news).
• Quality	
  of	
  information	
  is	
  more	
  important	
  than	
  quantity.	
  
– The	
  most	
  relevant	
  information	
   (i.e.	
  news	
  title	
  vs news	
  content,	
  individual	
  
company	
  news	
  vs all	
  news)	
  is	
  better	
  than	
  more,	
  but	
  less	
  relevant	
  information.
Two	
  extensions
• Better event encodings
• Long term history
Two	
  extensions
• Event	
  sparsity
– Using	
  structured	
  event	
  to	
  predict	
  stock	
  market	
  
movement	
  suffers	
  from	
  increased	
  data	
  sparsity
(Actor	
  =	
  Microsoft,	
  Action	
  =	
  sues,	
  Object	
  =	
  Barnes	
  &	
  Noble)
Two	
  extensions
• Modeling	
  long-­‐term	
  effect	
  of	
  events
– The	
  effect	
  becomes	
  weaker
– Little	
  has	
  been	
  done
Event	
  Embedding
• Previous work
– Learning entity embedding (Socher et al. 2013)
Neural	
  Tensor	
  Network
𝑓(𝑒$
% 𝑊 $:( 𝑒) + 𝑉
,-
,.
+ 𝑏)𝑓(𝑊𝑥 + 𝑏)
Neural Network Neural Tensor Network
Neural Tensor Network for Event Embedding
O1 T1 P T2 O2
R1 R2
U
T3
O1 T1 P
R1
𝑅$ = 	
   𝑓(𝑂$
%
𝑇$
[$:(]
𝑃 + 𝑉 :-
;
+ 𝑏)
Neural Tensor Network for Event Embedding
Training
• Minimize the margin loss
• 500 iterations
• Standard back-­‐propagation
Random replace with
an object
Regulation weight,set
to 0.0001
Parameters
Deep	
  Prediction	
  Model
• We model long-­‐, mid-­‐, short-­‐term events
– Long-­‐term events (Last month)
– Mid-­‐term events (Last week)
– Short-­‐term events (Last day)
Deep	
  Prediction	
  Model
• Architecture
Deep	
  Prediction	
  Model
• Convolution and Max-­‐pooling
– Convolution layer to obtain local feature
– Max-­‐pooling to determine the global
representativefeature
Experiments
• Baselines
Input Method
Luss and d’Aspremont [2012] Bag of words NN
Ding et al. [2014] (E-NN) Structured event NN
WB-NN Word embedding NN
WB-CNN Word embedding CNN
E-CNN Structured event CNN
EB-NN Event embedding NN
EB-CNN Event embedding CNN
Experiments
• Finds
– Events	
  are	
  better	
  features	
  than	
  words
– Reducing	
  sparsity if	
  helpful	
  in	
  the	
  task
– CNN-­‐based	
  is	
  more	
  powerful
Experiments
• 15	
  companies	
  from	
  S&P	
  500
– Consists	
  of	
  High-­‐,mid-­‐ and	
  low-­‐ranking	
  companies
– Evaluation	
  metric:	
  Accuracy	
  and	
  MCC
Conclusion
• Event	
  embeddings-­‐based	
  document	
  
representations	
  are	
  better	
  than	
  discrete	
  
events-­‐based	
  methods
• Deep	
  CNN	
  can	
  help	
  capture	
  longer-­‐term	
  
influence	
  of	
  news	
  event
Current
• More technical enhancements
• More	
  markets
– China’s	
  A	
  market
– Chinese	
  syntactic	
  and	
  semantic	
  analysis
– Chinese	
  Open	
  IE

More Related Content

What's hot

Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Predictioneurosigdoc acm
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market PredictionMRIDUL GUPTA
 
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 AlgorithmIRJET Journal
 
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 LearningSharvil Katariya
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningAravind Balaji
 
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 METHODSIAEME Publication
 
Stock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisStock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisASHEESHVERMA6
 
Stock Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPTPrashantGanji4
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price PredictionManisha Mishra
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learningijtsrd
 
An intelligent scalable stock market prediction system
An intelligent scalable stock market prediction systemAn intelligent scalable stock market prediction system
An intelligent scalable stock market prediction systemHarshit Agarwal
 
IRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET Journal
 
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...idescitation
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price ForecastingArkaprava Kundu
 
Petri Nets: Properties, Analysis and Applications
Petri Nets: Properties, Analysis and ApplicationsPetri Nets: Properties, Analysis and Applications
Petri Nets: Properties, Analysis and ApplicationsDr. Mohamed Torky
 
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...IRJET Journal
 
Stock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceStock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceEkaantik Software Solutions
 

What's hot (20)

Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market Prediction
 
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
 
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 Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
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
 
Stock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisStock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical Analysis
 
Stock Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPT
 
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
 
An intelligent scalable stock market prediction system
An intelligent scalable stock market prediction systemAn intelligent scalable stock market prediction system
An intelligent scalable stock market prediction system
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
 
IRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine Learning
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
 
Stock prediction system using ann
Stock prediction system using annStock prediction system using ann
Stock prediction system using ann
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
Petri Nets: Properties, Analysis and Applications
Petri Nets: Properties, Analysis and ApplicationsPetri Nets: Properties, Analysis and Applications
Petri Nets: Properties, Analysis and Applications
 
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
 
Stock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceStock price prediction using stock eod of day price
Stock price prediction using stock eod of day price
 

Viewers also liked

Stock Prediction Using NLP and Deep Learning
Stock Prediction Using NLP and Deep Learning Stock Prediction Using NLP and Deep Learning
Stock Prediction Using NLP and Deep Learning Keon Kim
 
Stock Market Prediction using Hidden Markov Models and Investor sentiment
Stock Market Prediction using Hidden Markov Models and Investor sentimentStock Market Prediction using Hidden Markov Models and Investor sentiment
Stock Market Prediction using Hidden Markov Models and Investor sentimentPatrick Nicolas
 
RNN, LSTM and Seq-2-Seq Models
RNN, LSTM and Seq-2-Seq ModelsRNN, LSTM and Seq-2-Seq Models
RNN, LSTM and Seq-2-Seq ModelsEmory NLP
 
Deep learning framework 제작
Deep learning framework 제작Deep learning framework 제작
Deep learning framework 제작Tae Young Lee
 
CNN(Convolutional Neural Nets) backpropagation
CNN(Convolutional Neural Nets) backpropagationCNN(Convolutional Neural Nets) backpropagation
CNN(Convolutional Neural Nets) backpropagationJooyoul Lee
 
[222]대화 시스템 서비스 동향 및 개발 방법
[222]대화 시스템 서비스 동향 및 개발 방법[222]대화 시스템 서비스 동향 및 개발 방법
[222]대화 시스템 서비스 동향 및 개발 방법NAVER D2
 
Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...
Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...
Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...Universitat Politècnica de Catalunya
 
AlphaGo 알고리즘 요약
AlphaGo 알고리즘 요약AlphaGo 알고리즘 요약
AlphaGo 알고리즘 요약Jooyoul Lee
 
알파고 (바둑 인공지능)의 작동 원리
알파고 (바둑 인공지능)의 작동 원리알파고 (바둑 인공지능)의 작동 원리
알파고 (바둑 인공지능)의 작동 원리Shane (Seungwhan) Moon
 
기계학습 / 딥러닝이란 무엇인가
기계학습 / 딥러닝이란 무엇인가기계학습 / 딥러닝이란 무엇인가
기계학습 / 딥러닝이란 무엇인가Yongha Kim
 

Viewers also liked (11)

Stock Prediction Using NLP and Deep Learning
Stock Prediction Using NLP and Deep Learning Stock Prediction Using NLP and Deep Learning
Stock Prediction Using NLP and Deep Learning
 
Stock Market Prediction using Hidden Markov Models and Investor sentiment
Stock Market Prediction using Hidden Markov Models and Investor sentimentStock Market Prediction using Hidden Markov Models and Investor sentiment
Stock Market Prediction using Hidden Markov Models and Investor sentiment
 
Deeplearning in finance
Deeplearning in financeDeeplearning in finance
Deeplearning in finance
 
RNN, LSTM and Seq-2-Seq Models
RNN, LSTM and Seq-2-Seq ModelsRNN, LSTM and Seq-2-Seq Models
RNN, LSTM and Seq-2-Seq Models
 
Deep learning framework 제작
Deep learning framework 제작Deep learning framework 제작
Deep learning framework 제작
 
CNN(Convolutional Neural Nets) backpropagation
CNN(Convolutional Neural Nets) backpropagationCNN(Convolutional Neural Nets) backpropagation
CNN(Convolutional Neural Nets) backpropagation
 
[222]대화 시스템 서비스 동향 및 개발 방법
[222]대화 시스템 서비스 동향 및 개발 방법[222]대화 시스템 서비스 동향 및 개발 방법
[222]대화 시스템 서비스 동향 및 개발 방법
 
Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...
Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...
Reinforcement Learning (DLAI D7L2 2017 UPC Deep Learning for Artificial Intel...
 
AlphaGo 알고리즘 요약
AlphaGo 알고리즘 요약AlphaGo 알고리즘 요약
AlphaGo 알고리즘 요약
 
알파고 (바둑 인공지능)의 작동 원리
알파고 (바둑 인공지능)의 작동 원리알파고 (바둑 인공지능)의 작동 원리
알파고 (바둑 인공지능)의 작동 원리
 
기계학습 / 딥러닝이란 무엇인가
기계학습 / 딥러닝이란 무엇인가기계학습 / 딥러닝이란 무엇인가
기계학습 / 딥러닝이란 무엇인가
 

Similar to Deep Learning Predicts Stock Market Using Financial News Events

Prepare your data for machine learning
Prepare your data for machine learningPrepare your data for machine learning
Prepare your data for machine learningIvo Andreev
 
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...Srinath Perera
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.pptArumugam90
 
rsec2a-2016-jheaton-morning
rsec2a-2016-jheaton-morningrsec2a-2016-jheaton-morning
rsec2a-2016-jheaton-morningJeff Heaton
 
Entity embeddings for categorical data
Entity embeddings for categorical dataEntity embeddings for categorical data
Entity embeddings for categorical dataPaul Skeie
 
Combining Inverted Indices and Structured Search for Ad-hoc Object Retrieval
Combining Inverted Indices and Structured Search for  Ad-hoc Object RetrievalCombining Inverted Indices and Structured Search for  Ad-hoc Object Retrieval
Combining Inverted Indices and Structured Search for Ad-hoc Object RetrievaleXascale Infolab
 
BsidesLVPresso2016_JZeditsv6
BsidesLVPresso2016_JZeditsv6BsidesLVPresso2016_JZeditsv6
BsidesLVPresso2016_JZeditsv6Rod Soto
 
Week1- Introduction.pptx
Week1- Introduction.pptxWeek1- Introduction.pptx
Week1- Introduction.pptxfahmi324663
 
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrdgxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrdwrushabhsirsat
 
Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...
Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...
Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...Data Works MD
 
[243] turning data into value
[243] turning data into value[243] turning data into value
[243] turning data into valueNAVER D2
 
The Hitchhiker's Guide to Machine Learning with Python & Apache Spark
The Hitchhiker's Guide to Machine Learning with Python & Apache SparkThe Hitchhiker's Guide to Machine Learning with Python & Apache Spark
The Hitchhiker's Guide to Machine Learning with Python & Apache SparkKrishna Sankar
 
Practical deep learning for computer vision
Practical deep learning for computer visionPractical deep learning for computer vision
Practical deep learning for computer visionEran Shlomo
 
Design and Implementation of A Data Stream Management System
Design and Implementation of A Data Stream Management SystemDesign and Implementation of A Data Stream Management System
Design and Implementation of A Data Stream Management SystemErdi Olmezogullari
 
The DemaWare Service-Oriented AAL Platform for People with Dementia
The DemaWare Service-Oriented AAL Platform for People with DementiaThe DemaWare Service-Oriented AAL Platform for People with Dementia
The DemaWare Service-Oriented AAL Platform for People with DementiaYiannis Kompatsiaris
 
Topic defense- Situation modeling and detection
Topic defense- Situation modeling and detectionTopic defense- Situation modeling and detection
Topic defense- Situation modeling and detectionVivek Singh
 

Similar to Deep Learning Predicts Stock Market Using Financial News Events (20)

Prepare your data for machine learning
Prepare your data for machine learningPrepare your data for machine learning
Prepare your data for machine learning
 
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
ICTER 2014 Invited Talk: Large Scale Data Processing in the Real World: from ...
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.ppt
 
rsec2a-2016-jheaton-morning
rsec2a-2016-jheaton-morningrsec2a-2016-jheaton-morning
rsec2a-2016-jheaton-morning
 
Entity embeddings for categorical data
Entity embeddings for categorical dataEntity embeddings for categorical data
Entity embeddings for categorical data
 
Icbai 2018 ver_1
Icbai 2018 ver_1Icbai 2018 ver_1
Icbai 2018 ver_1
 
Combining Inverted Indices and Structured Search for Ad-hoc Object Retrieval
Combining Inverted Indices and Structured Search for  Ad-hoc Object RetrievalCombining Inverted Indices and Structured Search for  Ad-hoc Object Retrieval
Combining Inverted Indices and Structured Search for Ad-hoc Object Retrieval
 
BsidesLVPresso2016_JZeditsv6
BsidesLVPresso2016_JZeditsv6BsidesLVPresso2016_JZeditsv6
BsidesLVPresso2016_JZeditsv6
 
Week1- Introduction.pptx
Week1- Introduction.pptxWeek1- Introduction.pptx
Week1- Introduction.pptx
 
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrdgxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
 
Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...
Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...
Exploring Correlation Between Sentiment of Environmental Tweets and the Stock...
 
[243] turning data into value
[243] turning data into value[243] turning data into value
[243] turning data into value
 
The Hitchhiker's Guide to Machine Learning with Python & Apache Spark
The Hitchhiker's Guide to Machine Learning with Python & Apache SparkThe Hitchhiker's Guide to Machine Learning with Python & Apache Spark
The Hitchhiker's Guide to Machine Learning with Python & Apache Spark
 
AI and Deep Learning
AI and Deep Learning AI and Deep Learning
AI and Deep Learning
 
Practical deep learning for computer vision
Practical deep learning for computer visionPractical deep learning for computer vision
Practical deep learning for computer vision
 
21AI401 AI Unit 1.pdf
21AI401 AI Unit 1.pdf21AI401 AI Unit 1.pdf
21AI401 AI Unit 1.pdf
 
Design and Implementation of A Data Stream Management System
Design and Implementation of A Data Stream Management SystemDesign and Implementation of A Data Stream Management System
Design and Implementation of A Data Stream Management System
 
Neural Networks-1
Neural Networks-1Neural Networks-1
Neural Networks-1
 
The DemaWare Service-Oriented AAL Platform for People with Dementia
The DemaWare Service-Oriented AAL Platform for People with DementiaThe DemaWare Service-Oriented AAL Platform for People with Dementia
The DemaWare Service-Oriented AAL Platform for People with Dementia
 
Topic defense- Situation modeling and detection
Topic defense- Situation modeling and detectionTopic defense- Situation modeling and detection
Topic defense- Situation modeling and detection
 

Recently uploaded

Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...Amil Baba Dawood bangali
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...GQ Research
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
While-For-loop in python used in college
While-For-loop in python used in collegeWhile-For-loop in python used in college
While-For-loop in python used in collegessuser7a7cd61
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 

Recently uploaded (20)

Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
While-For-loop in python used in college
While-For-loop in python used in collegeWhile-For-loop in python used in college
While-For-loop in python used in college
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 

Deep Learning Predicts Stock Market Using Financial News Events

  • 1. Deep  Learning  for  Stock   Prediction Yue  Zhang
  • 2. My  research  areas Machine Learning Natural Language Processing Applications Text synthesis Machine translation Information extractionMarket prediction Sentiment analysis Syntactic analysis
  • 3. This  talk • Reading  news  from  the  Internet  and   predicting  the  stock  market
  • 5. Introduction • Is  it  possible? – Random  walk  theory – Efficient  market  hypothesis – Human/algorithm  trading • Examples – Shares  of  Apple  Inc.  fell  as  trading  began  in  New  York   on  Tuesday  morning,  the  day  after  former  CEO  Steve   Jobs  passed  away – Google’s  stock  falls  after  grim  earnings  come  out  early
  • 6. Why  events? • Previous  work – Bag-­‐of-­‐words – Named  Entities – Noun  Phrases • Examples – Oracle  Corp  would  sue  Google  Inc.,  claiming  Google’s   Android  operating  system… – Microsoft  agrees  to  buy  Nokia’s  mobile  phone   business  for  $  7.2  billion.
  • 7. Method • Event  Representation – E=(O1,  P,  O2,  T) – Actor – Event – Object – Time
  • 8. Method • Event  Extraction – Syntactic  parsing – Open  information  extraction
  • 9. Method • Event  Generalization – First,  we  construct  a  morphological  analysis  tool   based  on  the  WordNet stemmer  to  extract  lemma   forms  of  inflected  words – Second,  we  generalize  each  verb  to  its  class  name  in   VerbNet • For  example – Instant  view:  Private  sector  adds  114,000  jobs  in  July. – (Private  sector,  adds,  114,000  jobs) – (private  sector,  multiply_class,  114,000  job)
  • 10. Method • Model – Input:  events – Output:  two-­‐way  movement • Training:  historical  data • Testing:  coming  data
  • 11. Method • Prediction  Model – Linear  model • Most  previous  work  uses  linear  models  to  predict  the  stock   market.  To  make  direct  comparisons,  this  paper  constructs  a   linear  prediction  model  by  using  SVM  with  linear  kernel – Nonlinear  model • Intuitively,  the  relationship  between  events  and  the  stock   market  may  be  more  complex  than  linear,  due  to  hidden  and   indirect  relationships.  We  exploit  a  deep  neural  network   model,  the  hidden  layers  of  which  is  useful  for  learning  such   hidden  relationships
  • 12. … News  documents φ1 Class  +1 The  polarity  of  the  stock   price  movement   is   positive Class  -­‐1 The  polarity  of  the  stock   price  movement   is   negative Input   Layer Output   Layer Hidden   Layers … … φ2 φ3 φM
  • 13. Method • Feature  Representation – Bag-­‐of-­‐words • TF*IDF – Events • O1,  P,  O2,  O1  +  P,  P  +  O2,  O1  +  P  +  O2 • For  Example – (Microsoft,  buy,  Nokia's  mobile  phone  business) – (#arg1=Microsoft,  #action=buy,  #arg2= Nokia's  mobile  phone   business,  #arg1_action=Microsoft  buy,  #action_arg2=buy   Nokia's  mobile  phone  business,  #arg1_action_arg2=   Microsoft  buy  Nokia's  mobile  phone  business)
  • 14. Experiments • Data  Description – We  use  publicly  available  financial  news  from  Reuters   and  Bloomberg  over  the  period  from  October  2006  to   November  2013.  This  time  span  witnesses  a  severe   economic  downturn  in  2007-­‐2010,  followed  by  a   modest  recovery  in  2011-­‐2013.  There  are  106,521   documents  in  total  from  Reuters  News  and  447,145   from  Bloomberg  News. – We  mainly  focus  on  predicting  the  Standard  &Poor's   500  stocks  (S&P  500)  index,  obtaining  indices  and   stock  price  from  Yahoo  Finance.
  • 15. Experiments • Evaluation  Metrics – Accuracy  and  MCC • Overall  Results
  • 16. Experiments • Experiments  with  Different  Number  of  Hidden   Layers  of  the  Deep  Neural  Network  Model
  • 17. Experiments • Experiments  with  Different  Quantities  of  Data
  • 21. Conclusion • Events  are  useful.   – Events  are  more  useful  representations  compared  to  bags-­‐of-­‐words  for  the   task  of  stock  market  prediction. • Hidden  relations  useful. – A  deep  neural  network  model  can  be  more  accurate  on  predicting  the  stock   market  compared  to  the  linear  model. • Robust  results  obtained. – Our  approach  can  achieve  stable  experiment  results  on  S&P  500  index   prediction  and  individual  stock  prediction  over  a  large  amount  of  data  (eight   years  of  stock  prices  and  more  than  550,000  pieces  of  news). • Quality  of  information  is  more  important  than  quantity.   – The  most  relevant  information   (i.e.  news  title  vs news  content,  individual   company  news  vs all  news)  is  better  than  more,  but  less  relevant  information.
  • 22. Two  extensions • Better event encodings • Long term history
  • 23. Two  extensions • Event  sparsity – Using  structured  event  to  predict  stock  market   movement  suffers  from  increased  data  sparsity (Actor  =  Microsoft,  Action  =  sues,  Object  =  Barnes  &  Noble)
  • 24. Two  extensions • Modeling  long-­‐term  effect  of  events – The  effect  becomes  weaker – Little  has  been  done
  • 25. Event  Embedding • Previous work – Learning entity embedding (Socher et al. 2013)
  • 26. Neural  Tensor  Network 𝑓(𝑒$ % 𝑊 $:( 𝑒) + 𝑉 ,- ,. + 𝑏)𝑓(𝑊𝑥 + 𝑏) Neural Network Neural Tensor Network
  • 27. Neural Tensor Network for Event Embedding O1 T1 P T2 O2 R1 R2 U T3
  • 28. O1 T1 P R1 𝑅$ =   𝑓(𝑂$ % 𝑇$ [$:(] 𝑃 + 𝑉 :- ; + 𝑏) Neural Tensor Network for Event Embedding
  • 29. Training • Minimize the margin loss • 500 iterations • Standard back-­‐propagation Random replace with an object Regulation weight,set to 0.0001 Parameters
  • 30. Deep  Prediction  Model • We model long-­‐, mid-­‐, short-­‐term events – Long-­‐term events (Last month) – Mid-­‐term events (Last week) – Short-­‐term events (Last day)
  • 32. Deep  Prediction  Model • Convolution and Max-­‐pooling – Convolution layer to obtain local feature – Max-­‐pooling to determine the global representativefeature
  • 33. Experiments • Baselines Input Method Luss and d’Aspremont [2012] Bag of words NN Ding et al. [2014] (E-NN) Structured event NN WB-NN Word embedding NN WB-CNN Word embedding CNN E-CNN Structured event CNN EB-NN Event embedding NN EB-CNN Event embedding CNN
  • 34. Experiments • Finds – Events  are  better  features  than  words – Reducing  sparsity if  helpful  in  the  task – CNN-­‐based  is  more  powerful
  • 35. Experiments • 15  companies  from  S&P  500 – Consists  of  High-­‐,mid-­‐ and  low-­‐ranking  companies – Evaluation  metric:  Accuracy  and  MCC
  • 36. Conclusion • Event  embeddings-­‐based  document   representations  are  better  than  discrete   events-­‐based  methods • Deep  CNN  can  help  capture  longer-­‐term   influence  of  news  event
  • 37. Current • More technical enhancements • More  markets – China’s  A  market – Chinese  syntactic  and  semantic  analysis – Chinese  Open  IE