Analyze and Predict the 2022 World Happiness Report Based on the Past Year's Dataset
Yifei Zhang1 Show affiliations
- School of Physical Science, University of Liverpool, United Kingdom
Journal of Computer Science, Volume 19, Issue 4, pp. 483–492 · doi.org/10.3844/jcssp.2023.483.492
Abstract
Through the impact of the COVID-19, people around the world have been affected to various degrees. Thus, it is more interesting to compare the happiness reported between 2022/2021 and before 2019. This article concludes 5 years of happiness scores data including family, Gross Domestic Product (GDP), health, freedom, generosity trust, and dystopia residual. Happiness scores are considered appropriate indicators to measure the progress of social development. This study presents two linear regression models to predict happiness scores across countries in 2022. Data is sourced from the world happiness report dataset from 2015-2021, available in open source. Preliminary exploratory data analysis was carried out to select the most appropriate variables to include in the models. The models’ accuracy was tested by comparing the output values to the true 2022 world happiness report data. The experiment results show that the linear regression achieved a Root Mean Square Error (RMSE) = 0.236 and Mean Squared Error (MSE) = 0.056 for 2022.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Zhang, Y. (2023). Analyze and Predict the 2022 World Happiness Report Based on the Past Year's Dataset. Journal of Computer Science, 19(4), 483–492. https://doi.org/10.3844/jcssp.2023.483.492
- Licence
- CC BY 4.0
- Issue
- Volume 19, Issue 4
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
