Exploratory Data Analysis ⢠PCA ⢠Clustering ⢠Data Visualization
This project started with a simple question: how does freedom shape the way people live? I explored global datasets from the Heritage Foundation, Human Freedom Index, and World Happiness Report to uncover how economic and personal freedoms relate to life satisfaction around the world.
I brought together diverse global indicators, standardized scoring systems, and handled missing data carefully. After cleaning and preprocessing, I had a unified dataset of over 150 countries, including measures of rights, liberties, and well-being.
I engineered new features to capture themes like political voice, property rights, and institutional trust. Using heatmaps and correlation matrices, I found clear patterns: countries with higher levels of freedom consistently had higher well-being scores.
With so many overlapping metrics, I used Principal Component Analysis to cut through the noise. Three components emergedāeconomic freedom, civil liberties, and governance strengthāexplaining over 80% of the total variance.
I applied clustering algorithms to group countries based on their freedom profiles. Visualizing these clusters on a world map revealed fascinating global trends, showing how countries align in values and policiesāeven when separated by geography.
Python ⢠pandas ⢠matplotlib ⢠seaborn ⢠scikit-learn ⢠geopandas ⢠PCA ⢠k-means clustering ⢠Plotly
View Code on GitHub Back to projects