SlideShare a Scribd company logo
1 of 5
Download to read offline
International Journal of Trend in Scientific Research and Development (IJTSRD)
Volume 4 Issue 4, June 2020 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1294
Market Index Forecasting Model
Mitadru Banerjee Chowdhury
Systems Engineer, TCS, West Bengal, Kolkata, India
ABSTRACT
In this paper, I attempt to pull back the curtains from the Stock Market and
figure out how the High Value in the stock market is dependent on the Open
Value, Low Value, Close Value. Once that has been done, we will attempt to
forecast a model of how the market would act overthenextfewcycles.We will
convert that model into a time series and create the ARIMA model. We will
then use the ARIMA model to forecast the possible values for the next cycles.
Depending on the forecast values, we will attempt to predict the range of
maximum and minimum values.
KEYWORDS: ARIMA, forecast
How to cite this paper: Mitadru Banerjee
Chowdhury "Market Index Forecasting
Model" Published in
International Journal
of Trend in Scientific
Research and
Development
(ijtsrd), ISSN: 2456-
6470, Volume-4 |
Issue-4, June 2020,
pp.1294-1298, URL:
www.ijtsrd.com/papers/ijtsrd31475.pdf
Copyright © 2020 by author(s) and
International Journal ofTrendinScientific
Research and Development Journal. This
is an Open Access article distributed
under the terms of
the Creative
CommonsAttribution
License (CC BY 4.0)
(http://creativecommons.org/licenses/by
/4.0)
OVERVIEW
The idea that the stock market is volatile is not new. Rather it is a myth that has percolated over the ages. In fact speculative
bubbles have been existing in the stock market since 1637, when the priceofTulipwentsohighintheNetherlands thatwhenit
crashed it sent a nation into a tizzy . In this paper, I attempt to pull back the curtains, and figure out how theHigh Value in the
stock market is dependent on the Open Value, Low Value, CloseValue.Oncethathasbeendone, we will attempttoforecast
a model of how the market would act over the next few cycles.
We will be using the RStudio to implement the project, in the R programming language. Using R, we will be predicting the
maximum and the minimum possible value, that the BSE SENEX can hit in the next cycle.
Goals
1. Creating a model of the past BSE SENSEX data:The High Value of theSENSEXhastobemodeledonthe OpenValue,Low
Value and CloeValue on the stock market.
2. Forecasting the time series of the SENSEX data:The model generated has to be turned into a time series of the fitted
values on the model.
3. Identifying the expected value of the index: The forecast has to be modeled on the time series of the SENSEX.
Flow of the Project
IJTSRD31475
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1295
From the above image of the flow:
Start:We will install and load all the required packages
Input: We will be using the BSE historical value in the format of a csv file.
Processing of Data:This is where we would process the data to see that the formats are matching.
Creating the Model: We will be using the glmfunction to create a general linear model. We will be modellingonevariable
of the data set against the other variables,thusidentifying theimpacttheindependent variableshaveon thedependent
variable.
Creating the time series representation of the predicted model: We will be using the ts function, to create the time
series of the fitted valuesof the model. The time series will bemodeledonthefittedvaluesofthegeneral linearmodel.The
fitted values represent the values that were predicted which matched with the data set the most.
Forecasting the time series: We will be forecasting the time seriesofthefittedvaluesofthemodel. We will beforecasting
the future by two lags.
Technical Flow
We need to create a data model for the existing data set as we need to modeltheHigh ValueAgainst theLow,CloseandOpen
Values.This allows us to understand the impact the Low, Close and Open Values are having on High Value.
The Model will find the relationship between the High Values and othervariables.Thisrelationcanbemodeledusingeither+,*
or: .
By using the ‘:’, we will find the relationship between the interaction terms of the variables.
By using the ‘*’, we will include both the variables and the interaction term.
By using the ‘+’, we will include only the impact the variables have on each other and not their interaction terms.
We will then be comparing the models based on their AIC scores.The model would help us identify the impact the Open,
Close and Low price has on the High price. We need to compare the models created and pick the one which has the least value
of AIC, as it would mean that this would have the least variance. This would allow us to create a time series for thefittedvalues
(The values that would actually match the data set) of that model. Lower the value of AIC, better is the model.AICisonewayto
understand which model best represents the set of data.
Then we would be able to create the time series component of the Fitted values (This is essentially the High Values of the
Model) of the model. The time series would represent the change in the fitted values of the model over time. We wouldhaveto
stabilize the time series by diffing the time series.The next step would be to create an ARIMAmodel,tocreatea model ofthe
time series with the lags of itself.
Then we will be comparing the residuals of the models, to see if they are white noiseor not. Thatwouldhelpprovetheefficacy
of the model. If the residual corresponds to white noise, then we can be sure that the model is good.
Packages
ggplot2: To plot the model.
Forecast: To forecast the time series of the data set.
Scales: Used to dress the data set.
Steps
1. Loading the packages required for the project:
To install the packages required for the project, we will follow the following steps:
Install.packages (“ggplot2”)
Install.packages (“forecast”)
Install.packages (“scales”)
2. Processing the Inputs:
To process the model, we will be using the BSE SENSEX index over the last 10 years. We can find the historical value of the
SENSEX from the website:
(https://www.bseindia.com/Indices/IndexArchiveData.html).
The data set can be downloaded in the form of a csv file.
You can find the csv file used for this project here:
You can read the file as a data set by the following command:
BSESensex<-read.csv (file.choose()) [#You can then choose the file which was downloaded]
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1296
Plot of the High Price of the BSE SENSEX Index from 2010-2020.
We can plot the above graph by the following code:
plot(BSESensex$High,type = "h",col=BSESensex$Date,main = "The plot of the High values over time in BSE SENSEX from 2010-
2020",xlab = "Time passage in days",ylab = "Index Price")
We can plot the High Values of the Data Set, over time, as stepwise growth.
We can plot the above graph, by the following code:
plot(BSESensex$High,type = "S",main="Plot of the High Value of the BSE Sensex index",xlab = "Time",ylab = "BSE SENSEX
Index Value")
3. Data Pre-processing
This is a vital step, as it will help us both shape the data. The data that has been downloaded from the BSE website, has the
dates arranged in a non csv format. We have to save the Data in the csv format, for us to process the data easily.
4. Data Model
To create the data model, we have to consider that the High valueis dependent on three factors, Open Price, Close Priceand
Low PriceWe create a general linear model of the High value as dependent on the Open and Low values.
BSEModel<-glm(BSE$High~BSE$Open*BSE$Low*BSE$Close)
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1297
This creates the general linear model, BSEModel, which will have the fitted values and the residuals. The
BSEModel$fitted.values, representthevalueswhicharethebestfit.The BSEModel$residualsrepresentthevaluesthathave
not been fitted into the model. The following code can be implemented to create the model.
The code to create and test the Models created:
BSESensexModel1<-glm(BSESensex$High~BSESensex$Open*BSESensex$Low*BSESensex$Close)
BSESensexModel2<-glm(BSESensex$High~BSESensex$Open+BSESensex$Low+BSESensex$Close)
BSESensexModel3<-glm(BSESensex$High~BSESensex$Open*BSESensex$Low+BSESensex$Close)
BSESensexModel4<-glm(BSESensex$High~BSESensex$Open+BSESensex$Low*BSESensex$Close)
BSESensexModel5<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low:BSESensex$Close)
BSESensexModel6<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low+BSESensex$Close)
BSESensexModel7<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low*BSESensex$Close)
BSESensexModel8<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low+BSESensex$Close)
BSESensexModel9<-glm(BSESensex$High~BSESensex$Open+BSESensex$Low:BSESensex$Close)
BSESensexModel10<-glm(BSESensex$High~BSESensex$Open*BSESensex$Low:BSESensex$Close)
AIC(BSESensexModel1,BSESensexModel2,BSESensexModel3,BSESensexModel4,BSESensexModel5,B
SESensexModel6,BSESensexModel7,BSESensexModel8,BSESensexModel9,BSESensexModel10)
Plot of the Fitted Values of BSE SENSEX Model
plot(BSESensexModel2$fitted.values,type="h",main="Plot of the Fitted Values of the BSE Sensex
model.",xlab="Time in years",ylab="BSE SENSEX Index value",col=BSESensexModel2$coefficients)
5. Time Series of the fitted values
We will convert the fitted values of the Model into a time series. We will then plot the Time Series, to chart the trend line of the
values. BSEFittedTS holds the time series of the fitted values of the model.
Plot of the Time Series representation of the Fitted Values of Sensex Model.
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1298
plot(BSESenseTimeSeries,main="Plot of the Time Series representation of the Fitted Values of the Sensex
model.",xlab="Time in years",ylab="BSE SENSEX Index value")
6. ARIMA and Forecasting the Time Series
We will create an ARIMA Modelof the time series, to create an auto-regressiveandmoving averagemodel ofthe TimeSeries.
We will use this model to forecast the possible values of the time series.The idea is to predict the possible range of values for a
cycle in the future.
Code to create the Arima Model of the BSESensex Time Series:
#Calculating the ARIMA model of the Time Series
BSESensexArimaModel<-auto.arima(BSESensexTimeSeries)
#Calculating the Forecast of the BSESensexArimaModel, fitted values.
BSESensexArimaForecast<-forecast(BSESensexArimaModel$fitted)plot(BSESensexArimaModel$fitted)
Plot of BSE SENSEX Forecast against the year
plot(BSESensexArimaForecast,type = "h",main = "Plot of BSE SENSEX Forecast against the years",xlab =
"Time in years",ylab = "Index value of BSE Sensex",col = BSESensexArimaForecast$x)
It is vital to figure out the maximum and minimum possible
values for the next cycle.
We will be finding the maximum and minimum possible
values, from the forecast Data Frame. We will be using the
BSESensexArimaForecast, to understand the approximate
movement of the Index.
> max(BSESensexArimaForecast$fitted)
[1] 42143.86
> min(BSESensexArimaForecast$fitted)
[1] 15370.33
Conclusion
In the project we:
Loaded the data.
Created multiple models.
Compared the models, to find out the best fit.
Created a time series of the fitted values of the model.
Created the ARIMA model of the time series.
Forecast the model.
Plot the forecast.
Predict the range of possible values for the next cycle.
Thus we predicted the values of the model.
All resources of the project can be foundintheprovidedlink.

More Related Content

Similar to Market Index Forecasting Model

Stock market analysis
Stock market analysisStock market analysis
Stock market analysisSruti Jain
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginnerexcel content
 
House price prediction
House price predictionHouse price prediction
House price predictionSabahBegum
 
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
 
Algorithmic Trading Deutsche Borse Public Dataset
Algorithmic Trading Deutsche Borse Public DatasetAlgorithmic Trading Deutsche Borse Public Dataset
Algorithmic Trading Deutsche Borse Public DatasetMarjan Ahmed
 
IRJET- Automatic Text Summarization using Text Rank
IRJET- Automatic Text Summarization using Text RankIRJET- Automatic Text Summarization using Text Rank
IRJET- Automatic Text Summarization using Text RankIRJET Journal
 
A novel hybrid deep learning model for price prediction
A novel hybrid deep learning model for price prediction A novel hybrid deep learning model for price prediction
A novel hybrid deep learning model for price prediction IJECEIAES
 
Company segmentation - an approach with R
Company segmentation - an approach with RCompany segmentation - an approach with R
Company segmentation - an approach with RCasper Crause
 
BATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxBATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxSurajRavi16
 
Key projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIKey projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIVijayananda Mohire
 
BIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptxBIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptxLSURYAPRAKASHREDDY
 
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 TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIESSTOCK PRICE PREDICTION USING TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIESIRJET Journal
 
STOCK PRICE PREDICTION USING TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIESSTOCK PRICE PREDICTION USING TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIESIRJET Journal
 
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHONSTOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHONIRJET Journal
 
ENGR 132 Final Project
ENGR 132 Final ProjectENGR 132 Final Project
ENGR 132 Final ProjectMia Sheppard
 
Data Trend Analysis by Assigning Polynomial Function For Given Data Set
Data Trend Analysis by Assigning Polynomial Function For Given Data SetData Trend Analysis by Assigning Polynomial Function For Given Data Set
Data Trend Analysis by Assigning Polynomial Function For Given Data SetIJCERT
 

Similar to Market Index Forecasting Model (20)

Stock market analysis
Stock market analysisStock market analysis
Stock market analysis
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginner
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginner
 
House price prediction
House price predictionHouse price prediction
House price prediction
 
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
 
Algorithmic Trading Deutsche Borse Public Dataset
Algorithmic Trading Deutsche Borse Public DatasetAlgorithmic Trading Deutsche Borse Public Dataset
Algorithmic Trading Deutsche Borse Public Dataset
 
IRJET- Automatic Text Summarization using Text Rank
IRJET- Automatic Text Summarization using Text RankIRJET- Automatic Text Summarization using Text Rank
IRJET- Automatic Text Summarization using Text Rank
 
A novel hybrid deep learning model for price prediction
A novel hybrid deep learning model for price prediction A novel hybrid deep learning model for price prediction
A novel hybrid deep learning model for price prediction
 
Data Mining
Data MiningData Mining
Data Mining
 
Company segmentation - an approach with R
Company segmentation - an approach with RCompany segmentation - an approach with R
Company segmentation - an approach with R
 
BATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxBATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptx
 
Key projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIKey projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AI
 
BIG MART SALES.pptx
BIG MART SALES.pptxBIG MART SALES.pptx
BIG MART SALES.pptx
 
BIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptxBIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptx
 
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 TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIESSTOCK PRICE PREDICTION USING TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIES
 
STOCK PRICE PREDICTION USING TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIESSTOCK PRICE PREDICTION USING TIME SERIES
STOCK PRICE PREDICTION USING TIME SERIES
 
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHONSTOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
 
ENGR 132 Final Project
ENGR 132 Final ProjectENGR 132 Final Project
ENGR 132 Final Project
 
Data Trend Analysis by Assigning Polynomial Function For Given Data Set
Data Trend Analysis by Assigning Polynomial Function For Given Data SetData Trend Analysis by Assigning Polynomial Function For Given Data Set
Data Trend Analysis by Assigning Polynomial Function For Given Data Set
 

More from ijtsrd

‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementationijtsrd
 
Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...ijtsrd
 
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and ProspectsDynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and Prospectsijtsrd
 
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...ijtsrd
 
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...ijtsrd
 
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...ijtsrd
 
Problems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A StudyProblems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A Studyijtsrd
 
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...ijtsrd
 
The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...ijtsrd
 
A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...ijtsrd
 
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...ijtsrd
 
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...ijtsrd
 
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. SadikuSustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadikuijtsrd
 
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...ijtsrd
 
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...ijtsrd
 
Activating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment MapActivating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment Mapijtsrd
 
Educational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger SocietyEducational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger Societyijtsrd
 
Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...ijtsrd
 
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...ijtsrd
 
Streamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine LearningStreamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine Learningijtsrd
 

More from ijtsrd (20)

‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation
 
Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...
 
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and ProspectsDynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
 
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
 
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
 
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
 
Problems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A StudyProblems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A Study
 
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
 
The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...
 
A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...
 
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
 
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
 
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. SadikuSustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
 
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
 
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
 
Activating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment MapActivating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment Map
 
Educational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger SocietyEducational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger Society
 
Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...
 
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
 
Streamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine LearningStreamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine Learning
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Market Index Forecasting Model

  • 1. International Journal of Trend in Scientific Research and Development (IJTSRD) Volume 4 Issue 4, June 2020 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470 @ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1294 Market Index Forecasting Model Mitadru Banerjee Chowdhury Systems Engineer, TCS, West Bengal, Kolkata, India ABSTRACT In this paper, I attempt to pull back the curtains from the Stock Market and figure out how the High Value in the stock market is dependent on the Open Value, Low Value, Close Value. Once that has been done, we will attempt to forecast a model of how the market would act overthenextfewcycles.We will convert that model into a time series and create the ARIMA model. We will then use the ARIMA model to forecast the possible values for the next cycles. Depending on the forecast values, we will attempt to predict the range of maximum and minimum values. KEYWORDS: ARIMA, forecast How to cite this paper: Mitadru Banerjee Chowdhury "Market Index Forecasting Model" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456- 6470, Volume-4 | Issue-4, June 2020, pp.1294-1298, URL: www.ijtsrd.com/papers/ijtsrd31475.pdf Copyright © 2020 by author(s) and International Journal ofTrendinScientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative CommonsAttribution License (CC BY 4.0) (http://creativecommons.org/licenses/by /4.0) OVERVIEW The idea that the stock market is volatile is not new. Rather it is a myth that has percolated over the ages. In fact speculative bubbles have been existing in the stock market since 1637, when the priceofTulipwentsohighintheNetherlands thatwhenit crashed it sent a nation into a tizzy . In this paper, I attempt to pull back the curtains, and figure out how theHigh Value in the stock market is dependent on the Open Value, Low Value, CloseValue.Oncethathasbeendone, we will attempttoforecast a model of how the market would act over the next few cycles. We will be using the RStudio to implement the project, in the R programming language. Using R, we will be predicting the maximum and the minimum possible value, that the BSE SENEX can hit in the next cycle. Goals 1. Creating a model of the past BSE SENSEX data:The High Value of theSENSEXhastobemodeledonthe OpenValue,Low Value and CloeValue on the stock market. 2. Forecasting the time series of the SENSEX data:The model generated has to be turned into a time series of the fitted values on the model. 3. Identifying the expected value of the index: The forecast has to be modeled on the time series of the SENSEX. Flow of the Project IJTSRD31475
  • 2. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1295 From the above image of the flow: Start:We will install and load all the required packages Input: We will be using the BSE historical value in the format of a csv file. Processing of Data:This is where we would process the data to see that the formats are matching. Creating the Model: We will be using the glmfunction to create a general linear model. We will be modellingonevariable of the data set against the other variables,thusidentifying theimpacttheindependent variableshaveon thedependent variable. Creating the time series representation of the predicted model: We will be using the ts function, to create the time series of the fitted valuesof the model. The time series will bemodeledonthefittedvaluesofthegeneral linearmodel.The fitted values represent the values that were predicted which matched with the data set the most. Forecasting the time series: We will be forecasting the time seriesofthefittedvaluesofthemodel. We will beforecasting the future by two lags. Technical Flow We need to create a data model for the existing data set as we need to modeltheHigh ValueAgainst theLow,CloseandOpen Values.This allows us to understand the impact the Low, Close and Open Values are having on High Value. The Model will find the relationship between the High Values and othervariables.Thisrelationcanbemodeledusingeither+,* or: . By using the ‘:’, we will find the relationship between the interaction terms of the variables. By using the ‘*’, we will include both the variables and the interaction term. By using the ‘+’, we will include only the impact the variables have on each other and not their interaction terms. We will then be comparing the models based on their AIC scores.The model would help us identify the impact the Open, Close and Low price has on the High price. We need to compare the models created and pick the one which has the least value of AIC, as it would mean that this would have the least variance. This would allow us to create a time series for thefittedvalues (The values that would actually match the data set) of that model. Lower the value of AIC, better is the model.AICisonewayto understand which model best represents the set of data. Then we would be able to create the time series component of the Fitted values (This is essentially the High Values of the Model) of the model. The time series would represent the change in the fitted values of the model over time. We wouldhaveto stabilize the time series by diffing the time series.The next step would be to create an ARIMAmodel,tocreatea model ofthe time series with the lags of itself. Then we will be comparing the residuals of the models, to see if they are white noiseor not. Thatwouldhelpprovetheefficacy of the model. If the residual corresponds to white noise, then we can be sure that the model is good. Packages ggplot2: To plot the model. Forecast: To forecast the time series of the data set. Scales: Used to dress the data set. Steps 1. Loading the packages required for the project: To install the packages required for the project, we will follow the following steps: Install.packages (“ggplot2”) Install.packages (“forecast”) Install.packages (“scales”) 2. Processing the Inputs: To process the model, we will be using the BSE SENSEX index over the last 10 years. We can find the historical value of the SENSEX from the website: (https://www.bseindia.com/Indices/IndexArchiveData.html). The data set can be downloaded in the form of a csv file. You can find the csv file used for this project here: You can read the file as a data set by the following command: BSESensex<-read.csv (file.choose()) [#You can then choose the file which was downloaded]
  • 3. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1296 Plot of the High Price of the BSE SENSEX Index from 2010-2020. We can plot the above graph by the following code: plot(BSESensex$High,type = "h",col=BSESensex$Date,main = "The plot of the High values over time in BSE SENSEX from 2010- 2020",xlab = "Time passage in days",ylab = "Index Price") We can plot the High Values of the Data Set, over time, as stepwise growth. We can plot the above graph, by the following code: plot(BSESensex$High,type = "S",main="Plot of the High Value of the BSE Sensex index",xlab = "Time",ylab = "BSE SENSEX Index Value") 3. Data Pre-processing This is a vital step, as it will help us both shape the data. The data that has been downloaded from the BSE website, has the dates arranged in a non csv format. We have to save the Data in the csv format, for us to process the data easily. 4. Data Model To create the data model, we have to consider that the High valueis dependent on three factors, Open Price, Close Priceand Low PriceWe create a general linear model of the High value as dependent on the Open and Low values. BSEModel<-glm(BSE$High~BSE$Open*BSE$Low*BSE$Close)
  • 4. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1297 This creates the general linear model, BSEModel, which will have the fitted values and the residuals. The BSEModel$fitted.values, representthevalueswhicharethebestfit.The BSEModel$residualsrepresentthevaluesthathave not been fitted into the model. The following code can be implemented to create the model. The code to create and test the Models created: BSESensexModel1<-glm(BSESensex$High~BSESensex$Open*BSESensex$Low*BSESensex$Close) BSESensexModel2<-glm(BSESensex$High~BSESensex$Open+BSESensex$Low+BSESensex$Close) BSESensexModel3<-glm(BSESensex$High~BSESensex$Open*BSESensex$Low+BSESensex$Close) BSESensexModel4<-glm(BSESensex$High~BSESensex$Open+BSESensex$Low*BSESensex$Close) BSESensexModel5<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low:BSESensex$Close) BSESensexModel6<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low+BSESensex$Close) BSESensexModel7<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low*BSESensex$Close) BSESensexModel8<-glm(BSESensex$High~BSESensex$Open:BSESensex$Low+BSESensex$Close) BSESensexModel9<-glm(BSESensex$High~BSESensex$Open+BSESensex$Low:BSESensex$Close) BSESensexModel10<-glm(BSESensex$High~BSESensex$Open*BSESensex$Low:BSESensex$Close) AIC(BSESensexModel1,BSESensexModel2,BSESensexModel3,BSESensexModel4,BSESensexModel5,B SESensexModel6,BSESensexModel7,BSESensexModel8,BSESensexModel9,BSESensexModel10) Plot of the Fitted Values of BSE SENSEX Model plot(BSESensexModel2$fitted.values,type="h",main="Plot of the Fitted Values of the BSE Sensex model.",xlab="Time in years",ylab="BSE SENSEX Index value",col=BSESensexModel2$coefficients) 5. Time Series of the fitted values We will convert the fitted values of the Model into a time series. We will then plot the Time Series, to chart the trend line of the values. BSEFittedTS holds the time series of the fitted values of the model. Plot of the Time Series representation of the Fitted Values of Sensex Model.
  • 5. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD31475 | Volume – 4 | Issue – 4 | May-June 2020 Page 1298 plot(BSESenseTimeSeries,main="Plot of the Time Series representation of the Fitted Values of the Sensex model.",xlab="Time in years",ylab="BSE SENSEX Index value") 6. ARIMA and Forecasting the Time Series We will create an ARIMA Modelof the time series, to create an auto-regressiveandmoving averagemodel ofthe TimeSeries. We will use this model to forecast the possible values of the time series.The idea is to predict the possible range of values for a cycle in the future. Code to create the Arima Model of the BSESensex Time Series: #Calculating the ARIMA model of the Time Series BSESensexArimaModel<-auto.arima(BSESensexTimeSeries) #Calculating the Forecast of the BSESensexArimaModel, fitted values. BSESensexArimaForecast<-forecast(BSESensexArimaModel$fitted)plot(BSESensexArimaModel$fitted) Plot of BSE SENSEX Forecast against the year plot(BSESensexArimaForecast,type = "h",main = "Plot of BSE SENSEX Forecast against the years",xlab = "Time in years",ylab = "Index value of BSE Sensex",col = BSESensexArimaForecast$x) It is vital to figure out the maximum and minimum possible values for the next cycle. We will be finding the maximum and minimum possible values, from the forecast Data Frame. We will be using the BSESensexArimaForecast, to understand the approximate movement of the Index. > max(BSESensexArimaForecast$fitted) [1] 42143.86 > min(BSESensexArimaForecast$fitted) [1] 15370.33 Conclusion In the project we: Loaded the data. Created multiple models. Compared the models, to find out the best fit. Created a time series of the fitted values of the model. Created the ARIMA model of the time series. Forecast the model. Plot the forecast. Predict the range of possible values for the next cycle. Thus we predicted the values of the model. All resources of the project can be foundintheprovidedlink.