A two-part Business Intelligence system built on real World Bank economic data for Pakistan (2000โ2023):
Key Achievement: ARIMA model forecasts Pakistan's GDP, Inflation, and Population through 2028 โ achieving 99.9% accuracy on Population and 88.4% accuracy on GDP.
Pakistan-Economic-Dashboard/
โ
โโโ ๐ data/
โ โโโ pakistan_economic_data.csv # Main dataset (24 years ร 16 indicators)
โ โโโ pakistan_decade_averages.csv # Decade-wise aggregated data
โ โโโ pakistan_summary_stats.csv # Descriptive statistics
โ โโโ forecast_results.csv # ARIMA actual + forecast values
โ โโโ forecast_pivot.csv # Wide-format forecast for Power BI
โ โโโ model_evaluation.csv # MAE, RMSE, Rยฒ, MAPE metrics
โ
โโโ ๐ scripts/
โ โโโ STEP1_setup_and_run.py # Master script: fetch data + run ARIMA
โ โโโ fetch_worldbank_data.py # Live World Bank API fetch
โ โโโ generate_sample_data.py # Offline data generator
โ โโโ task4_arima_forecast.py # ARIMA(1,1,0) ML model
โ
โโโ ๐ visuals/
โ โโโ forecast_charts.png # ARIMA forecast visualization (3 indicators)
โ
โโโ ๐ report/
โ โโโ Pakistan_Economic_Dashboard_Report.docx # Full technical report
โ
โโโ README.md
World Bank Open Data API โ completely free, no API key required
https://api.worldbank.org/v2/country/PK/indicator/{INDICATOR}?format=json&date=2000:2023
| Indicator | Code | Column |
|---|---|---|
| GDP (current US$) | NY.GDP.MKTP.CD |
GDP_BillionUSD |
| Inflation (annual %) | FP.CPI.TOTL.ZG |
Inflation_Pct |
| Population, total | SP.POP.TOTL |
Population_Millions |
| Exports (% of GDP) | NE.EXP.GNFS.ZS |
Exports_PctGDP |
| Imports (% of GDP) | NE.IMP.GNFS.ZS |
Imports_PctGDP |
| Literacy rate (%) | SE.ADT.LITR.ZS |
Literacy_Rate |
| Unemployment (%) | SL.UEM.TOTL.ZS |
Unemployment_Pct |
Python 3.8+ # python --version
Power BI Desktop (free from Microsoft Store)git clone https://github.com/YOUR_USERNAME/Pakistan-Economic-Dashboard.git
cd Pakistan-Economic-Dashboard
python scripts/STEP1_setup_and_run.pyThis will:
- โ Install required Python packages automatically
- โ Fetch live data from World Bank API (or use embedded fallback)
- โ Run ARIMA(1,1,0) forecasting model
- โ Generate all CSV files + forecast charts
1. Open Power BI Desktop
2. Home โ Get Data โ Text/CSV
3. Load: data/pakistan_economic_data.csv
4. Load: data/forecast_pivot.csv
5. Load: data/model_evaluation.csv
6. Build dashboard following /report/ guide
Pakistan's economic indicators are non-stationary time series with consistent trends. ARIMA handles this via differencing, making it ideal for annual economic data.
| Parameter | Value | Meaning |
|---|---|---|
| p = 1 | 1 AR term | Current value depends on previous year |
| d = 1 | 1st-order differencing | Removes non-stationarity / trend |
| q = 0 | No MA term | Keeps model simple for 24 data points |
Train set: 2000โ2019 (20 years = 83%)
Test set: 2020โ2023 (4 years = 17%)
Forecast: 2024โ2028 (5-year projection)| Indicator | MAE | RMSE | Rยฒ Score | MAPE | Accuracy |
|---|---|---|---|---|---|
| GDP (Billion USD) | 39.35 | 43.77 | -0.116 | 11.58% | 88.42% |
| Inflation (%) | 7.25 | 10.32 | -0.528 | 30.91% | 69.09% |
| Population (Millions) | 0.23 | 0.26 | 0.9966 | 0.10% | 99.90% |
| Year | GDP (B USD) | Inflation (%) | Population (M) |
|---|---|---|---|
| 2024 | 350.6 | 24.1 | 232 |
| 2025 | 362.1 | 22.8 | 236 |
| 2026 | 373.6 | 21.5 | 240 |
| 2027 | 385.1 | 20.2 | 244 |
| 2028 | 396.6 | 18.9 | 248 |
- 5 KPI Cards โ GDP, Inflation, Population, Trade Deficit, Literacy
- Line Chart โ GDP & Inflation trend 2000โ2023 (dual axis)
- Bar Chart โ Decade-wise economic comparison
- Pie Chart โ GDP distribution across decades
- Data Table โ Full raw structured data
- Area Chart โ Exports vs Imports trade balance
- 2 Slicers โ Decade dropdown + Year range filter
- Cross-filtering โ Click any visual to filter all others
- Actual vs Predicted Line Chart โ Real data vs ARIMA forecast
- Error Analysis Table โ MAE / RMSE / Rยฒ / MAPE
- KPI Cards โ Model accuracy + 2028 projections
- Forecast Image โ Python-generated ARIMA visualization
- Type Slicer โ Toggle between Actual / Forecast view
- ๐ Pakistan's GDP grew 5x from USD 73B (2000) to USD 375B (2022)
- ๐ฐ Inflation peaked at 29.2% in 2023 โ highest in 24 years
- ๐ Pakistan maintained a trade deficit every single year 2000โ2023
- ๐ Literacy improved from 43.9% โ 63.9% over two decades
- ๐ฎ ARIMA forecasts GDP reaching USD 396B by 2028 (+17% from 2023)
| Tool | Purpose |
|---|---|
| Power BI Desktop | Interactive dashboard & visualization |
| Python 3.x | Data processing & ML modeling |
| pandas / numpy | Data manipulation |
| matplotlib | Forecast visualization |
| scikit-learn | Linear regression (AR coefficient estimation) |
| World Bank API | Live economic data source |
โ
Task3_Pakistan_Dashboard.pbix (Power BI โ Task 3)
โ
Task4_Pakistan_ARIMAForecast.pbix (Power BI โ Task 4)
โ
Pakistan_Economic_Dashboard_Report.docx (Technical Report)
โ
scripts/STEP1_setup_and_run.py (Python script)
โ
data/*.csv (All datasets)
Laiba Azha
MS Artificial Intelligence โ PAK-AUSTRIA Fachhochschule
๐ง laibaazhar.ds@gmail.com
๐ https://www.linkedin.com/in/laiba-azhar-b89449263/
This project is for academic purposes.
Data sourced from World Bank Open Data under Creative Commons Attribution 4.0.
Built with โค๏ธ using Python + Power BI | Spring 2026