People all over the world are living longer due to improvements in lifestyle standards and better healthcare. The average life expectancy in almost every country has increased over the last several decades.

But does living a long life mean that it is also a happy one? Sometimes.

Surveys and research are done every year by various organizations measuring the quality of life in different nations and studying how happy people are and what makes them that way.

The CIA World Factbook is a respectable source when it comes to breaking down societies by numbers. Happiness indexes – whether by Gallup, World Happiness, Happy Planet, the Organizations for Economic Co-operation and Development (OECD) – are a little trickier because they ask participants different questions, include different countries, and use different points systems to rank the answers.

We analyzed several such rankings and have taken into consideration where people both live longer and happier lives. The two are not scientifically correlated; you can live more than 100 years but be lonely, and vice versa.