NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Python > Data Analysis on Our Happiness and Environmental Indicators

Data Analysis on Our Happiness and Environmental Indicators

Hadar Zeigerson
Posted on Oct 24, 2021
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

GitHub

A Lot to Chew On

With the Glasgow Climate Summit starting this Halloween, we are reminded once more of our national and global commitments to halve carbon emissions by 2030---a daunting goal for only 8 years. As Senator Joe Manchin plays tug-o-war with climate strategies in Congress and Covid-19 restrictions decrease in waves, data shows the minor dip in emissions threatens to be meaningless. And so the question is asked: What does our future hold?

 

This study was an attempt to explore the relationship between human happiness and the environment. It is intended to provide useful insight to policy makers, sustainability strategists, and any responsible company or organization who wants to know how human affect, perception, and mobility might relate to changes in the environment.

Conversely, this knowledge may also be wielded to implement strategies for reducing greenhouse gas emissions and pollution while maintaining or enhancing a happy and healthy constituency / clientele / societal population.

Research Question: What is the relationship between our collective happiness and the state of the environment?

The following analyses were derived from data provided by the United Nations Statistics Division (UNSD, dataset for Global Environment Indicators, 1990-2017) as well as Gallup's World Happiness Report (WHR, 2004-2019).

Looking for Data Patterns

The Exploratory Data Analysis (EDA), "spagghetti to the wall" phase of this investigation was a correlation heatmap. After cleaning and synthesizing the available data, patterns emerged which indicated the correlative strength of three Global Environmental Indicators (GEIs) with many measures of World Happiness (WH). The three strongest GEI variables were: (1) Population (%) Supplied by the Water Industry, (2) Energy Supply Per Capita, and (3) Population (%) Connected to Wastewater Treatment Systems.

For WH measure, I chose to focus on three variables that were most indicative of emotional well-being and positive outlook: (1) Life Ladder, (2) Freedom to make life choices, and (3) Positive affect. Future studies may want to consider exploring the inverse correlation of Negative affect, as well, to determine what GEIs can be predictive markers for social unrest or unwellness.

 

Data Analysis on Our Happiness and Environmental IndicatorsEDA Correlation Matrix highlights high correlations between WH Measures and three GEI measures: Population (%) Supplied by Water Industry, Energy Supply Per Capita, Population (%) Connected to Treatment of Wastwater.

(For the curious reader unfamiliar with correlation matrices, consider the preceding chart a mirror image of itself across the diagnal yellow line. The same list of variables naming rows from top to bottom apply to the columns from left to right. Each box's variables can be found by following the line to a name on the left, and doing so again with that point's mirror image on the other side of the yellow line.)

To observe these patterns in more detail I compared these relationships with lesser-correlated variable pairs and conducted analyses with groupings by time of data overlap (2004-2017) and by economic tiers (Log GDP per capita).

Direct Data Comparisons

The following comparisons are a glance at the how the patterns revealed in the correlation matrix manifest as contrasted with lesser-correlated variables in the same GEI sector.

The two scatterplots on the left are Energy Supply Per Capita (high-correlation, top) and Energy Supply (low-correlation, bottom), and the two on the right are Population (%) Supplied by the Water Industry (high-correlation, top) and Freshwater Resources Total (low-correlation, bottom). All four variables were plotted with average Life Ladder score, a happiness measure that surveys participants on where they feel they land the "ladder of life"; their sense of achievement or satisfaction with their job, family, house, etc.

(Due to the diversity of culture and language around happiness coupled with the arguably ethnocentric measures of Gallup's World Happiness Survey, the WH measures in this study are subject to limitation of implicit bias and other cross-cultural research dilemmas.)

Data Analysis on Our Happiness and Environmental IndicatorsEnergy Supply Measures (left) and Water Measures (right) show varying levels of contrast in correlation coefficients between general environmental indicators and environmental indicators which pertain directly to population individuals.

These direct comparisons elucidate the correlation as a reflection of whether the GEI measures general natural phenomena and resource measurements not directly related to human activity (Freshwater), or is an indicator directly related to human activity. The population and per capita measures plotted above are the most strongly correlated, while a general measure related to human activity but not explicitly telling of the individuals' experience is slightly lesser correlated (Energy Supply), and a natural phenomenon or resource that in a globalized economy often no longer determines the human experience (Freshwater) has a coefficient near to zero.

 

This yielded the tentative conclusion in the form of a question:

Is human happiness strictly correlated with environmental indicators of personal access to resource supply and waste?

Though hippies and dreames might be disappointed, such an implication---which of course only reflects the mapping of this specific dataset---is somewhat intuitive and unsurprising. The seemingly unfortunate aspect of this implication is that those working to move our society towards carbon neutrality and sustainable living methods must carefully yield to the fact that over 80% of the world's energy supply is derived from fossil fuels, and that to lower this supply dramatically without sufficient replacement with renewable energy could broadly decrease population happiness.

This question led me to investigate other possible solutions, by exploring the interplay between the high-correlating GEIs and how they relate comparatively to WH variables.

Supply and Waste Treatment

To further investigate the nuances of how the high-correlating GEI variables interact with each other and with the WH variables (plots below), I isolated water system features (supply and waste treatment) over time (top), and afterwards plotted them against the "Freedom to make life choices" WH measure (bottom). The water systems plot (top) demonstrated a visible correlation in movement, as well as a gap (~15%-30%) between the percentage of population being supplied water by the water industry and percentage connected to wastewater treatment.

Data Analysis on Our Happiness and Environmental Indicators
(top) Population (%) with access to water supply vs wastewater treatment. Note the contrast in population (%) with access.
(bottom) Population (%) water system measure vs happiness measure "Freedom to make life choices" demonstrates the respective correlation between water systems access and happiness.

The added WH measure (bottom) allows us to compare the strength of these correlations. Since water supply is relatively high and consistent for many countries, and waste treatment is a luxury that many populations still do not have access to, it makes sense that the correlation coefficient with happiness would be stronger for the latter. However, in the interest of pursuing actions that bring our infrastructure and geopolitical landscape closer to one of sustainability and peace, this relatively strong correlation between wastewater treatment access and happiness measures leads me to tentatively suggest that:

...improving and expanding waste treatment systems might be a way to help populations be happier while simultaneously moving toward sustainability.

 

Another consideration:

The plot above could be a reflection of a general societal prioritization of creation over cleanup. That is to say, the disparity beween supply and waste management in terms of averaged global water systems might be an indicator that our industry is more focused on extracting and distributing materials than it is about managing the downstream effects of these same materials. It might behoove our society to consider the prioritization of waste treatment as a valuable industry that provides both environmental wellness and and collective happiness, and could be prioritized to be at least as critical as manufacturing and material sales. Still, further investigation using a more complete dataset are needed before any strong conclusions can be drawn.

 

Untangling Nuances

To further understand the interplay of factors that contribute to the way environmental indicators relate to happiness variables, I began parsing populations according to economic factors. The economic variable available from the WHR was the "Log GDP per capita" measure, which takes the natural log of exponential economic growth to indicate how relatively quickly the economy is growing, as divided by population.

LGDPc Data

To better understand this variable and it's impact on countries' GEIs and WHs, I divided the data in four percentile tiers of Log GPD per capita (LGDPc), as imaged below in relationship with Population (%) Connected to Wastewater Treatment.

Log GDP Percentile point boxplot shows the limited nature of data available regarding countries' populations (%) with access to wastewater treatment, as can be seen by the sparse data points in the Low and Low-Mid percentiles. The broad range of distribution in both the Low and High-Mid percentiles suggests qualitative nuances between countries with low waste treatment availability and high Log GDP per capita and vice versa.

The plot indicates a broad dispersion within some tiers (a.k.a. that being in a High-Mid growing economy does not indicate that you will have access to wastewater treatment) and a much denser dispersion in others (the High tier, especially). Additionally, it indicates that:

...there is a dramatic gap in this GEI dataset for countries from slower growing economies.

 

With that in mind, let's take a look at how LGDPc interacts with GHG Emissions (1000 tonnes of CO2 equivalent) and the WH measure Positive Affect:

This plot colorfully depicts LGDPc as a strong indicator of both GHG Emissions and happiness. That is to say, high-growth economies are releasing more GHGs and also are generally hosted by happier populations, according to WHR measurements. However, considering the data gaps demonstrated previously, these statements can't hold water until further research is conducted on a supplemented data set.

Looking Forward

So where do we go from here? The above research and analyses yielded a wealth of questions and potential avenues for future research to parse the nuances of human happiness and environmental conditions. While the analyses and datasets selected were not sufficient to provide sea-worthy plans of action, there are a few takeaways for future steps with which I would like to leave you:

  • Improvement in data

In addition to filling in the GEI gaps for lower percentile LGDPc countries, there is a strong factor of unreliability in the way information of these indicators is collected. To quote directly from the UNSD dataset that informed this article:

"When interpreting these tables, it should be borne in mind that the definitions and estimation methods employed by member countries may vary considerably, which may be mentioned in the footnotes."

Besides the unquantifiability of human interpretation for the data that was present, it should also be noted that very little, undated information existed for broad sectors of environmental wellbeing. For example, the "Biodiversity" folder had one small chart named "Terrestrial-Marine Protected Areas" that listed an estimated percentage of land protected for each country.

To me, this is a strong indication that the data represented in this dataset specifically is less of a holistic representation of the environment, but more of a random sampling based on easier-to-access recorded human data that by nature is more likely to exist in more developed countries. However, such data can still yield at best ideas and springboards for exploration.

In conducting future research I should like to find and compile datasets with more detailed, nuanced information for local to global environmental conditions than was available here, as well as a investigate whether the WHR happiness measure explores and accounts for cultural diversity in quantifying the concept we call "happiness."

 

  • The use of Machine Learning to further untangle contributing factors, such as LGDPc, regional climate, etc.

Conclusion

One of the most exciting results of this project to me was the realization that the detective work of data science is to use computers to observe unanticipated patterns and interactions between and within an infinite array of variables. Machine learning is a boon waiting to be unleashed, a compacted explosion of unimaginable implications beginning to be weilded to it's full, all-life-benefitting potential.

Most sectors have been moving in this direction with their research, I believe if we begin with small regional projects to analyze relationships like the one studied here to create reliable machine learning models that incorporate widely varying environmental information with widely varying information of human wellness, that we would have an analytical tool that would be able to provide much more thorough and reliable analyses of past, current, and possible future conditions. I look forward to learning more about such techniques and learning to handle them responsibly and for the benefit of all.

About Author

Hadar Zeigerson

Hadar graduated from Colorado College in 2015 with a STEM-heavy degree in Psychology. After graduating, they spent five years working and volunteering in community-level regenerative agriculture and two years in big picture learning education. This professional journey led...
View all posts by Hadar Zeigerson >

Related Articles

R
Data Analysis on The Mental Health Crisis
Python
Data Analysis on WallStreetBets and Its Impact On the Market
Python
Using Auction House Data to Evaluate Classic Cars
Student Works
Data Study on Top Manufacturing Companies by Income in 2020
Alumni
Data Analysis on the Formula of a Hallmark Holiday Movie

Leave a Comment

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application