Exercise

Effect sizes for Pearson correlation

Now we're going to look at effect sizes for Pearson correlations. In a previous exercise, we used Pearson correlation to examine the link between Weight and Height for athletes from our Olympic dataset. Now, we're going to focus a single event, the 10,000 meter run, and compare the results we obtain for Pearson tests of correlation for competitors from two Teams, Kenya (ken DataFrame) and Ethiopia (eth DataFrame). Which has a higher effect strength? These data are graphed below as scatterplots. scipy and pandas have been loaded as sp and pd.

Scatter plot of height versus weight for Kenyan 10k runners

Scatter plot of height versus weight for Ethiopian 10k runners

Instructions 1/2

undefined XP
  • 1

    Perform a Pearson correlation between the Weight and Height of Kenyan athletes and print the result.

  • 2

    Perform a Pearson correlation between the Weight and Height of Ethiopian athletes and print the result.