WORLD HAPPINESS ANALYSIS

Home World Happiness in G10 World Happiness and Wealth Happiness Mediators Summary

Data Visualization


For my analysis, I explored the happiness scores of the G10 countries using Python and R. In Python, I utilized matplotlib and pandas to visualize the data, focusing on the G10 countries' happiness scores compared to the global average. After preprocessing the dataset to include only relevant columns and G10 countries, I calculated the average happiness score for the G10 nations and the global average.

The resulting bar graph vividly showcased each G10 country's happiness score, with distinctive colors for visual appeal. Additionally, I used R to conduct a one-sample t-test comparing the G10 countries' happiness scores to the global average. The t-test yielded a significant result (t = 9.8007, p-value = 1.911e-06), suggesting that the G10 countries' happiness scores significantly differed from the global average. Specifically, the G10 countries had a mean happiness score of 6.92, significantly higher than the global average of 5.41.

This analysis underscores the relatively higher happiness levels within the G10 countries compared to the global average, emphasizing the importance of further exploration into the factors contributing to this disparity.

Data Analysis

Python was utilized to generate the plot. Click the button below to unveil the Python code.



R was utilized to generate the statistical analysis. Click the button below to unveil the R code.