SlideShare uma empresa Scribd logo
1 de 2
Baixar para ler offline
DATA ANALYSIS PROJECT - COMPUTATIONAL MODELING 1
Stock Market Analysis - Risk Analysis & Prediction
Sruti Jain - saj160430@utdallas.edu
Abstract—The aim of the project is to determine the forecasting
techniques to determine future stock prices of IT stocks using
time series analysis and also determining the maximum risk
involved after investing using Monte Carlo techniques. This
analysis aims to construct a portfolio of multiple stocks in order
to diversify the risk and maximizing profit. I have done this by
applying ARIMA (AutoRegressive Integrated Moving Average)
for stock price forecasting by interpreting the seemingly chaotic
market data.
I. INTRODUCTION
THE variations in stock market values is violent & there
are many complex pointers affecting the performance
of stocks. However with the progress in technology, we can
determine an opportunity to gain steady fortune and can help
connoisseurs to find out the most useful pointers to make
improved prediction. The accurate prediction of the share
value is of paramount importance in maximizing the profit of
stock option purchase at low risk.
The next section of the paper will be methodology where we
will explain the model in detail. We shall analyze the results
of our risk and prediction model and we will define the scope
of the project. We will discuss about how to extend the paper
to reach better results.
II. METHODOLOGY
This section gives the detailed analysis of each step involved
in the process of building this model. Each sub section is
mapped to one of the stages in the project.
A. Data Gathering & Pre-Processing
Yahoo Finance is a good source for extracting stock market
data. Using Pandas DataReader, I have extracted data of five
IT stock for 1 year and stored APPLE stock data for the last
8 years for predicting future stock prices using time series
analysis. The attributes that we are primarily concerned with
are Open, High, Low, Close, Volume & Adjacent Close.
Next we take Log of the daily closing value to ensures
that level induced volatility does not interfere with the
stationarity of series. As we are interested in the day to
day change of the stock prices, we take the difference of
the logarithmic closing values. Now we are testing if we
have an Stationarity series as it is a prerequisite for reliable
forecasting. Performed Dickey-Fuller test to determine
whether the series is Stationary or not. The smaller the value
of p, the more the series is stationary.
B. Exploratory Analysis
The moving average (MA) is a simple technical analysis
tool that smooths out price data by creating a constantly
updated average price. The average is taken over a specific
period of time, like 10 days, 20 minutes, 30 weeks, or any
time period the trader chooses. There are advantages to using
a moving average in your trading, as well options on what
type of moving average to use.
Analyzing the IT Stocks together to determine any correlation
relationship between them. The correlation coefficient of
Fig. 1. Correlation Plot of IT Stocks
0.6 indicates a strong correlation between the daily return
values of Microsoft and Google. This analysis can further
be extended by first segmentation of stock based on industry
and then further analysis can be done to determine the choice
of stock within that industry.
C. Prediction Model
The ARIMA - Auto-Regressive-Integrated-Moving-Average
forecasting equation for a stationary time series is a linear
(i.e., regression-type) equation in which the predictors consist
of lags of the dependent variable and/or lags of the forecast
errors. That is: Predicted value of Y = a constant and / or a
weighted sum of one or more recent values of Y and / or a
weighted sum of one or more recent values of the errors. We
used Randomized Grid to determine the hyper-parameters and
for selecting the best model which was then used to predict
the future stock value.
DATA ANALYSIS PROJECT - COMPUTATIONAL MODELING 2
The model predicted the stock forecast value for specific
duration of time along with confidence intervals to determine
the maximum VAR (Value at Risk) while calculating the
anticipated return versus the maximum loss possible.
D. Risk Analysis Model
We can determine the Value at Risk using the Monte Carlo
method. Using the Monte Carlo for running multiple trials
with random market conditions, we can evaluate portfolio
losses for each random trial. Next we aggregate all these
simulations to determine the risky in the stock. Let’s start
with a brief explanation of what we’re going to do.
Geometric Brownian motion (GBM) method was used,
which is technically known as Markov process. This implies
that the stock price follows a random walk and is consistent
with the weak form of the efficient market hypothesis (EMH):
past price information is already incorporated and the next
price movement is ”conditionally independent” of past price
movements. This means that the past information on the price
of a stock is independent of where the stock price will be
in the future, basically meaning, you can’t perfectly predict
the future solely based on the previous price of a stock. The
equation for geometric Brownian motion is given by the
following equation:
∆S
S = µ∆t + σ
√
∆t
We see that the change in the stock price is the current
stock price multiplied by two terms. The first term is known
as ”drift”, which is the average daily return multiplied by the
change of time. The second term is known as ”shock”, for
each time period the stock will ”drift” and then experience a
”shock” which will randomly push the stock price up or down.
By simulating this series of steps of drift and shock thousands
of times, we can begin to do a simulation of where we might
expect the stock price to be.
III. RESULTS AND DISCUSSION
The results of our model are as listed below: Figure 2
indicates the fluctuation in Apple Stock prices for multiple
iterations with respect to the number of days. Choosing the
best model that minimizes error, we have calculated the
predicted value. Table 1 list the predicted vs actual values
for Nokia stock index to get the estimate of the accuracy of
our model.
IV. CONCLUSION
The paper presents extensive method of building ARIMA
model and implementing Monte Carlo method for stock price
risk analysis & prediction. The results found with ARIMA
model demonstrated the potential of ARIMA models to predict
stock prices accurately on short term basis. This project
implementation could guide investors to make profitable in-
vestment decisions. With the results attained, ARIMA models
can compete well with other new forecasting techniques in
short-term prediction.
Fig. 2. Monte Carlo price Analysis of Google Stock index
TABLE I
RESULTS OF NOKIA STOCK INDEX
REFERENCES
[1] Y. Bengio. Practical recommendations for gradient-based training of deep
architectures. In Neural Networks: Tricks of the Trade, pages 437478.
Springer, 2012.
[2] Y. Bengio and F. Gingras. Recurrent neural networks for missing or
asynchronous data. Advances in neural information processing systems,
pages 395401, 1996.
[3] J. Bergstra, O. Breuleux, F. Bastien, P. Lamblin, R. Pascanu, G. Des-
jardins, J. Turian, D. Warde-Farley, and Y. Bengio. Theano: A cpu and
gpu math compiler in python. In Proc. 9th Python in Science Conf, pages
17, 2010.
[4] S. K.Mitra, Optimal Combination of Trading Rules Using Neural Net-
works, International Business Research, vol. 2, no. 1, pp. 86-99, 2009.

Mais conteúdo relacionado

Mais procurados

STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSSTOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSIAEME Publication
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction SalmanShezad
 
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET-  	  Future Stock Price Prediction using LSTM Machine Learning AlgorithmIRJET-  	  Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET- Future Stock Price Prediction using LSTM Machine Learning AlgorithmIRJET Journal
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data miningShivakumarSoppannavar
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learningijtsrd
 
Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural NetRajat Sharma
 
Algorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionAlgorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionRajeev Ranjan
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Predictioneurosigdoc acm
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market PredictionMRIDUL GUPTA
 
Stock market prediction technique:
Stock market prediction technique:Stock market prediction technique:
Stock market prediction technique:Paladion Networks
 
A study of technical analysis in different sectors stocks
A study of technical analysis in different sectors stocksA study of technical analysis in different sectors stocks
A study of technical analysis in different sectors stocksProjects Kart
 
Stock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceStock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceEkaantik Software Solutions
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningAravind Balaji
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptxRastogiAman
 
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle..."Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...Quantopian
 
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 Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPTPrashantGanji4
 

Mais procurados (20)

STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSSTOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
 
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 Analysis
Stock Market AnalysisStock Market Analysis
Stock Market Analysis
 
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
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
 
Algorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionAlgorithmic Trading-An Introduction
Algorithmic Trading-An Introduction
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market Prediction
 
Stock market prediction technique:
Stock market prediction technique:Stock market prediction technique:
Stock market prediction technique:
 
A study of technical analysis in different sectors stocks
A study of technical analysis in different sectors stocksA study of technical analysis in different sectors stocks
A study of technical analysis in different sectors stocks
 
Stock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceStock price prediction using stock eod of day price
Stock price prediction using stock eod of day price
 
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.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
 
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle..."Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
 
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...
 
Stock Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPT
 
Technical analysis
Technical analysisTechnical analysis
Technical analysis
 

Semelhante a Stock market analysis

Rachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra
 
IRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning TechniquesIRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning TechniquesIRJET Journal
 
PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTING
PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTINGPERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTING
PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTINGIJMIT JOURNAL
 
IRJET- Text based Deep Learning for Stock Prediction
IRJET- Text based Deep Learning for Stock PredictionIRJET- Text based Deep Learning for Stock Prediction
IRJET- Text based Deep Learning for Stock PredictionIRJET Journal
 
Survey Paper on Stock Prediction Using Machine Learning Algorithms
Survey Paper on Stock Prediction Using Machine Learning AlgorithmsSurvey Paper on Stock Prediction Using Machine Learning Algorithms
Survey Paper on Stock Prediction Using Machine Learning AlgorithmsIRJET Journal
 
Project report on Share Market application
Project report on Share Market applicationProject report on Share Market application
Project report on Share Market applicationKRISHNA PANDEY
 
Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.
Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.
Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.IRJET Journal
 
Improved stock prediction accuracy using ema technique
Improved stock prediction accuracy using ema techniqueImproved stock prediction accuracy using ema technique
Improved stock prediction accuracy using ema techniquePrashant Singhal
 
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 PredictionIRJET Journal
 
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...IRJET Journal
 
Stock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
Stock Market Prediction using Alpha Vantage API and Machine Learning AlgorithmStock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
Stock Market Prediction using Alpha Vantage API and Machine Learning AlgorithmIRJET Journal
 
IRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET Journal
 
IRJET- Stock Market Prediction using Deep Learning and Sentiment Analysis
IRJET- Stock Market Prediction using Deep Learning and Sentiment AnalysisIRJET- Stock Market Prediction using Deep Learning and Sentiment Analysis
IRJET- Stock Market Prediction using Deep Learning and Sentiment AnalysisIRJET Journal
 
Stock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep LearningStock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep LearningIRJET Journal
 
Data-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment AnalysisData-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment AnalysisIRJET Journal
 
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODELOPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODELIJCI JOURNAL
 
IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...
IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...
IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...IRJET Journal
 
IRJET- Stock Market Forecasting Techniques: A Survey
IRJET- Stock Market Forecasting Techniques: A SurveyIRJET- Stock Market Forecasting Techniques: A Survey
IRJET- Stock Market Forecasting Techniques: A SurveyIRJET Journal
 
IRJET - Stock Market Analysis and Prediction
IRJET - Stock Market Analysis and PredictionIRJET - Stock Market Analysis and Prediction
IRJET - Stock Market Analysis and PredictionIRJET Journal
 

Semelhante a Stock market analysis (20)

Rachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_report
 
IRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning TechniquesIRJET- Stock Market Prediction using Machine Learning Techniques
IRJET- Stock Market Prediction using Machine Learning Techniques
 
PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTING
PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTINGPERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTING
PERFORMANCE ANALYSIS OF HYBRID FORECASTING MODEL IN STOCK MARKET FORECASTING
 
IRJET- Text based Deep Learning for Stock Prediction
IRJET- Text based Deep Learning for Stock PredictionIRJET- Text based Deep Learning for Stock Prediction
IRJET- Text based Deep Learning for Stock Prediction
 
Survey Paper on Stock Prediction Using Machine Learning Algorithms
Survey Paper on Stock Prediction Using Machine Learning AlgorithmsSurvey Paper on Stock Prediction Using Machine Learning Algorithms
Survey Paper on Stock Prediction Using Machine Learning Algorithms
 
Project report on Share Market application
Project report on Share Market applicationProject report on Share Market application
Project report on Share Market application
 
Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.
Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.
Investment Portfolio Risk Manager using Machine Learning and Deep-Learning.
 
Improved stock prediction accuracy using ema technique
Improved stock prediction accuracy using ema techniqueImproved stock prediction accuracy using ema technique
Improved stock prediction accuracy using ema technique
 
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 Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
 
Stock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
Stock Market Prediction using Alpha Vantage API and Machine Learning AlgorithmStock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
Stock Market Prediction using Alpha Vantage API and Machine Learning Algorithm
 
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
 
IRJET- Stock Market Prediction using Deep Learning and Sentiment Analysis
IRJET- Stock Market Prediction using Deep Learning and Sentiment AnalysisIRJET- Stock Market Prediction using Deep Learning and Sentiment Analysis
IRJET- Stock Market Prediction using Deep Learning and Sentiment Analysis
 
Stock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep LearningStock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep Learning
 
Data-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment AnalysisData-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment Analysis
 
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODELOPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL
OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL
 
IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...
IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...
IRJET- Stock Price Prediction using combination of LSTM Neural Networks, ARIM...
 
Predicting Intraday Prices in the Frontier Stock Market of Romania Using Mach...
Predicting Intraday Prices in the Frontier Stock Market of Romania Using Mach...Predicting Intraday Prices in the Frontier Stock Market of Romania Using Mach...
Predicting Intraday Prices in the Frontier Stock Market of Romania Using Mach...
 
IRJET- Stock Market Forecasting Techniques: A Survey
IRJET- Stock Market Forecasting Techniques: A SurveyIRJET- Stock Market Forecasting Techniques: A Survey
IRJET- Stock Market Forecasting Techniques: A Survey
 
IRJET - Stock Market Analysis and Prediction
IRJET - Stock Market Analysis and PredictionIRJET - Stock Market Analysis and Prediction
IRJET - Stock Market Analysis and Prediction
 

Último

Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
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 signalsInvezz1
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
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 Researchmichael115558
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
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
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
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
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
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 interactionfulawalesam
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Último (20)

Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
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
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
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
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
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
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
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...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
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...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
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
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

Stock market analysis

  • 1. DATA ANALYSIS PROJECT - COMPUTATIONAL MODELING 1 Stock Market Analysis - Risk Analysis & Prediction Sruti Jain - saj160430@utdallas.edu Abstract—The aim of the project is to determine the forecasting techniques to determine future stock prices of IT stocks using time series analysis and also determining the maximum risk involved after investing using Monte Carlo techniques. This analysis aims to construct a portfolio of multiple stocks in order to diversify the risk and maximizing profit. I have done this by applying ARIMA (AutoRegressive Integrated Moving Average) for stock price forecasting by interpreting the seemingly chaotic market data. I. INTRODUCTION THE variations in stock market values is violent & there are many complex pointers affecting the performance of stocks. However with the progress in technology, we can determine an opportunity to gain steady fortune and can help connoisseurs to find out the most useful pointers to make improved prediction. The accurate prediction of the share value is of paramount importance in maximizing the profit of stock option purchase at low risk. The next section of the paper will be methodology where we will explain the model in detail. We shall analyze the results of our risk and prediction model and we will define the scope of the project. We will discuss about how to extend the paper to reach better results. II. METHODOLOGY This section gives the detailed analysis of each step involved in the process of building this model. Each sub section is mapped to one of the stages in the project. A. Data Gathering & Pre-Processing Yahoo Finance is a good source for extracting stock market data. Using Pandas DataReader, I have extracted data of five IT stock for 1 year and stored APPLE stock data for the last 8 years for predicting future stock prices using time series analysis. The attributes that we are primarily concerned with are Open, High, Low, Close, Volume & Adjacent Close. Next we take Log of the daily closing value to ensures that level induced volatility does not interfere with the stationarity of series. As we are interested in the day to day change of the stock prices, we take the difference of the logarithmic closing values. Now we are testing if we have an Stationarity series as it is a prerequisite for reliable forecasting. Performed Dickey-Fuller test to determine whether the series is Stationary or not. The smaller the value of p, the more the series is stationary. B. Exploratory Analysis The moving average (MA) is a simple technical analysis tool that smooths out price data by creating a constantly updated average price. The average is taken over a specific period of time, like 10 days, 20 minutes, 30 weeks, or any time period the trader chooses. There are advantages to using a moving average in your trading, as well options on what type of moving average to use. Analyzing the IT Stocks together to determine any correlation relationship between them. The correlation coefficient of Fig. 1. Correlation Plot of IT Stocks 0.6 indicates a strong correlation between the daily return values of Microsoft and Google. This analysis can further be extended by first segmentation of stock based on industry and then further analysis can be done to determine the choice of stock within that industry. C. Prediction Model The ARIMA - Auto-Regressive-Integrated-Moving-Average forecasting equation for a stationary time series is a linear (i.e., regression-type) equation in which the predictors consist of lags of the dependent variable and/or lags of the forecast errors. That is: Predicted value of Y = a constant and / or a weighted sum of one or more recent values of Y and / or a weighted sum of one or more recent values of the errors. We used Randomized Grid to determine the hyper-parameters and for selecting the best model which was then used to predict the future stock value.
  • 2. DATA ANALYSIS PROJECT - COMPUTATIONAL MODELING 2 The model predicted the stock forecast value for specific duration of time along with confidence intervals to determine the maximum VAR (Value at Risk) while calculating the anticipated return versus the maximum loss possible. D. Risk Analysis Model We can determine the Value at Risk using the Monte Carlo method. Using the Monte Carlo for running multiple trials with random market conditions, we can evaluate portfolio losses for each random trial. Next we aggregate all these simulations to determine the risky in the stock. Let’s start with a brief explanation of what we’re going to do. Geometric Brownian motion (GBM) method was used, which is technically known as Markov process. This implies that the stock price follows a random walk and is consistent with the weak form of the efficient market hypothesis (EMH): past price information is already incorporated and the next price movement is ”conditionally independent” of past price movements. This means that the past information on the price of a stock is independent of where the stock price will be in the future, basically meaning, you can’t perfectly predict the future solely based on the previous price of a stock. The equation for geometric Brownian motion is given by the following equation: ∆S S = µ∆t + σ √ ∆t We see that the change in the stock price is the current stock price multiplied by two terms. The first term is known as ”drift”, which is the average daily return multiplied by the change of time. The second term is known as ”shock”, for each time period the stock will ”drift” and then experience a ”shock” which will randomly push the stock price up or down. By simulating this series of steps of drift and shock thousands of times, we can begin to do a simulation of where we might expect the stock price to be. III. RESULTS AND DISCUSSION The results of our model are as listed below: Figure 2 indicates the fluctuation in Apple Stock prices for multiple iterations with respect to the number of days. Choosing the best model that minimizes error, we have calculated the predicted value. Table 1 list the predicted vs actual values for Nokia stock index to get the estimate of the accuracy of our model. IV. CONCLUSION The paper presents extensive method of building ARIMA model and implementing Monte Carlo method for stock price risk analysis & prediction. The results found with ARIMA model demonstrated the potential of ARIMA models to predict stock prices accurately on short term basis. This project implementation could guide investors to make profitable in- vestment decisions. With the results attained, ARIMA models can compete well with other new forecasting techniques in short-term prediction. Fig. 2. Monte Carlo price Analysis of Google Stock index TABLE I RESULTS OF NOKIA STOCK INDEX REFERENCES [1] Y. Bengio. Practical recommendations for gradient-based training of deep architectures. In Neural Networks: Tricks of the Trade, pages 437478. Springer, 2012. [2] Y. Bengio and F. Gingras. Recurrent neural networks for missing or asynchronous data. Advances in neural information processing systems, pages 395401, 1996. [3] J. Bergstra, O. Breuleux, F. Bastien, P. Lamblin, R. Pascanu, G. Des- jardins, J. Turian, D. Warde-Farley, and Y. Bengio. Theano: A cpu and gpu math compiler in python. In Proc. 9th Python in Science Conf, pages 17, 2010. [4] S. K.Mitra, Optimal Combination of Trading Rules Using Neural Net- works, International Business Research, vol. 2, no. 1, pp. 86-99, 2009.