Published
Edited
Oct 27, 2020
Insert cell
md`<hr>
# Dataset: 2019 World Happiness Report

This data represents the happiness levels of 155 different countries in 2019. It is made by a survey. The data believes that there are six major factors in contributing to happiness. These six factors are used to measure the happiness in different countries to see how it varies by location, family, GDP, social support, etc. The happiness is scored according to the six factors as well.

The data is available from the World Happiness Report on [kaggle](kaggle.com) from the World Happiness Report as [2019.csv](https://www.kaggle.com/unsdsn/world-happiness?select=2019.csv). `
Insert cell
md`<hr>
## Analysis Questions

**What makes some countries happier than others?**

Specific Questions:
1. What are the top happiest countries?
2. Which factors have the biggest impact on happiness?
3. How does geographic location affect happiness?
`
Insert cell
md`<hr>
## 1. What are the top happiest countries?
`
Insert cell
FileAttachment("1.png").image()
Insert cell
md`It's not a surprise to see that the continent of Africa has a lower ranking than everywhere else, but we can really dive in deeper to see if having the highest number of 3rd world countries come into play with this observation.`
Insert cell
FileAttachment("countryName.png").image()
Insert cell
md`
This visual is to actually get the names of the countries that are in this ranking of happiness scores.
`
Insert cell
FileAttachment("2.png").image()
Insert cell
md`Although at first glance this can be an intimidating visual, it is simply the happiness score of all the ranked countries in descending order. It's nice to see it all laid out like this because it seems like the happiness scores do not differ by a significant amount with the countries that ranked closer together, but there is quite a jump from the top and the bottom. With this, we can infer that even the countries in the top 10 happiest aren't really *that* much happier than each other.`
Insert cell
md`<hr>
## 2. Which factors have the biggest impact on happiness?
`
Insert cell
FileAttachment("6.png").image()
Insert cell
md`
Here we are seeing how GDP affects the happiness score of countries. Taking the median happiness score of 5.386, we can see that generally the happier countries have a higher GDP per capita than the less happy countries. It seems that we could infer that generally higher income individuals that make up the country are generally happier than lower income.
`
Insert cell
FileAttachment("freedom.png").image()
Insert cell
md`
In this visual, the pink is simply the happiness score and the countries are listed in decreasing order which is evident in the pink dots slowly getting closer to the origin. The blue line represents the countries' measurement of how the freedom to make life choices contributes to the happiness score. I chose to display it with a line to represent that there really is no correlation between the freedom to make life choices and how happy the country is. Some of the higher ranked countries have a really low perception of the freedom to make life choices.
`
Insert cell
FileAttachment("lifeExpectancy.png").image()
Insert cell
md`
In descending order on the x-axis we have the countries happiness ranking, and the y-axis is the healthy life expectancy's contribution to its happiness score. I believe that the healthy life expectancy is a huge contribution because it seems that the bars slowly decrease with the ranking.
`
Insert cell
FileAttachment("5.png").image()
Insert cell
md`
This one compares the averages of how generosity compares to the top happier countries to the lower less happy countries. The difference between the two averages is not significant which shows that generosity is not a huge factor on a country's happiness score.
`
Insert cell
md`<hr>
## 3. How does geographic location affect happiness?
`
Insert cell
FileAttachment("locationMedian.png").image()
Insert cell
md`
It seems that the Asia and Africa take the majority of the lower half of the ranked countries, and everywhere else is in the top half.
`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more