SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
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.

Contenu connexe

Tendances

Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural NetRajat Sharma
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock marketsNikola Milosevic
 
Stock Market Analysis | Introduction
Stock Market Analysis | IntroductionStock Market Analysis | Introduction
Stock Market Analysis | IntroductionDhanashri Academy
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock PredictionLim Zhi Yuan (Zane)
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptQuantInsti
 
Quant trading with artificial intelligence
Quant trading with artificial intelligenceQuant trading with artificial intelligence
Quant trading with artificial intelligenceRoger Lee, CFA
 
Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic TradingAlice Chan
 
Dual Momentum Investing by Gary Antonacci QuantCon 2016
Dual Momentum Investing by Gary Antonacci QuantCon 2016Dual Momentum Investing by Gary Antonacci QuantCon 2016
Dual Momentum Investing by Gary Antonacci QuantCon 2016Quantopian
 
Stock-market-prediction.pptx
Stock-market-prediction.pptxStock-market-prediction.pptx
Stock-market-prediction.pptxrikritiKoirala1
 
Algo trading with machine learning ppt
Algo trading with machine learning pptAlgo trading with machine learning ppt
Algo trading with machine learning pptDeb prakash ganguly
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...Quantopian
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianJess Stauth
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learningPriyanshu Gandhi
 
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
 
Algorithmic Trading: an Overview
Algorithmic Trading: an Overview Algorithmic Trading: an Overview
Algorithmic Trading: an Overview EXANTE
 
Technical analysis OF STOCK MARKET presentation of mba 4 sem FINANCE PPT
Technical analysis OF STOCK MARKET  presentation of mba 4 sem FINANCE PPTTechnical analysis OF STOCK MARKET  presentation of mba 4 sem FINANCE PPT
Technical analysis OF STOCK MARKET presentation of mba 4 sem FINANCE PPTBabasab Patil
 
The Impact of Algorithmic Trading
The Impact of Algorithmic TradingThe Impact of Algorithmic Trading
The Impact of Algorithmic TradingLov Loothra
 

Tendances (20)

Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 
Presentation1
Presentation1Presentation1
Presentation1
 
Stock Market Analysis | Introduction
Stock Market Analysis | IntroductionStock Market Analysis | Introduction
Stock Market Analysis | Introduction
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock Prediction
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar ppt
 
Quant trading with artificial intelligence
Quant trading with artificial intelligenceQuant trading with artificial intelligence
Quant trading with artificial intelligence
 
Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic Trading
 
Dual Momentum Investing by Gary Antonacci QuantCon 2016
Dual Momentum Investing by Gary Antonacci QuantCon 2016Dual Momentum Investing by Gary Antonacci QuantCon 2016
Dual Momentum Investing by Gary Antonacci QuantCon 2016
 
Stock market.
Stock market.Stock market.
Stock market.
 
Stock-market-prediction.pptx
Stock-market-prediction.pptxStock-market-prediction.pptx
Stock-market-prediction.pptx
 
Algo trading with machine learning ppt
Algo trading with machine learning pptAlgo trading with machine learning ppt
Algo trading with machine learning ppt
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on Quantopian
 
Online trading
Online tradingOnline trading
Online trading
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learning
 
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
 
Algorithmic Trading: an Overview
Algorithmic Trading: an Overview Algorithmic Trading: an Overview
Algorithmic Trading: an Overview
 
Technical analysis OF STOCK MARKET presentation of mba 4 sem FINANCE PPT
Technical analysis OF STOCK MARKET  presentation of mba 4 sem FINANCE PPTTechnical analysis OF STOCK MARKET  presentation of mba 4 sem FINANCE PPT
Technical analysis OF STOCK MARKET presentation of mba 4 sem FINANCE PPT
 
The Impact of Algorithmic Trading
The Impact of Algorithmic TradingThe Impact of Algorithmic Trading
The Impact of Algorithmic Trading
 

Similaire à 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
 
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
 
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
 

Similaire à 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
 

Dernier

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
 
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 me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
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
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 

Dernier (20)

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...
 
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 me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
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
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 

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.