Skip to content

S&P 500 last 10 years data analysis. Visualize and Compare Data for trends. Time Series Model created using Prophet. Forecast is predicted and plotted.

Notifications You must be signed in to change notification settings

Gespinoza10/time-series-data-sp500

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

S&P 500 Stocks | Time Series Prophet Forecast Model

This program reads downloaded S&P 500 Stocks Data that you can find in the archive folder as sp500_index.csv. The dataset includes the stocks daily closing price for the last 10 years(2013-2023).

Time Series Data Exploration

Data is explored and analyzed per year 2022 and 2023, it is also grouped by the last 5 years from 2018 to 2023.

bokeh_plot

bokeh_plot (1)

bokeh_plot (2)

Data is also used to create a new feature in our dataframe Return that represents the stocks daily return. The program used pandas library .diff() function to calculate the daily retruns.

bokeh_plot

Creating a Time Series Model with Prophet

Time Series model showed a very insightful trend for the past 10 years.

Screenshot 2024-01-04 at 7 56 49 PM

About

S&P 500 last 10 years data analysis. Visualize and Compare Data for trends. Time Series Model created using Prophet. Forecast is predicted and plotted.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published