This project focuses on analyzing Uganda's Gross Domestic Product (GDP) from 2001 to 2025, exploring economic trends across different sectors and using machine learning to forecast future GDP values.
GDP Definition: The standard measure of value added created through the production of goods and services within a specific period of time.
- Analyze Uganda's economic growth trends over 24+ years
- Identify sector contributions to economic development
- Build predictive models for future GDP forecasting
- Visualize economic patterns and insights
- Source: Uganda Bureau of Statistics (UBOS)
- Time Period: 2001 - 2025
- Data Format: Excel spreadsheet (
UBOS_GDP_CP.xlsx) - Key Metrics: Gross Domestic Product by sector and year
- Data sourced from the official UBOS website
- Multiple sectors tracked over 24+ years
- Utilized Pandas for data inspection and validation
- Handled missing values and data inconsistencies
- Prepared data for exploratory analysis
- Visualized trends using Matplotlib
- Analyzed sector-wise contributions to GDP
- Identified growth patterns and anomalies
- Linear Regression: Baseline model for trend prediction
- Random Forest Regressor: Advanced ensemble method for improved accuracy
- Model evaluation and comparison of predictive performance
Understanding-UBOS_GDP_CP/
├── README.md # Project documentation
├── Understanding UBOS_GDP.ipynb # Main analysis notebook
├── UBOS_GDP_CP.xlsx # Raw dataset
├── assets/ # Project images
│ └── uganda gdp.png # GDP visualization
└── uganda gdp.png # Hero image
| Tool | Purpose |
|---|---|
| Python | Core programming language |
| Pandas | Data manipulation & cleaning |
| Matplotlib | Data visualization |
| Scikit-learn | Machine learning models |
| Jupyter Notebook | Interactive analysis environment |
- Python 3.7+
- Jupyter Notebook
- Required packages: pandas, matplotlib, scikit-learn
# Clone the repository
git clone https://github.com/200-4/Understanding-UBOS_GDP_CP.git
cd Understanding-UBOS_GDP_CP
# Install dependencies
pip install pandas matplotlib scikit-learn jupyter
# Launch Jupyter Notebook
jupyter notebook "Understanding UBOS_GDP.ipynb"The analysis reveals:
- Long-term GDP growth trends in Uganda
- Sector-wise economic contributions
- Predictive insights for future economic development
- Model performance comparison between Linear Regression and Random Forest approaches
The main Jupyter notebook (Understanding UBOS_GDP.ipynb) includes:
- Data loading and preprocessing
- Exploratory data visualization
- Statistical analysis
- Machine learning model development
- Predictions and performance metrics
- Conclusions and recommendations
Both models were evaluated for accuracy in predicting future GDP values:
- Linear Regression: Fast, interpretable baseline model
- Random Forest Regressor: Captures non-linear relationships for potentially better predictions
- Incorporate additional economic indicators (inflation, exchange rates)
- Implement advanced models (ARIMA, Neural Networks)
- Add external economic factors analysis
- Create interactive visualizations with Plotly/Dash
- Deploy prediction model as a web application
This project is open-source and available for educational and research purposes.
200-4
For questions or suggestions, feel free to open an issue or contact the repository owner.
- Uganda Bureau of Statistics
- Scikit-learn Documentation: Machine Learning Models
- Pandas Documentation: Data Analysis
- Matplotlib Documentation: Data Visualization
Last Updated: June 2026
