SlideShare a Scribd company logo
1 of 32
Download to read offline
Machine learning aided prediction
of financial markets
Nikola Milošević
Email: nikola.milosevic@manchester.ac.uk
Blog: http://inspiratron.org
Twitter: @dreadknight011
Who am I?
• BSc and MSc in EE and CS, University of Belgrade, Serbia
• PhD student University of Manchester
• OWASP (Open Web Application Security Project) local and project leader
• Mentor at Google Summer of Code
• Open Source contributor
• About 4 years experience in industry
(Software testing and development – Banking, Telco, SaaS, Mobile)
• Head of Technology at MUTIS Finance Society
Agenda
• Machine learning introduction
• Finance and its resistance to machine learning
• Approaches to investing
• Fundamental
• Behavioral
• Research examples
• Predicting long term stock prices using machine learning
• Predicting FOREX using social media
• Conclusion
What is Machine learning
How does it work?
• Machine learning is the subfield of computer science that
"gives computers the ability to learn without being explicitly
programmed" (Arthur Samuel, 1959)
Types of Machine learning
Achievements of ML
What about handling money?
• Not that much
• Fund manager often can’t understand the model
• Who is accountable for losses?
• Data scientist/Quant/Software engineer?
• Fund manager?
• Data?
• Algorithm?
• Computer?
Machine learning as a black box or black magic
Understanding models
• Machine learning ≠ black box
• Machine learning ≠ black magic
• Complexity matches the problem
• Rules are not simple!
• Complex problems – complex solutions (models)
• Shortcut understanding does not work
• Right cross validation, right dataset
• Machines make as many mistakes as human do
(in many cases even less)
Approaches in finance
• H: Machine can learn same things human can
Behavioural finance
Long-term investing Short-term investing
Technical analysis - traditionally
• Graham criteria (1949)
• Stock Selection for the Defensive Investor:
• 1. Not less than $100 million of annual sales.
• [Note: This works out to $500 million today based on the difference in CPI/Inflation from 1971]
• 2-A. Current assets should be at least twice current liabilities.
• 2-B. Long-term debt should not exceed the net current assets.
• 3. Some earnings for the common stock in each of the past 10 years.
• 4. Uninterrupted [dividend] payments for at least the past 20 years.
• 5. A minimum increase of at least one-third in per-share earnings in the past 10 years.
• 6. Current price should not be more than 15 times average earnings.
• 7. Current price should not be more than 1-1⁄2 times the book value.
• Graham number = 22.5 ∗ 𝐸𝑃𝑆 ∗ 𝐵𝑉
Technical analysis
• Analyse technical indicators and ratios
• Over time
• Dependencies
• Graham model too strict
• It is hard to develop new models
• Mathematically demanding
• People are not good with numbers
• Time consuming
• Can machines help?
Predicting long term movement of stock price
• Use machine learning on past 2-3 year data
• Data obtained using Bloomberg terminal
• Data include 28 indicators
• Book value, Market capitalization, Change of stock Net price over the one month period,
Percentage change of Net price over the one month period, Dividend yield, Earnings per share,
Earnings per share growth, Sales revenue turnover, Net revenue, Net revenue growth, Sales
growth, Price to earnings ratio, Price to earnings ratio -five years average, Price to book ratio,
Price to sales ratio, Dividend per share, Current ratio, Quick ratio, Total debt to equity, margins,
asset turnover…
Predicting long term movement of stock price (2)
• Selected 1739 stocks from different indexes (S&P 1000, FTSE 100
and S&P Europe 350…)
• Calculated which ones price grew more than 10%
• Used different Machine learning algorithms and 10 fold cross
validation for evaluation
• Used Python for scripting and Weka toolkit for machine learning
Results
• Trial with all financial indicators as a features
Results (2)
• We performed feature selection
• Experiment with only 11 indicators
11 indicators
• The performance turned out not to be significantly different, but it
showed that only 11 indicators are enough
FinAnalyzer
• Tool that uses a model and Yahoo hidden API
• https://github.com/nikolamilosevic86/FinAnalyzer
• Open source (GPLv3)
• Decision support
• Not liable of any loses
• Join development
(contact me)
Behavioural finance
• Psychology and emotion influence decision
• People follow their peers
• Sentiment of the information is shaping the decision
Social media and news
Sentiment and FOREX
Major forex pairs
System overview
Sentiment classification
Twitter sentiment - challenges
• Short text – dense information
• Ungrammatical language
• Abbreviations
• Typos
• Emoticons
• Links, hashtags, mentions
Evaluation - sentiment
Correlations – sentiment vs pair
Correlations with sentiment (What we found?)
• There is correlation between sentiment and market movement
• In time it is variable (some times 5 minutes, some times 5 hours)
• Some times ambiguous
• More research necessary
• When to enter/exit?
Conclusion
• Finance is all about information
• Information flooded world
• Machine learning, data science, text mining
• Here to HELP! Try them
• Predicting without emotional influence
• Accountability
• Consider all information for better prediction
• More than human can digest
Reference
• Milosevic, Nikola. “Equity forecast: Predicting long term stock price
movement using machine learning. ” arXiv preprint arXiv:1603.00751 (2016).
• https://arxiv.org/ftp/arxiv/papers/1603/1603.00751.pdf
• Martic, Miljan. “Twitter sentiment analysis for foreign exchange market
movement orediction.” (2014).
Email: Nikola.milosevic@manchester.ac.uk
Blog: http://inspiratron.org
Twitter: @dreadknight011

More Related Content

What's hot

Stock market prediction technique:
Stock market prediction technique:Stock market prediction technique:
Stock market prediction technique:Paladion Networks
 
stock market prediction
stock market predictionstock market prediction
stock market predictionSRIGINES
 
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 Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price PredictionManisha Mishra
 
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
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock PredictionLim Zhi Yuan (Zane)
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningRahul Jain
 
Autoencoder
AutoencoderAutoencoder
AutoencoderHARISH R
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Simplilearn
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data miningShivakumarSoppannavar
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket AnalysisMahendra Gupta
 
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
 
LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...
LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...
LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...Abhijoy Sarkar
 
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...PyData
 
Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ...
 Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ... Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ...
Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ...Databricks
 

What's hot (20)

Stock market prediction technique:
Stock market prediction technique:Stock market prediction technique:
Stock market prediction technique:
 
stock market prediction
stock market predictionstock market prediction
stock market 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 Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price 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
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock Prediction
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
Autoencoder
AutoencoderAutoencoder
Autoencoder
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket Analysis
 
LSTM Basics
LSTM BasicsLSTM Basics
LSTM Basics
 
LSTM
LSTMLSTM
LSTM
 
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...
 
LSTM Tutorial
LSTM TutorialLSTM Tutorial
LSTM Tutorial
 
LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...
LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...
LSTMSA: A novel approach to stock market prediction using LSTM and Sentiment ...
 
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
 
Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ...
 Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ... Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ...
Deep Learning-Based Opinion Mining for Bitcoin Price Prediction with Joyesh ...
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
 

Similar to Machine learning prediction of stock markets

Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...Lviv Startup Club
 
Algorithm Marketplace and the new "Algorithm Economy"
Algorithm Marketplace and the new "Algorithm Economy"Algorithm Marketplace and the new "Algorithm Economy"
Algorithm Marketplace and the new "Algorithm Economy"Diego Oppenheimer
 
NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...
NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...
NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...LimVincent8
 
Machine Learning for Finance Master Class
Machine Learning for Finance Master Class Machine Learning for Finance Master Class
Machine Learning for Finance Master Class QuantUniversity
 
Artificial Intelligence and the Cognitive Revolution – the next frontier?
Artificial Intelligence and the Cognitive Revolution – the next frontier?Artificial Intelligence and the Cognitive Revolution – the next frontier?
Artificial Intelligence and the Cognitive Revolution – the next frontier?Level
 
Hello Freshers! Welcome to Software Testing
Hello Freshers! Welcome to Software TestingHello Freshers! Welcome to Software Testing
Hello Freshers! Welcome to Software TestingSoftsmith_QA
 
Software Startup Ecosystems Evolution - The New York City Case Study
Software Startup Ecosystems Evolution - The New York City Case StudySoftware Startup Ecosystems Evolution - The New York City Case Study
Software Startup Ecosystems Evolution - The New York City Case StudyDaniel Cukier
 
Making Digital Change Happen
Making Digital Change HappenMaking Digital Change Happen
Making Digital Change HappenIWMW
 
Presentation on developments in hiring and fintech for HKU Executive certific...
Presentation on developments in hiring and fintech for HKU Executive certific...Presentation on developments in hiring and fintech for HKU Executive certific...
Presentation on developments in hiring and fintech for HKU Executive certific...Kok Tong (K.T.) Khoo
 
TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...
TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...
TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...SaraPia5
 
Digital Platform Economy
Digital Platform EconomyDigital Platform Economy
Digital Platform EconomyGrow VC Group
 
"Developments in Accessibility of Information" - Access Israel 's 6th Annual ...
"Developments in Accessibility of Information" - Access Israel 's 6th Annual ..."Developments in Accessibility of Information" - Access Israel 's 6th Annual ...
"Developments in Accessibility of Information" - Access Israel 's 6th Annual ...Ricardo Garcia Bahamonde
 
Global Artificial Intelligence (AI) Index
Global Artificial Intelligence (AI) IndexGlobal Artificial Intelligence (AI) Index
Global Artificial Intelligence (AI) IndexMohammad Reda Katby
 
ECIR Recommendation Challenges
ECIR Recommendation ChallengesECIR Recommendation Challenges
ECIR Recommendation ChallengesDaniel Kohlsdorf
 
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...Association for Project Management
 
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...APMDonotuse
 
Machine Learning Adoption: Crossing the chasm for banking and insurance sector
Machine Learning Adoption: Crossing the chasm for banking and insurance sectorMachine Learning Adoption: Crossing the chasm for banking and insurance sector
Machine Learning Adoption: Crossing the chasm for banking and insurance sectorRudradeb Mitra
 

Similar to Machine learning prediction of stock markets (20)

Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
Mykola Mykytenko: MLOps: your way from nonsense to valuable effect (approache...
 
Algorithm Marketplace and the new "Algorithm Economy"
Algorithm Marketplace and the new "Algorithm Economy"Algorithm Marketplace and the new "Algorithm Economy"
Algorithm Marketplace and the new "Algorithm Economy"
 
NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...
NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...
NUS ACE_FinTech-Concepts, Cases & Technology_Introduction course_1st half day...
 
Machine Learning for Finance Master Class
Machine Learning for Finance Master Class Machine Learning for Finance Master Class
Machine Learning for Finance Master Class
 
Artificial Intelligence and the Cognitive Revolution – the next frontier?
Artificial Intelligence and the Cognitive Revolution – the next frontier?Artificial Intelligence and the Cognitive Revolution – the next frontier?
Artificial Intelligence and the Cognitive Revolution – the next frontier?
 
Trippe "Project Management Trends in Publishing: Agile is the New Norm and Th...
Trippe "Project Management Trends in Publishing: Agile is the New Norm and Th...Trippe "Project Management Trends in Publishing: Agile is the New Norm and Th...
Trippe "Project Management Trends in Publishing: Agile is the New Norm and Th...
 
Hello Freshers! Welcome to Software Testing
Hello Freshers! Welcome to Software TestingHello Freshers! Welcome to Software Testing
Hello Freshers! Welcome to Software Testing
 
Machine Learning For Stock Broking
Machine Learning For Stock BrokingMachine Learning For Stock Broking
Machine Learning For Stock Broking
 
Software Startup Ecosystems Evolution - The New York City Case Study
Software Startup Ecosystems Evolution - The New York City Case StudySoftware Startup Ecosystems Evolution - The New York City Case Study
Software Startup Ecosystems Evolution - The New York City Case Study
 
Making Digital Change Happen
Making Digital Change HappenMaking Digital Change Happen
Making Digital Change Happen
 
Presentation on developments in hiring and fintech for HKU Executive certific...
Presentation on developments in hiring and fintech for HKU Executive certific...Presentation on developments in hiring and fintech for HKU Executive certific...
Presentation on developments in hiring and fintech for HKU Executive certific...
 
TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...
TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...
TIC-TOC: Disrupt the Threat Management Conversation with Dominique Singer and...
 
Digital Platform Economy
Digital Platform EconomyDigital Platform Economy
Digital Platform Economy
 
"Developments in Accessibility of Information" - Access Israel 's 6th Annual ...
"Developments in Accessibility of Information" - Access Israel 's 6th Annual ..."Developments in Accessibility of Information" - Access Israel 's 6th Annual ...
"Developments in Accessibility of Information" - Access Israel 's 6th Annual ...
 
Global Artificial Intelligence (AI) Index
Global Artificial Intelligence (AI) IndexGlobal Artificial Intelligence (AI) Index
Global Artificial Intelligence (AI) Index
 
ECIR Recommendation Challenges
ECIR Recommendation ChallengesECIR Recommendation Challenges
ECIR Recommendation Challenges
 
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
 
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
Steve Maclaren - APM Scotland Branch Conference 2023: Net Zero Nation and Sus...
 
Big Data in Asia
Big Data in AsiaBig Data in Asia
Big Data in Asia
 
Machine Learning Adoption: Crossing the chasm for banking and insurance sector
Machine Learning Adoption: Crossing the chasm for banking and insurance sectorMachine Learning Adoption: Crossing the chasm for banking and insurance sector
Machine Learning Adoption: Crossing the chasm for banking and insurance sector
 

More from Nikola Milosevic

Classifying intangible social innovation concepts using machine learning and ...
Classifying intangible social innovation concepts using machine learning and ...Classifying intangible social innovation concepts using machine learning and ...
Classifying intangible social innovation concepts using machine learning and ...Nikola Milosevic
 
Machine learning (ML) and natural language processing (NLP)
Machine learning (ML) and natural language processing (NLP)Machine learning (ML) and natural language processing (NLP)
Machine learning (ML) and natural language processing (NLP)Nikola Milosevic
 
AI an the future of society
AI an the future of societyAI an the future of society
AI an the future of societyNikola Milosevic
 
Equity forecast: Predicting long term stock market prices using machine learning
Equity forecast: Predicting long term stock market prices using machine learningEquity forecast: Predicting long term stock market prices using machine learning
Equity forecast: Predicting long term stock market prices using machine learningNikola Milosevic
 
BelBi2016 presentation: Hybrid methodology for information extraction from ta...
BelBi2016 presentation: Hybrid methodology for information extraction from ta...BelBi2016 presentation: Hybrid methodology for information extraction from ta...
BelBi2016 presentation: Hybrid methodology for information extraction from ta...Nikola Milosevic
 
Extracting patient data from tables in clinical literature
Extracting patient data from tables in clinical literatureExtracting patient data from tables in clinical literature
Extracting patient data from tables in clinical literatureNikola Milosevic
 
Supporting clinical trial data curation and integration with table mining
Supporting clinical trial data curation and integration with table miningSupporting clinical trial data curation and integration with table mining
Supporting clinical trial data curation and integration with table miningNikola Milosevic
 
Mobile security, OWASP Mobile Top 10, OWASP Seraphimdroid
Mobile security, OWASP Mobile Top 10, OWASP SeraphimdroidMobile security, OWASP Mobile Top 10, OWASP Seraphimdroid
Mobile security, OWASP Mobile Top 10, OWASP SeraphimdroidNikola Milosevic
 
Table mining and data curation from biomedical literature
Table mining and data curation from biomedical literatureTable mining and data curation from biomedical literature
Table mining and data curation from biomedical literatureNikola Milosevic
 
Sentiment analysis for Serbian language
Sentiment analysis for Serbian languageSentiment analysis for Serbian language
Sentiment analysis for Serbian languageNikola Milosevic
 
Sigurnosne prijetnje i mjere zaštite IT infrastrukture
Sigurnosne prijetnje i mjere zaštite IT infrastrukture Sigurnosne prijetnje i mjere zaštite IT infrastrukture
Sigurnosne prijetnje i mjere zaštite IT infrastrukture Nikola Milosevic
 
Mašinska analiza sentimenta rečenica na srpskom jeziku
Mašinska analiza sentimenta rečenica na srpskom jezikuMašinska analiza sentimenta rečenica na srpskom jeziku
Mašinska analiza sentimenta rečenica na srpskom jezikuNikola Milosevic
 
Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...
Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...
Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...Nikola Milosevic
 

More from Nikola Milosevic (20)

Classifying intangible social innovation concepts using machine learning and ...
Classifying intangible social innovation concepts using machine learning and ...Classifying intangible social innovation concepts using machine learning and ...
Classifying intangible social innovation concepts using machine learning and ...
 
Machine learning (ML) and natural language processing (NLP)
Machine learning (ML) and natural language processing (NLP)Machine learning (ML) and natural language processing (NLP)
Machine learning (ML) and natural language processing (NLP)
 
Veštačka inteligencija
Veštačka inteligencijaVeštačka inteligencija
Veštačka inteligencija
 
AI an the future of society
AI an the future of societyAI an the future of society
AI an the future of society
 
Equity forecast: Predicting long term stock market prices using machine learning
Equity forecast: Predicting long term stock market prices using machine learningEquity forecast: Predicting long term stock market prices using machine learning
Equity forecast: Predicting long term stock market prices using machine learning
 
BelBi2016 presentation: Hybrid methodology for information extraction from ta...
BelBi2016 presentation: Hybrid methodology for information extraction from ta...BelBi2016 presentation: Hybrid methodology for information extraction from ta...
BelBi2016 presentation: Hybrid methodology for information extraction from ta...
 
Extracting patient data from tables in clinical literature
Extracting patient data from tables in clinical literatureExtracting patient data from tables in clinical literature
Extracting patient data from tables in clinical literature
 
Supporting clinical trial data curation and integration with table mining
Supporting clinical trial data curation and integration with table miningSupporting clinical trial data curation and integration with table mining
Supporting clinical trial data curation and integration with table mining
 
Mobile security, OWASP Mobile Top 10, OWASP Seraphimdroid
Mobile security, OWASP Mobile Top 10, OWASP SeraphimdroidMobile security, OWASP Mobile Top 10, OWASP Seraphimdroid
Mobile security, OWASP Mobile Top 10, OWASP Seraphimdroid
 
Serbia2
Serbia2Serbia2
Serbia2
 
Table mining and data curation from biomedical literature
Table mining and data curation from biomedical literatureTable mining and data curation from biomedical literature
Table mining and data curation from biomedical literature
 
Malware
MalwareMalware
Malware
 
Sentiment analysis for Serbian language
Sentiment analysis for Serbian languageSentiment analysis for Serbian language
Sentiment analysis for Serbian language
 
Http and security
Http and securityHttp and security
Http and security
 
Android business models
Android business modelsAndroid business models
Android business models
 
Android(1)
Android(1)Android(1)
Android(1)
 
Sigurnosne prijetnje i mjere zaštite IT infrastrukture
Sigurnosne prijetnje i mjere zaštite IT infrastrukture Sigurnosne prijetnje i mjere zaštite IT infrastrukture
Sigurnosne prijetnje i mjere zaštite IT infrastrukture
 
Mašinska analiza sentimenta rečenica na srpskom jeziku
Mašinska analiza sentimenta rečenica na srpskom jezikuMašinska analiza sentimenta rečenica na srpskom jeziku
Mašinska analiza sentimenta rečenica na srpskom jeziku
 
Malware
MalwareMalware
Malware
 
Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...
Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...
Software Freedom day Serbia - Owasp - informaciona bezbednost u Srbiji open s...
 

Recently uploaded

LIC PRIVATISATION its a bane or boon.pptx
LIC PRIVATISATION its a bane or boon.pptxLIC PRIVATISATION its a bane or boon.pptx
LIC PRIVATISATION its a bane or boon.pptxsonamyadav7097
 
Introduction to Entrepreneurship and Characteristics of an Entrepreneur
Introduction to Entrepreneurship and Characteristics of an EntrepreneurIntroduction to Entrepreneurship and Characteristics of an Entrepreneur
Introduction to Entrepreneurship and Characteristics of an Entrepreneurabcisahunter
 
Taipei, A Hidden Jewel in East Asia - PR Strategy for Tourism
Taipei, A Hidden Jewel in East Asia - PR Strategy for TourismTaipei, A Hidden Jewel in East Asia - PR Strategy for Tourism
Taipei, A Hidden Jewel in East Asia - PR Strategy for TourismBrian Lin
 
Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...
Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...
Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...Matthews Bantsijang
 
Buy and Sell Urban Tots unlisted shares.pptx
Buy and Sell Urban Tots unlisted shares.pptxBuy and Sell Urban Tots unlisted shares.pptx
Buy and Sell Urban Tots unlisted shares.pptxPrecize Formely Leadoff
 
20240314 Calibre March 2024 Investor Presentation (FINAL).pdf
20240314 Calibre March 2024 Investor Presentation (FINAL).pdf20240314 Calibre March 2024 Investor Presentation (FINAL).pdf
20240314 Calibre March 2024 Investor Presentation (FINAL).pdfAdnet Communications
 
Mphasis - Schwab Newsletter PDF - Sample 8707
Mphasis - Schwab Newsletter PDF - Sample 8707Mphasis - Schwab Newsletter PDF - Sample 8707
Mphasis - Schwab Newsletter PDF - Sample 8707harshan90
 
ACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTES
ACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTESACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTES
ACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTESKumarJayaraman3
 
Slideshare - ONS Economic Forum Slidepack - 18 March 2024.pptx
Slideshare - ONS Economic Forum Slidepack - 18 March 2024.pptxSlideshare - ONS Economic Forum Slidepack - 18 March 2024.pptx
Slideshare - ONS Economic Forum Slidepack - 18 March 2024.pptxOffice for National Statistics
 
RWA Report 2024: Rise of Real-World Assets in Crypto | CoinGecko
RWA Report 2024: Rise of Real-World Assets in Crypto | CoinGeckoRWA Report 2024: Rise of Real-World Assets in Crypto | CoinGecko
RWA Report 2024: Rise of Real-World Assets in Crypto | CoinGeckoCoinGecko
 
Work and Pensions report into UK corporate DB funding
Work and Pensions report into UK corporate DB fundingWork and Pensions report into UK corporate DB funding
Work and Pensions report into UK corporate DB fundingHenry Tapper
 
ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.
ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.
ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.KumarJayaraman3
 
2024.03 Strategic Resources Presentation
2024.03 Strategic Resources Presentation2024.03 Strategic Resources Presentation
2024.03 Strategic Resources PresentationAdnet Communications
 
Sarlat Advisory - Corporate Brochure - 2024
Sarlat Advisory - Corporate Brochure - 2024Sarlat Advisory - Corporate Brochure - 2024
Sarlat Advisory - Corporate Brochure - 2024Guillaume Ⓥ Sarlat
 
Lundin Gold March 2024 Corporate Presentation - PDAC v1.pdf
Lundin Gold March 2024 Corporate Presentation - PDAC v1.pdfLundin Gold March 2024 Corporate Presentation - PDAC v1.pdf
Lundin Gold March 2024 Corporate Presentation - PDAC v1.pdfAdnet Communications
 
Hungarys economy made by Robert Miklos
Hungarys economy   made by Robert MiklosHungarys economy   made by Robert Miklos
Hungarys economy made by Robert Miklosbeduinpower135
 
What Key Factors Should Risk Officers Consider When Using Generative AI
What Key Factors Should Risk Officers Consider When Using Generative AIWhat Key Factors Should Risk Officers Consider When Using Generative AI
What Key Factors Should Risk Officers Consider When Using Generative AI360factors
 

Recently uploaded (20)

LIC PRIVATISATION its a bane or boon.pptx
LIC PRIVATISATION its a bane or boon.pptxLIC PRIVATISATION its a bane or boon.pptx
LIC PRIVATISATION its a bane or boon.pptx
 
Introduction to Entrepreneurship and Characteristics of an Entrepreneur
Introduction to Entrepreneurship and Characteristics of an EntrepreneurIntroduction to Entrepreneurship and Characteristics of an Entrepreneur
Introduction to Entrepreneurship and Characteristics of an Entrepreneur
 
Taipei, A Hidden Jewel in East Asia - PR Strategy for Tourism
Taipei, A Hidden Jewel in East Asia - PR Strategy for TourismTaipei, A Hidden Jewel in East Asia - PR Strategy for Tourism
Taipei, A Hidden Jewel in East Asia - PR Strategy for Tourism
 
New Monthly Enterprises Survey. Issue 21. (01.2024) Ukrainian Business in War...
New Monthly Enterprises Survey. Issue 21. (01.2024) Ukrainian Business in War...New Monthly Enterprises Survey. Issue 21. (01.2024) Ukrainian Business in War...
New Monthly Enterprises Survey. Issue 21. (01.2024) Ukrainian Business in War...
 
Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...
Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...
Remembering my Totem _Unity is Strength_ growing in Bophuthatswana_Matthews B...
 
Buy and Sell Urban Tots unlisted shares.pptx
Buy and Sell Urban Tots unlisted shares.pptxBuy and Sell Urban Tots unlisted shares.pptx
Buy and Sell Urban Tots unlisted shares.pptx
 
20240314 Calibre March 2024 Investor Presentation (FINAL).pdf
20240314 Calibre March 2024 Investor Presentation (FINAL).pdf20240314 Calibre March 2024 Investor Presentation (FINAL).pdf
20240314 Calibre March 2024 Investor Presentation (FINAL).pdf
 
Mphasis - Schwab Newsletter PDF - Sample 8707
Mphasis - Schwab Newsletter PDF - Sample 8707Mphasis - Schwab Newsletter PDF - Sample 8707
Mphasis - Schwab Newsletter PDF - Sample 8707
 
ACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTES
ACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTESACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTES
ACCOUNTING FOR BUSINESS.II BRANCH ACCOUNTS NOTES
 
Monthly Economic Monitoring of Ukraine No.230, March 2024
Monthly Economic Monitoring of Ukraine No.230, March 2024Monthly Economic Monitoring of Ukraine No.230, March 2024
Monthly Economic Monitoring of Ukraine No.230, March 2024
 
Slideshare - ONS Economic Forum Slidepack - 18 March 2024.pptx
Slideshare - ONS Economic Forum Slidepack - 18 March 2024.pptxSlideshare - ONS Economic Forum Slidepack - 18 March 2024.pptx
Slideshare - ONS Economic Forum Slidepack - 18 March 2024.pptx
 
RWA Report 2024: Rise of Real-World Assets in Crypto | CoinGecko
RWA Report 2024: Rise of Real-World Assets in Crypto | CoinGeckoRWA Report 2024: Rise of Real-World Assets in Crypto | CoinGecko
RWA Report 2024: Rise of Real-World Assets in Crypto | CoinGecko
 
Effects & Policies Of Bank Consolidation
Effects & Policies Of Bank ConsolidationEffects & Policies Of Bank Consolidation
Effects & Policies Of Bank Consolidation
 
Work and Pensions report into UK corporate DB funding
Work and Pensions report into UK corporate DB fundingWork and Pensions report into UK corporate DB funding
Work and Pensions report into UK corporate DB funding
 
ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.
ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.
ACCOUNTING FOR BUSINESS.II DEPARTMENTAL ACCOUNTS.
 
2024.03 Strategic Resources Presentation
2024.03 Strategic Resources Presentation2024.03 Strategic Resources Presentation
2024.03 Strategic Resources Presentation
 
Sarlat Advisory - Corporate Brochure - 2024
Sarlat Advisory - Corporate Brochure - 2024Sarlat Advisory - Corporate Brochure - 2024
Sarlat Advisory - Corporate Brochure - 2024
 
Lundin Gold March 2024 Corporate Presentation - PDAC v1.pdf
Lundin Gold March 2024 Corporate Presentation - PDAC v1.pdfLundin Gold March 2024 Corporate Presentation - PDAC v1.pdf
Lundin Gold March 2024 Corporate Presentation - PDAC v1.pdf
 
Hungarys economy made by Robert Miklos
Hungarys economy   made by Robert MiklosHungarys economy   made by Robert Miklos
Hungarys economy made by Robert Miklos
 
What Key Factors Should Risk Officers Consider When Using Generative AI
What Key Factors Should Risk Officers Consider When Using Generative AIWhat Key Factors Should Risk Officers Consider When Using Generative AI
What Key Factors Should Risk Officers Consider When Using Generative AI
 

Machine learning prediction of stock markets

  • 1. Machine learning aided prediction of financial markets Nikola Milošević Email: nikola.milosevic@manchester.ac.uk Blog: http://inspiratron.org Twitter: @dreadknight011
  • 2. Who am I? • BSc and MSc in EE and CS, University of Belgrade, Serbia • PhD student University of Manchester • OWASP (Open Web Application Security Project) local and project leader • Mentor at Google Summer of Code • Open Source contributor • About 4 years experience in industry (Software testing and development – Banking, Telco, SaaS, Mobile) • Head of Technology at MUTIS Finance Society
  • 3. Agenda • Machine learning introduction • Finance and its resistance to machine learning • Approaches to investing • Fundamental • Behavioral • Research examples • Predicting long term stock prices using machine learning • Predicting FOREX using social media • Conclusion
  • 4. What is Machine learning
  • 5. How does it work? • Machine learning is the subfield of computer science that "gives computers the ability to learn without being explicitly programmed" (Arthur Samuel, 1959)
  • 6. Types of Machine learning
  • 8. What about handling money? • Not that much • Fund manager often can’t understand the model • Who is accountable for losses? • Data scientist/Quant/Software engineer? • Fund manager? • Data? • Algorithm? • Computer?
  • 9. Machine learning as a black box or black magic
  • 10. Understanding models • Machine learning ≠ black box • Machine learning ≠ black magic • Complexity matches the problem • Rules are not simple! • Complex problems – complex solutions (models) • Shortcut understanding does not work • Right cross validation, right dataset • Machines make as many mistakes as human do (in many cases even less)
  • 11. Approaches in finance • H: Machine can learn same things human can Behavioural finance Long-term investing Short-term investing
  • 12. Technical analysis - traditionally • Graham criteria (1949) • Stock Selection for the Defensive Investor: • 1. Not less than $100 million of annual sales. • [Note: This works out to $500 million today based on the difference in CPI/Inflation from 1971] • 2-A. Current assets should be at least twice current liabilities. • 2-B. Long-term debt should not exceed the net current assets. • 3. Some earnings for the common stock in each of the past 10 years. • 4. Uninterrupted [dividend] payments for at least the past 20 years. • 5. A minimum increase of at least one-third in per-share earnings in the past 10 years. • 6. Current price should not be more than 15 times average earnings. • 7. Current price should not be more than 1-1⁄2 times the book value. • Graham number = 22.5 ∗ 𝐸𝑃𝑆 ∗ 𝐵𝑉
  • 13. Technical analysis • Analyse technical indicators and ratios • Over time • Dependencies • Graham model too strict • It is hard to develop new models • Mathematically demanding • People are not good with numbers • Time consuming • Can machines help?
  • 14. Predicting long term movement of stock price • Use machine learning on past 2-3 year data • Data obtained using Bloomberg terminal • Data include 28 indicators • Book value, Market capitalization, Change of stock Net price over the one month period, Percentage change of Net price over the one month period, Dividend yield, Earnings per share, Earnings per share growth, Sales revenue turnover, Net revenue, Net revenue growth, Sales growth, Price to earnings ratio, Price to earnings ratio -five years average, Price to book ratio, Price to sales ratio, Dividend per share, Current ratio, Quick ratio, Total debt to equity, margins, asset turnover…
  • 15. Predicting long term movement of stock price (2) • Selected 1739 stocks from different indexes (S&P 1000, FTSE 100 and S&P Europe 350…) • Calculated which ones price grew more than 10% • Used different Machine learning algorithms and 10 fold cross validation for evaluation • Used Python for scripting and Weka toolkit for machine learning
  • 16. Results • Trial with all financial indicators as a features
  • 17. Results (2) • We performed feature selection • Experiment with only 11 indicators
  • 18. 11 indicators • The performance turned out not to be significantly different, but it showed that only 11 indicators are enough
  • 19. FinAnalyzer • Tool that uses a model and Yahoo hidden API • https://github.com/nikolamilosevic86/FinAnalyzer • Open source (GPLv3) • Decision support • Not liable of any loses • Join development (contact me)
  • 20. Behavioural finance • Psychology and emotion influence decision • People follow their peers • Sentiment of the information is shaping the decision
  • 26. Twitter sentiment - challenges • Short text – dense information • Ungrammatical language • Abbreviations • Typos • Emoticons • Links, hashtags, mentions
  • 29. Correlations with sentiment (What we found?) • There is correlation between sentiment and market movement • In time it is variable (some times 5 minutes, some times 5 hours) • Some times ambiguous • More research necessary • When to enter/exit?
  • 30. Conclusion • Finance is all about information • Information flooded world • Machine learning, data science, text mining • Here to HELP! Try them • Predicting without emotional influence • Accountability • Consider all information for better prediction • More than human can digest
  • 31. Reference • Milosevic, Nikola. “Equity forecast: Predicting long term stock price movement using machine learning. ” arXiv preprint arXiv:1603.00751 (2016). • https://arxiv.org/ftp/arxiv/papers/1603/1603.00751.pdf • Martic, Miljan. “Twitter sentiment analysis for foreign exchange market movement orediction.” (2014).