2023-10-13
by Kirti Raj
Many statistical practices are used in order to calculate the probability of certain events occurring, including in psychology-related fields. Data modeling aids scientists with observing correlations between different variables, including rates of different psychological conditions, emotions, and humans’ well-being, both physical and mental.
To demonstrate, we will use the “World Happiness Report” data set (via Kaggle), specifically from 2019.
First, let’s see the top 10 countries and their scores
## NULL
## `geom_smooth()` using formula = 'y ~ x'
## Warning in geom_histogram(stat = "identity"): Ignoring unknown parameters: ## `binwidth`, `bins`, and `pad`
We will now see the relationship between life expectancy and the happiness scores.
## `geom_smooth()` using formula = 'y ~ x'
In this plot, we will see the relationship between social support people receive versus the score of the respective country/region.
Let’s look at the averages of the factors.