SlideShare a Scribd company logo
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.

More Related Content

What's hot

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
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market Prediction
MRIDUL GUPTA
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
eurosigdoc acm
 
Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised Learning
Sharvil Katariya
 
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
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction
SalmanShezad
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
samarth70133
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
ShivakumarSoppannavar
 
Performance analysis and prediction of stock market for investment decision u...
Performance analysis and prediction of stock market for investment decision u...Performance analysis and prediction of stock market for investment decision u...
Performance analysis and prediction of stock market for investment decision u...
Hari KC
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
RastogiAman
 
Technical Analysis Of Stock Market
Technical Analysis Of Stock MarketTechnical Analysis Of Stock Market
Technical Analysis Of Stock Market
m.jalan
 
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
A Comparison of Stock Trend Prediction Using Accuracy Driven Neural Network V...
idescitation
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
Arkaprava Kundu
 
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 price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
Rajat Sharma
 
Stock Market Analysis | Introduction
Stock Market Analysis | IntroductionStock Market Analysis | Introduction
Stock Market Analysis | Introduction
Dhanashri Academy
 
Stock-market-prediction.pptx
Stock-market-prediction.pptxStock-market-prediction.pptx
Stock-market-prediction.pptx
rikritiKoirala1
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
Nikola Milosevic
 

What's hot (20)

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
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market Prediction
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised Learning
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
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
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
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 Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
 
Technical Analysis Of Stock Market
Technical Analysis Of Stock MarketTechnical Analysis Of Stock Market
Technical Analysis Of Stock Market
 
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...
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
 
Stock Market Analysis | Introduction
Stock Market Analysis | IntroductionStock Market Analysis | Introduction
Stock Market Analysis | Introduction
 
Stock-market-prediction.pptx
Stock-market-prediction.pptxStock-market-prediction.pptx
Stock-market-prediction.pptx
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 

Similar to 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 Techniques
IRJET 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 FORECASTING
IJMIT 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 Prediction
IRJET 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 Algorithms
IRJET Journal
 
Project report on Share Market application
Project report on Share Market applicationProject report on Share Market application
Project report on Share Market application
KRISHNA 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 technique
Prashant 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 Prediction
IRJET 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 Algorithm
IRJET Journal
 
Stock price prediction using stock eod of day price
Stock price prediction using stock eod of day priceStock price prediction using stock eod of day price
Stock price prediction using stock eod of day price
Ekaantik Software Solutions
 
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 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 Analysis
IRJET Journal
 
Stock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep LearningStock Market Prediction Using Deep Learning
Stock Market Prediction Using Deep Learning
IRJET 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 Analysis
IRJET 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 MODEL
IJCI 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
 
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...
International Journal of Economics and Financial Research
 
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 Journal
 

Similar to 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
 
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
 
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
 

Recently uploaded

Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
AlejandraGmez176757
 
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
correoyaya
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 

Recently uploaded (20)

Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
 
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 

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.