Skip to content

akshay-kap/Stock-Market-forecasting-using-ARIMA-models-in-R

Repository files navigation

Stock forecasting for retail giants using ARIMA models in R

(Refer the report Project_final.pdf for complete explaination of each steps and conclusion reached, please go through appendix to understand the analysis completely)

The methodology is explained below:

● Getting the Data: Monthly closing stock prices are collected for the past 15 years for these four companies and stored in a tidy data format which is manipulated for further analysis.
● Exploratory data analysis: Visual analysis of data pattern and central tendency statistics are observed along with a background information for each of these retail players.
● Decomposition: Understanding basic time series components by decomposing it into fundamental time series properties.
● Transforming data: Data is transformed using mathematical techniques to make variance stable,i.e. preparing it for better fits ARIMA models.
● Stationarity and ACF, PACF plots: Determining data stationarity, plotting ACF and PACF plots to get an intuition for ARIMA model parameters.
● Fitting and selecting ARIMA models: Fitting best seasonal ARIMA models (using auto.arima() in R) and evaluating their performance on out of sample data.
● Model features selection, forecasting and diagnostics: Understanding the best ARIMA model for a given company and predicting the stock prices for next three years and performing diagnostic checks on trained models.
● Conclusion and Future work: The predicted stock prices values are compared across these four companies., results and limitations of the model and commenting on the forward path from the project outcomes.

Few snapshots of the above steps are shown below

● EDA EDA

● Time series Decomposition into individual components Decomposition

● Stationarity and ACF PACF plots Decomposition

● Prediction with 80% and 95% CI ![Prediction all ](/images/forecasting_Walmart_montly_closing prices.PNG)

● Prediction results in tabluar form Prediction all

About

Stock forecasting for retail giants using ARIMA models in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages