SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Performance analysis and prediction of stock market for investment decision u...
Performance analysis and prediction of stock market for investment decision u...Performance analysis and prediction of stock market for investment decision u...
Performance analysis and prediction of stock market for investment decision u...
Hari KC
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
ijtsrd
 

Tendances (20)

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 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- 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
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: 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
 
Presentation1
Presentation1Presentation1
Presentation1
 
Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
 
Performance analysis and prediction of stock market for investment decision u...
Performance analysis and prediction of stock market for investment decision u...Performance analysis and prediction of stock market for investment decision u...
Performance analysis and prediction of stock market for investment decision u...
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
Lstm
LstmLstm
Lstm
 
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
 
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...
 
Time series deep learning
Time series   deep learningTime series   deep learning
Time series deep learning
 
Rnn & Lstm
Rnn & LstmRnn & Lstm
Rnn & Lstm
 
LSTM Tutorial
LSTM TutorialLSTM Tutorial
LSTM Tutorial
 
Machine Learning Strategies for Time Series Prediction
Machine Learning Strategies for Time Series PredictionMachine Learning Strategies for Time Series Prediction
Machine Learning Strategies for Time Series Prediction
 
Introduction to Recurrent Neural Network
Introduction to Recurrent Neural NetworkIntroduction to Recurrent Neural Network
Introduction to Recurrent Neural Network
 
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
 

En vedette

En vedette (10)

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 알고리즘 요약
 
알파고 (바둑 인공지능)의 작동 원리
알파고 (바둑 인공지능)의 작동 원리알파고 (바둑 인공지능)의 작동 원리
알파고 (바둑 인공지능)의 작동 원리
 
기계학습 / 딥러닝이란 무엇인가
기계학습 / 딥러닝이란 무엇인가기계학습 / 딥러닝이란 무엇인가
기계학습 / 딥러닝이란 무엇인가
 

Similaire à Deep Learning for Stock Prediction

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.ppt
Arumugam90
 
rsec2a-2016-jheaton-morning
rsec2a-2016-jheaton-morningrsec2a-2016-jheaton-morning
rsec2a-2016-jheaton-morning
Jeff Heaton
 
BsidesLVPresso2016_JZeditsv6
BsidesLVPresso2016_JZeditsv6BsidesLVPresso2016_JZeditsv6
BsidesLVPresso2016_JZeditsv6
Rod Soto
 
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrdgxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
wrushabhsirsat
 

Similaire à Deep Learning for Stock Prediction (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
 

Dernier

Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 

Dernier (20)

Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 

Deep Learning for Stock Prediction

  • 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