This repository contains a Python project for analyzing and forecasting stock prices using time series analysis and a GRU (Gated Recurrent Unit) neural network model. The project focuses on three major tech companies: Google (GOOG), Apple (AAPL), and Microsoft (MSFT).
The analysis includes: data visualization, correlation analysis, trend and seasonality decomposition, and time series forecasting.
To run the code in this repository, you can install all the necessary packages via:
> pip install -r requirementsThe dataset used in this project includes historical stock price data for Google (GOOG), Apple (AAPL), and Microsoft (MSFT). The data is collected from Yahoo Finance and covers the last 10 years.
The analysis step of the project includes several stages:
- Checking for missing values (NAs) in the dataset.
- Exploring the correlation between closing and opening prices for each company.
- Visualizing stock attributes using line plots.
- Decomposing trends and seasonality in stock prices.
Time series forecasting is performed using a GRU (Gated Recurrent Unit) model. The GRU model is defined in the code, with specifications for input dimensions, hidden dimensions, number of layers, output dimensions, and other hyperparameters.
The results of the analysis and forecasting are visualized using various plots and graphs. The time series predictions are compared to the actual stock prices to evaluate the accuracy of the model's predictions. The performance of the model is also assessed using root mean squared error (RMSE) on both the training and testing sets.
You can use this README as a starting point for your GitHub repository for the stock price analysis and forecasting project.

