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
.
This exercise is part of the course
Performing Experiments in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Perform Pearson correlation
pearsonken = stats.____(ken.Weight, ____)
____