Ghana Stock Exchange (GSE) Stock Price Prediction Model
# Ghana Stock Exchange (GSE) Stock Price Prediction Model
## Project Overview
This project develops machine learning models to predict stock prices for companies listed on the Ghana Stock Exchange (GSE). The analysis focuses on major Ghanaian companies and uses time series forecasting techniques to predict future stock movements.
## About the Ghana Stock Exchange
The Ghana Stock Exchange is the principal stock exchange of Ghana, located in Accra. This project analyzes stocks from major sectors including:
- Banking (GCB Bank, Ecobank Ghana, CAL Bank)
- Mining (AngloGold Ashanti, Newmont Ghana)
- Telecommunications (MTN Ghana)
- Consumer Goods (Fan Milk, Unilever Ghana)
## Features
- **Data Collection**: Automated scraping of GSE stock prices and financial indicators
- **Multiple Models**: ARIMA, Linear Regression, and Random Forest predictions
- **Interactive Visualizations**: Shiny dashboard for exploring stock trends
- **Performance Metrics**: Model evaluation with backtesting capabilities
- **Ghana-Specific Analysis**: Incorporates local economic indicators and market holidays
- **Interactive Dashboard**: Real-time Shiny web application for exploring predictions
- **Automated Testing**: Comprehensive test suite for data validation
- **Reproducible Environment**: R environment management with renv
- **Logging System**: Detailed logging for all data processing steps
## Project Structure
```
gse-stock-prediction/
├── README.md
├── .gitignore
├── LICENSE
├── Makefile
├── NAMESPACE
├── gse-stock-prediction.Rproj
├── renv.lock
├── app/ # Shiny dashboard application
│ ├── app.R
│ └── run_app.R
├── config/ # Project configuration
│ ├── project_config.R
│ └── project_config.rds
├── data/ # Data storage
│ ├── raw/ # Original CSV data files
│ ├── processed/ # Cleaned and processed data
│ ├── cleaned/ # Additional cleaned data
│ ├── DebtsReport/ # GFIM debt repor …