Get startedGet started for free

What can't correlation measure?

While the correlation coefficient is a convenient way to quantify the strength of a relationship between two variables, it's far from perfect. In this exercise, you'll explore one of the caveats of the correlation coefficient by examining the relationship between a country's GDP per capita (gdp_per_cap) and happiness score.

Both dplyr and ggplot2 libraries are loaded and world_happiness is available.

This exercise is part of the course

Introduction to Statistics in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Scatterplot of gdp_per_cap and life_exp
___
Edit and Run Code