Get startedGet started for free

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

This exercise is part of the course

Performing Experiments in Python

View Course

Hands-on interactive exercise

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

# Perform Pearson correlation
pearsonken = stats.____(ken.Weight, ____)
____
Edit and Run Code