SlideShare a Scribd company logo
Stock Market Analysis using
Supervised Machine Learning
Paper by : Kunal Pahwa and Neha Agarwal
Presented by : Priyanshu Gandhi (C008)
● This paper proposes to use machine learning algorithm to predict the future
stock price for exchange by using open source libraries
● In this paper author has talked about:-
○ What is stock market?
○ How share price changing?
○ What data to use for training?
○ How to train your algorithm?
○ What are the result?
○ Some helpful hints.
○ Some common mistake people do.
Overview
Introduction
● Stock market is place where a normal person would trade stocks, make
investments and earn some money out of companies that sell a part of
themselves on this platform.
● A company lists its stock at a price called the IPO :- This is the offer price at
which the company sells the stock and raises money.
● Linear regression in statistics :- Identify the dependents and independent
variables and try to establish or identify an existing relationship amongst
them.
● Accuracy of your classifier ∝ to the amount of data provided and the attributes
selected.
Prediction Model
A. Data Analysis Stage
1. The attributes of the dataset include:
a. Open (Opening price of Stock)
b. High (Highest price possible at an instance of time)
c. Low (Lowest price possible at an instance of time)
d. Close (Closing price of stock)
e. Volume (Total times traded during a day)
f. Split ratio
1. The graphs made for stock analysis use the above attributes to plot them. Such
graphs are called OHLCV graphs
A. Data Analysis Stage
● Adj. Close:- This decides market opening price for the next day and volume
expectancy for the day.
● HL_PCT: This is a derived feature which is defined by:
● PCT_change: This is also a derived feature,defined by:
● Adj. Volume: The volume traded has the most direct impact on future stock
price than any other feature.
B. Training and Testing Stage
We shall preprocess the data to make the data which includes:
● Shifted values of the label attribute by the percentage you want to predict.
● Dataframe format is converted to Numpy array format.
● All NaN data values removed before feeding it to the classifier.
● The data is scaled such that for any value X,
● The data is split into test data and train data respective to its type i.e. label
and feature.
Linear regression is essentially uses the key features to predict relations between
variables based on their dependencies on other features.This form of prediction is
known as Supervised Machine learning.
C. Results
● We shall be plotting a graph of our results as
per our requirements
● There are some standard methods to calculate
accuracy in machine learning, some are as
follows:
○ R^2 value of the model.
○ Adjusted R^2 value
○ RMSE Value
○ Confusion matrix for classification problems.
○ And many more
C. Results
● Accuracy is the component which every
machine learning developer is always
committed to contribute towards.
● Let us look at some of the standard ways to
optimize a machine learning algorithm:
● Unconstrained Optimization
○ Gradient Decent
○ Newton’s Method
○ Batch Learning
○ Stochastic Gradient Decent
● Constrained Optimization
○ Lagrange Duality
○ SVM in primal and Dual forms
○ Constrained Methods
Helpful Hints
A. Requirements and Specification
B. Careful function Analysis
C. Implementation
D. Training & Testing
E. Optimization
Some Common Mistakes
● Bad annotation of training and testing datasets
● Poor understanding of algorithms’ assumptions
● Poor understanding of algorithms’ parameters
● Failure to understand objective
● Not understanding the data
● Avoid leakage (Features, information)
● Not enough data to train the classifier
● Using machine learning where it is not necessary
Conclusion
● Machine learning as we have seen till now, is a very powerful tool and as
evitable, it has some great application.
● Machine learning have found tremendous application and has evolved further
into deep learning and neural networks, but the core idea is more or less the
same for all of them.
● This paper is limited to only supervised machine learning, and tries to explain
only the fundamentals of this complex process.
References
1. Andrew McCallum, Kamal Nigam, Jason Rennie, Kristie Seymore “A Machine learning approach to Building
domain-specific Search engine”, IJCAI, 1999 - Citeseer
2. Yadav, Sameer. (2017). STOCK MARKET VOLATILITY - A STUDY OF INDIAN STOCK MARKET. Global
Journal for Research Analysis. 6. 629-632.
3. Montgomery, D.C., Peck, E.A. and Vining, G.G., 2012. Introduction to linear regression analysis (Vol. 821).
John Wiley & Sons.
4. Draper, N.R.; Smith, H. (1998). Applied Regression Analysis (3rd ed.). John Wiley. ISBN 0-471-17082-8.
5. Robert S. Pindyck and Daniel L. Rubinfeld (1998, 4h ed.). Econometric Models and Economic Forecasts
6. “Linear Regression”, 1997-1998, Yale University http://www.stat.yale.edu/Courses/1997-98/101/linreg.htm
7. Agarwal (July 14, 2017). "Introduction to the Stock Market". Intelligent Economist. Retrieved December 18,
2017.
8. Jason Brownlee, March 2016, “Linear Regression for machine learning”, Machine learning mastery, viewed
on December 2018, https://machinelearningmastery.com/linear-regression-for-machinelearning/
9. Google Developers, Oct 2018, “Decending into ML: Linear Regression”, Google LLC,
https://developers.google.com/machinelearning/crash-course/descending-into-ml/linear-regression
10. Fiess, N.M. and MacDonald, R., 2002. Towards the fundamentals of technical analysis: analysing the
information content of High, Low and Close prices. Economic Modelling, 19(3), pp.353-374.
11. Hurwitz, E. and Marwala, T., 2012. Common mistakes when applying computational intelligence and
machine learning to stock market modelling. arXiv preprint arXiv:1208.4429.
Thank You

More Related Content

What's hot

Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
Aravind Balaji
 
Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
Rajat Sharma
 
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
IRJET Journal
 
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
IAEME Publication
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
samarth70133
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
RastogiAman
 
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
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
eurosigdoc acm
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
ijtsrd
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction
SalmanShezad
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock Prediction
Lim Zhi Yuan (Zane)
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
Shivank Chaudhary
 
House Price Prediction An AI Approach.
House Price Prediction An AI Approach.House Price Prediction An AI Approach.
House Price Prediction An AI Approach.
Nahian Ahmed
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and Prediction
Anil Shrestha
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
ShivakumarSoppannavar
 
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
Dr Sandeep Ranjan
 
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
 
IRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and PredictionIRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and Prediction
IRJET Journal
 

What's hot (20)

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 using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
 
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 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
 
Presentation1
Presentation1Presentation1
Presentation1
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
 
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...
 
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
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock Prediction
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
House Price Prediction An AI Approach.
House Price Prediction An AI Approach.House Price Prediction An AI Approach.
House Price Prediction An AI Approach.
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and Prediction
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
 
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...
 
IRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and PredictionIRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and Prediction
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 

Similar to Stock market analysis using supervised machine learning

Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC ...
Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC                           ...Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC                           ...
Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC ...
PATHALAMRAJESH
 
Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...
Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...
Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...
ijaia
 
Predictive model based on Supervised ML
Predictive model based on Supervised MLPredictive model based on Supervised ML
Predictive model based on Supervised ML
UmeshchandraYadav5
 
Machine learning pipeline with spark ml
Machine learning pipeline with spark mlMachine learning pipeline with spark ml
Machine learning pipeline with spark ml
datamantra
 
Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...
Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...
Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...
Chaudhry Hussain
 
SKLearn Workshop.pptx
SKLearn Workshop.pptxSKLearn Workshop.pptx
SKLearn Workshop.pptx
fsxflyer789Productio
 
Machine learning - session 3
Machine learning - session 3Machine learning - session 3
Machine learning - session 3
Luis Borbon
 
IFTA2020 Kei Nakagawa
IFTA2020 Kei NakagawaIFTA2020 Kei Nakagawa
IFTA2020 Kei Nakagawa
Kei Nakagawa
 
Visualizing and Forecasting Stocks Using Machine Learning
Visualizing and Forecasting Stocks Using Machine LearningVisualizing and Forecasting Stocks Using Machine Learning
Visualizing and Forecasting Stocks Using Machine Learning
IRJET Journal
 
IRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock MarketingIRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock Marketing
IRJET Journal
 
Machine Learning and Deep Learning 4 dummies
Machine Learning and Deep Learning 4 dummies Machine Learning and Deep Learning 4 dummies
Machine Learning and Deep Learning 4 dummies
Dori Waldman
 
Machine learning4dummies
Machine learning4dummiesMachine learning4dummies
Machine learning4dummies
Michael Winer
 
Linear regression model
Linear regression modelLinear regression model
Linear regression model
SatyamDeshPandey
 
Data Analytics Using R - Report
Data Analytics Using R - ReportData Analytics Using R - Report
Data Analytics Using R - Report
Akanksha Gohil
 
Agile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity managementAgile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity management
Agnirudra Sikdar
 
Overview of machine learning
Overview of machine learning Overview of machine learning
Overview of machine learning
SolivarLabs
 
Internship Presentation.pdf
Internship Presentation.pdfInternship Presentation.pdf
Internship Presentation.pdf
vishwajeetparmar1
 
BATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxBATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptx
SurajRavi16
 
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
 
Demand time series analysis and forecasting
Demand time series analysis and forecastingDemand time series analysis and forecasting
Demand time series analysis and forecasting
M Baddar
 

Similar to Stock market analysis using supervised machine learning (20)

Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC ...
Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC                           ...Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC                           ...
Copy of CRICKET MATCH WIN PREDICTOR USING LOGISTIC ...
 
Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...
Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...
Understanding the Applicability of Linear & Non-Linear Models Using a Case-Ba...
 
Predictive model based on Supervised ML
Predictive model based on Supervised MLPredictive model based on Supervised ML
Predictive model based on Supervised ML
 
Machine learning pipeline with spark ml
Machine learning pipeline with spark mlMachine learning pipeline with spark ml
Machine learning pipeline with spark ml
 
Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...
Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...
Final Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal Defence.pptxFinal...
 
SKLearn Workshop.pptx
SKLearn Workshop.pptxSKLearn Workshop.pptx
SKLearn Workshop.pptx
 
Machine learning - session 3
Machine learning - session 3Machine learning - session 3
Machine learning - session 3
 
IFTA2020 Kei Nakagawa
IFTA2020 Kei NakagawaIFTA2020 Kei Nakagawa
IFTA2020 Kei Nakagawa
 
Visualizing and Forecasting Stocks Using Machine Learning
Visualizing and Forecasting Stocks Using Machine LearningVisualizing and Forecasting Stocks Using Machine Learning
Visualizing and Forecasting Stocks Using Machine Learning
 
IRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock MarketingIRJET- Prediction in Stock Marketing
IRJET- Prediction in Stock Marketing
 
Machine Learning and Deep Learning 4 dummies
Machine Learning and Deep Learning 4 dummies Machine Learning and Deep Learning 4 dummies
Machine Learning and Deep Learning 4 dummies
 
Machine learning4dummies
Machine learning4dummiesMachine learning4dummies
Machine learning4dummies
 
Linear regression model
Linear regression modelLinear regression model
Linear regression model
 
Data Analytics Using R - Report
Data Analytics Using R - ReportData Analytics Using R - Report
Data Analytics Using R - Report
 
Agile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity managementAgile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity management
 
Overview of machine learning
Overview of machine learning Overview of machine learning
Overview of machine learning
 
Internship Presentation.pdf
Internship Presentation.pdfInternship Presentation.pdf
Internship Presentation.pdf
 
BATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxBATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptx
 
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...
 
Demand time series analysis and forecasting
Demand time series analysis and forecastingDemand time series analysis and forecasting
Demand time series analysis and forecasting
 

More from Priyanshu Gandhi

introduction to business marketing
introduction to business marketingintroduction to business marketing
introduction to business marketing
Priyanshu Gandhi
 
demand forecasting
demand forecastingdemand forecasting
demand forecasting
Priyanshu Gandhi
 
Miles Online TravelingAgent
Miles Online TravelingAgentMiles Online TravelingAgent
Miles Online TravelingAgent
Priyanshu Gandhi
 
Foundation to indivudal behaviour personality theories
Foundation to indivudal behaviour personality theoriesFoundation to indivudal behaviour personality theories
Foundation to indivudal behaviour personality theories
Priyanshu Gandhi
 
Stress management
Stress managementStress management
Stress management
Priyanshu Gandhi
 
Introduction to organizational behavior (OB)
Introduction to organizational behavior (OB)Introduction to organizational behavior (OB)
Introduction to organizational behavior (OB)
Priyanshu Gandhi
 
Motivation theories and application
Motivation theories and applicationMotivation theories and application
Motivation theories and application
Priyanshu Gandhi
 
Foundations of individual decision making, groups, teams
Foundations of individual decision making, groups, teamsFoundations of individual decision making, groups, teams
Foundations of individual decision making, groups, teams
Priyanshu Gandhi
 
Traditional or religious
Traditional or religiousTraditional or religious
Traditional or religious
Priyanshu Gandhi
 
Stickers Application Report
Stickers Application ReportStickers Application Report
Stickers Application Report
Priyanshu Gandhi
 
Marketing Concepts
Marketing ConceptsMarketing Concepts
Marketing Concepts
Priyanshu Gandhi
 
Miles - Travel Agent
Miles - Travel AgentMiles - Travel Agent
Miles - Travel Agent
Priyanshu Gandhi
 
Reasons Behind Indian Traditions & Culture
Reasons Behind Indian Traditions & CultureReasons Behind Indian Traditions & Culture
Reasons Behind Indian Traditions & Culture
Priyanshu Gandhi
 
Broken access control
Broken access controlBroken access control
Broken access control
Priyanshu Gandhi
 

More from Priyanshu Gandhi (14)

introduction to business marketing
introduction to business marketingintroduction to business marketing
introduction to business marketing
 
demand forecasting
demand forecastingdemand forecasting
demand forecasting
 
Miles Online TravelingAgent
Miles Online TravelingAgentMiles Online TravelingAgent
Miles Online TravelingAgent
 
Foundation to indivudal behaviour personality theories
Foundation to indivudal behaviour personality theoriesFoundation to indivudal behaviour personality theories
Foundation to indivudal behaviour personality theories
 
Stress management
Stress managementStress management
Stress management
 
Introduction to organizational behavior (OB)
Introduction to organizational behavior (OB)Introduction to organizational behavior (OB)
Introduction to organizational behavior (OB)
 
Motivation theories and application
Motivation theories and applicationMotivation theories and application
Motivation theories and application
 
Foundations of individual decision making, groups, teams
Foundations of individual decision making, groups, teamsFoundations of individual decision making, groups, teams
Foundations of individual decision making, groups, teams
 
Traditional or religious
Traditional or religiousTraditional or religious
Traditional or religious
 
Stickers Application Report
Stickers Application ReportStickers Application Report
Stickers Application Report
 
Marketing Concepts
Marketing ConceptsMarketing Concepts
Marketing Concepts
 
Miles - Travel Agent
Miles - Travel AgentMiles - Travel Agent
Miles - Travel Agent
 
Reasons Behind Indian Traditions & Culture
Reasons Behind Indian Traditions & CultureReasons Behind Indian Traditions & Culture
Reasons Behind Indian Traditions & Culture
 
Broken access control
Broken access controlBroken access control
Broken access control
 

Recently uploaded

what is the future of Pi Network currency.
what is the future of Pi Network currency.what is the future of Pi Network currency.
what is the future of Pi Network currency.
DOT TECH
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
ydubwyt
 
Scope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theoriesScope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theories
nomankalyar153
 
how to sell pi coins on Bitmart crypto exchange
how to sell pi coins on Bitmart crypto exchangehow to sell pi coins on Bitmart crypto exchange
how to sell pi coins on Bitmart crypto exchange
DOT TECH
 
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit CardPoonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
nickysharmasucks
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
marketing367770
 
what is a pi whale and how to access one.
what is a pi whale and how to access one.what is a pi whale and how to access one.
what is a pi whale and how to access one.
DOT TECH
 
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
ydubwyt
 
how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
DOT TECH
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
FinTech Belgium
 
how can I sell my pi coins for cash in a pi APP
how can I sell my pi coins for cash in a pi APPhow can I sell my pi coins for cash in a pi APP
how can I sell my pi coins for cash in a pi APP
DOT TECH
 
Proposer Builder Separation Problem in Ethereum
Proposer Builder Separation Problem in EthereumProposer Builder Separation Problem in Ethereum
Proposer Builder Separation Problem in Ethereum
RasoulRamezanian1
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
DOT TECH
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
DOT TECH
 
The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...
Antonis Zairis
 
how can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYChow can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYC
DOT TECH
 
Summary of financial results for 1Q2024
Summary of financial  results for 1Q2024Summary of financial  results for 1Q2024
Summary of financial results for 1Q2024
InterCars
 
Introduction to Indian Financial System ()
Introduction to Indian Financial System ()Introduction to Indian Financial System ()
Introduction to Indian Financial System ()
Avanish Goel
 
PF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptxPF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptx
GunjanSharma28848
 
MERCHANTBANKING-PDF complete picture.pdf
MERCHANTBANKING-PDF complete picture.pdfMERCHANTBANKING-PDF complete picture.pdf
MERCHANTBANKING-PDF complete picture.pdf
Sudarshan Dakuru
 

Recently uploaded (20)

what is the future of Pi Network currency.
what is the future of Pi Network currency.what is the future of Pi Network currency.
what is the future of Pi Network currency.
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
 
Scope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theoriesScope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theories
 
how to sell pi coins on Bitmart crypto exchange
how to sell pi coins on Bitmart crypto exchangehow to sell pi coins on Bitmart crypto exchange
how to sell pi coins on Bitmart crypto exchange
 
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit CardPoonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
 
what is a pi whale and how to access one.
what is a pi whale and how to access one.what is a pi whale and how to access one.
what is a pi whale and how to access one.
 
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
一比一原版UOL毕业证利物浦大学毕业证成绩单如何办理
 
how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
 
how can I sell my pi coins for cash in a pi APP
how can I sell my pi coins for cash in a pi APPhow can I sell my pi coins for cash in a pi APP
how can I sell my pi coins for cash in a pi APP
 
Proposer Builder Separation Problem in Ethereum
Proposer Builder Separation Problem in EthereumProposer Builder Separation Problem in Ethereum
Proposer Builder Separation Problem in Ethereum
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
 
The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...The new type of smart, sustainable entrepreneurship and the next day | Europe...
The new type of smart, sustainable entrepreneurship and the next day | Europe...
 
how can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYChow can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYC
 
Summary of financial results for 1Q2024
Summary of financial  results for 1Q2024Summary of financial  results for 1Q2024
Summary of financial results for 1Q2024
 
Introduction to Indian Financial System ()
Introduction to Indian Financial System ()Introduction to Indian Financial System ()
Introduction to Indian Financial System ()
 
PF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptxPF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptx
 
MERCHANTBANKING-PDF complete picture.pdf
MERCHANTBANKING-PDF complete picture.pdfMERCHANTBANKING-PDF complete picture.pdf
MERCHANTBANKING-PDF complete picture.pdf
 

Stock market analysis using supervised machine learning

  • 1. Stock Market Analysis using Supervised Machine Learning Paper by : Kunal Pahwa and Neha Agarwal Presented by : Priyanshu Gandhi (C008)
  • 2. ● This paper proposes to use machine learning algorithm to predict the future stock price for exchange by using open source libraries ● In this paper author has talked about:- ○ What is stock market? ○ How share price changing? ○ What data to use for training? ○ How to train your algorithm? ○ What are the result? ○ Some helpful hints. ○ Some common mistake people do. Overview
  • 3. Introduction ● Stock market is place where a normal person would trade stocks, make investments and earn some money out of companies that sell a part of themselves on this platform. ● A company lists its stock at a price called the IPO :- This is the offer price at which the company sells the stock and raises money. ● Linear regression in statistics :- Identify the dependents and independent variables and try to establish or identify an existing relationship amongst them. ● Accuracy of your classifier ∝ to the amount of data provided and the attributes selected.
  • 4. Prediction Model A. Data Analysis Stage 1. The attributes of the dataset include: a. Open (Opening price of Stock) b. High (Highest price possible at an instance of time) c. Low (Lowest price possible at an instance of time) d. Close (Closing price of stock) e. Volume (Total times traded during a day) f. Split ratio 1. The graphs made for stock analysis use the above attributes to plot them. Such graphs are called OHLCV graphs
  • 5. A. Data Analysis Stage ● Adj. Close:- This decides market opening price for the next day and volume expectancy for the day. ● HL_PCT: This is a derived feature which is defined by: ● PCT_change: This is also a derived feature,defined by: ● Adj. Volume: The volume traded has the most direct impact on future stock price than any other feature.
  • 6. B. Training and Testing Stage We shall preprocess the data to make the data which includes: ● Shifted values of the label attribute by the percentage you want to predict. ● Dataframe format is converted to Numpy array format. ● All NaN data values removed before feeding it to the classifier. ● The data is scaled such that for any value X, ● The data is split into test data and train data respective to its type i.e. label and feature. Linear regression is essentially uses the key features to predict relations between variables based on their dependencies on other features.This form of prediction is known as Supervised Machine learning.
  • 7. C. Results ● We shall be plotting a graph of our results as per our requirements ● There are some standard methods to calculate accuracy in machine learning, some are as follows: ○ R^2 value of the model. ○ Adjusted R^2 value ○ RMSE Value ○ Confusion matrix for classification problems. ○ And many more
  • 8. C. Results ● Accuracy is the component which every machine learning developer is always committed to contribute towards. ● Let us look at some of the standard ways to optimize a machine learning algorithm: ● Unconstrained Optimization ○ Gradient Decent ○ Newton’s Method ○ Batch Learning ○ Stochastic Gradient Decent ● Constrained Optimization ○ Lagrange Duality ○ SVM in primal and Dual forms ○ Constrained Methods
  • 9. Helpful Hints A. Requirements and Specification B. Careful function Analysis C. Implementation D. Training & Testing E. Optimization Some Common Mistakes ● Bad annotation of training and testing datasets ● Poor understanding of algorithms’ assumptions ● Poor understanding of algorithms’ parameters ● Failure to understand objective ● Not understanding the data ● Avoid leakage (Features, information) ● Not enough data to train the classifier ● Using machine learning where it is not necessary
  • 10. Conclusion ● Machine learning as we have seen till now, is a very powerful tool and as evitable, it has some great application. ● Machine learning have found tremendous application and has evolved further into deep learning and neural networks, but the core idea is more or less the same for all of them. ● This paper is limited to only supervised machine learning, and tries to explain only the fundamentals of this complex process.
  • 11. References 1. Andrew McCallum, Kamal Nigam, Jason Rennie, Kristie Seymore “A Machine learning approach to Building domain-specific Search engine”, IJCAI, 1999 - Citeseer 2. Yadav, Sameer. (2017). STOCK MARKET VOLATILITY - A STUDY OF INDIAN STOCK MARKET. Global Journal for Research Analysis. 6. 629-632. 3. Montgomery, D.C., Peck, E.A. and Vining, G.G., 2012. Introduction to linear regression analysis (Vol. 821). John Wiley & Sons. 4. Draper, N.R.; Smith, H. (1998). Applied Regression Analysis (3rd ed.). John Wiley. ISBN 0-471-17082-8. 5. Robert S. Pindyck and Daniel L. Rubinfeld (1998, 4h ed.). Econometric Models and Economic Forecasts 6. “Linear Regression”, 1997-1998, Yale University http://www.stat.yale.edu/Courses/1997-98/101/linreg.htm 7. Agarwal (July 14, 2017). "Introduction to the Stock Market". Intelligent Economist. Retrieved December 18, 2017. 8. Jason Brownlee, March 2016, “Linear Regression for machine learning”, Machine learning mastery, viewed on December 2018, https://machinelearningmastery.com/linear-regression-for-machinelearning/ 9. Google Developers, Oct 2018, “Decending into ML: Linear Regression”, Google LLC, https://developers.google.com/machinelearning/crash-course/descending-into-ml/linear-regression 10. Fiess, N.M. and MacDonald, R., 2002. Towards the fundamentals of technical analysis: analysing the information content of High, Low and Close prices. Economic Modelling, 19(3), pp.353-374. 11. Hurwitz, E. and Marwala, T., 2012. Common mistakes when applying computational intelligence and machine learning to stock market modelling. arXiv preprint arXiv:1208.4429.