ComeçarComece de graça

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.

pandas as pd, matplotlib.pyplot as plt, and seaborn as sns are imported, and world_happiness is loaded.

Este exercício faz parte do curso

Introduction to Statistics in Python

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Scatterplot of gdp_per_cap and life_exp
____

# Show plot
____
Editar e executar o código