No solution required.
Histograms
Boxplots
The GDP per capita data is clearly positively skewed, with some large positive outliers. In comparison, the happiness score data looks almost symmetrical. Based on these observations, we conclude the following.
For happiness: Since the distribution of the data appears to be (roughly) symmetric, it makes more sense to use the mean and standard deviation as appropriate measures of location and spread respectively, rather than the median and IQR.
For income: Since the distribution of the data appears to be highly skewed, it makes sense to use the median and IQR as appropriate measures of location and spread respectively.
The covariance value between average income and average happiness for 2019 is 157188. While this number is not too informative, it does tell us that the relationship between income and happiness score is positive (which is not too surprising!).
The correlation coefficient between average income and average happiness for 2019 is roughly 0.739. We could describe this correlation as being a moderate to strong positive correlation, which intuitively makes sense - as people’s income increases, their average happiness level should increase.
One thing that may be surprising to note, is that at quite low values for average income per person, the average happiness scores vary greatly, with some values even being above the mean and median happiness scores.
It is also worth noting that an increase in income appears to offer diminishing returns with respect to happiness once a certain income level is reached - see e.g. how some of the points in the top right of the graph are below those to the left.
Check with your lab demonstrator if you would like to discuss your results for this question.
These notes have been prepared by Amanda Shaker and Rupert Kuveke. The copyright for the material in these notes resides with the authors named above, with the Department of Mathematical and Physical Sciences and with La Trobe University. Copyright in this work is vested in La Trobe University including all La Trobe University branding and naming. Unless otherwise stated, material within this work is licensed under a Creative Commons Attribution-Non Commercial-Non Derivatives License BY-NC-ND.