🌍 Global Affordability Dashboard

Urban Cost of Living Analysis - Tableau & Machine Learning

View the Project on GitHub TejashwiniSaravanan/global-affordability-dashboard-tableau-ml

# 🌍 Global Affordability Dashboard ### Urban Cost of Living Analysis - Tableau & Machine Learning [![Python](https://img.shields.io/badge/Python-3.x-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/) [![Tableau](https://img.shields.io/badge/Tableau-Public-E97627?style=for-the-badge&logo=tableau&logoColor=white)](https://public.tableau.com/app/profile/tejashwini.saravanan8751/viz/finalprojectassigmentTableau/GlobalAffordabilityTracker2025) [![Scikit-Learn](https://img.shields.io/badge/Scikit--Learn-ML-F7931E?style=for-the-badge&logo=scikit-learn&logoColor=white)](https://scikit-learn.org/) [![Status](https://img.shields.io/badge/Status-Complete-2ea44f?style=for-the-badge)](https://github.com/TejashwiniSaravanan/global-affordability-dashboard-tableau-ml) [![License](https://img.shields.io/badge/License-MIT-lightgrey?style=for-the-badge)](LICENSE)
**In an era of record-high inflation and wage stagnation, understanding the *real* cost of living is critical.** This project integrates global cost-of-living metrics with salary data across **3,700+ cities** to compute a custom **Affordability Score** - revealing where people thrive and where they barely survive.
[![View Live Dashboard](https://img.shields.io/badge/πŸ”΄%20View%20Live%20Dashboard%20on%20Tableau%20Public-FF6B6B?style=for-the-badge)](https://public.tableau.com/app/profile/tejashwini.saravanan8751/viz/finalprojectassigmentTableau/GlobalAffordabilityTracker2025)

⚑ Key Results at a Glance

Metric Result
πŸ™οΈ Cities Analysed 3,700+
🌐 Countries Covered 195+
πŸ€– Random Forest RΒ² Score 0.975
πŸ“‰ Model RMSE 1.13
πŸ”‘ Top Affordability Driver Median Salary (+9.43 coeff)
🚨 β€œCrisis Zone” Countries 127 (High Cost - Low Salary)
πŸ† Most Affordable City Type Small metros with rent-to-salary < 5%

πŸ“Š Interactive Dashboard Suite

Click any dashboard title to explore the live, interactive Tableau version.

Β  Β 
Dashboard 1 Dashboard 2
🌍 Dashboard 1: Global Affordability Tracker 2025 πŸ“ˆ Dashboard 2: Country-Level Insights
Visualises geographic β€œEconomic Red Zones” where living costs exceed local earnings. Uses a custom Affordability Score to identify global disparities. Benchmarks average salaries against total essential costs (rent, groceries, utilities) to reveal which nations face the highest inflation pressure.
Dashboard 3 Dashboard 4
πŸ™οΈ Dashboard 3: City Deep-Dive πŸ’‘ Dashboard 4: Key Insights
A granular analysis of the Top 10 and Bottom 10 cities. Highlights the β€œRent Trap” where housing costs consume more than 40% of median salary. Synthesises regional cost patterns and visualises K-Means clustering results to categorise cities into distinct economic profiles.

πŸ› οΈ Tech Stack

Category Tools
Language Python 3.x
Data Wrangling Pandas, NumPy
Machine Learning Scikit-Learn - Linear Regression, Random Forest, K-Means Clustering
Visualisation Tableau Desktop / Public, Matplotlib, Seaborn
Project Management MS Project, Notion, Google Workspace
Notebook Jupyter Notebook

βš™οΈ Analytical Pipeline

1. 🧹 Data Wrangling & Feature Engineering

\[\text{Affordability Score} = \frac{\text{Monthly Median Salary}}{\text{Rent} + \text{Groceries} + \text{Utilities}}\]

Most cities cluster around median affordability - proving that true financial comfort is reserved for a global minority.


2. πŸ€– Machine Learning Models

A. Predictive Modelling - Random Forest Regressor

The Random Forest Regressor achieved a near-perfect fit on held-out test data.


B. Key Drivers - Linear Regression (Standardised Coefficients)

Driver Coefficient Direction
πŸ’° Median Salary +9.43 βœ… Strongest positive driver
πŸ›’ Grocery Prices -4.29 ❌ Primary drag on affordability
🏠 Rent -4.11 ❌ Second largest negative driver

Identifying Median Salary, Groceries, and Rent as the primary drivers of the Affordability Score.


C. Market Segmentation - K-Means Clustering (k=5)

Cities were segmented into 5 distinct economic profiles:

Cluster Profile Countries
Cluster 1 High Salary - High Cost (manageable rent burden) 19
Cluster 0 High Cost - Low Salary (β€œCrisis Zone”) 127
Cluster 3 Low Salary - Low Cost 104

Rent as a percentage of salary varies dramatically across city clusters - revealing stark global inequality.


πŸ“Š Global Insights & Quartile Analysis


πŸš€ Business & Policy Recommendations

1. 🏠 Housing Policy Implement rent control or housing subsidies in any city where the Rent-to-Salary ratio exceeds 35%.

2. πŸ’Ό Corporate Strategy Businesses in high-cost cities should adopt Cost-of-Living-Adjusted (COLA) salaries to ensure wage fairness and improve talent retention.

3. 🚚 Supply Chain Optimisation Focus on local supply chain development for essential goods in β€œHigh Cost - Low Salary” cities to drive down grocery price indices.


πŸ’» Getting Started

#1. Clone the repository
git clone https://github.com/TejashwiniSaravanan/global-affordability-dashboard-tableau-ml.git
cd global-affordability-dashboard-tableau-ml

#2. Install dependencies
pip install -r requirements.txt
 
#3. Launch the notebook
jupyter notebook cost-of-living-crisis.ipynb

To explore the Tableau dashboards, open cost-of-living-crisis.twb in Tableau Desktop, or visit the live Tableau Public version.


πŸ“‚ Repository Structure

global-affordability-dashboard-tableau-ml/
β”‚
β”œβ”€β”€ πŸ“ images/                          # Dashboard screenshots & analytical plots
β”œβ”€β”€ πŸ“„ Executive_Summary.pdf            # 1-page business impact summary
β”œβ”€β”€ πŸ“Š Project_Presentation.pdf         # Full visual slide deck
β”œβ”€β”€ πŸ““ cost-of-living-crisis.ipynb      # Python notebook - data cleaning & ML models
β”œβ”€β”€ πŸ—„οΈ  cost-of-living-crisis.csv        # Cleaned & merged global dataset (3,700+ cities)
β”œβ”€β”€ πŸ“ˆ cost-of-living-crisis.twb        # Tableau Workbook file
β”œβ”€β”€ πŸ“‹ requirements.txt                 # Python dependencies
β”œβ”€β”€ πŸ“– README.md                        # Project documentation (you are here)
└── βš–οΈ  LICENSE                          # MIT License

πŸ“ Project Reflection

Β  Β 
βœ… What Went Well Successfully built a robust predictive framework (RΒ² = 0.975) and transformed complex global data into four user-friendly, interactive Tableau dashboards.
⚠️ What Didn’t Go Well Missing and inconsistent data for smaller cities required proxy imputation, which may affect localised precision.
πŸ”­ Future Work Integrate real-time datasets and additional cost categories - Healthcare, Transport, and Education - for a 360Β° affordability view.

πŸ‘€ Author

**Tejashwini Saravanan** [![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/tejashwinisaravanan/) [![GitHub](https://img.shields.io/badge/GitHub-Follow-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/TejashwiniSaravanan) [![Portfolio](https://img.shields.io/badge/Portfolio-Visit-FF6B6B?style=for-the-badge&logo=google-chrome&logoColor=white)](https://tejashwinisaravanan.github.io/global-affordability-dashboard-tableau-ml/)

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


*If you found this project insightful, please consider giving it a ⭐ - it helps others discover it!*