Šídák correction
We're looking at how the Height
of Olympic athletes from the athletes
dataset has changed over time. In this exercise, we're considering three events, the 100 meter, the High Jump, and the Marathon. You'll be examining the correlation between Height
and Year
separately for each Event
. As you did before, you'll need to correct for multiple hypothesis tests, but, since these tests are independent, you can use the less-strict Šídák correction.
This exercise is part of the course
Performing Experiments in Python
Exercise instructions
- Perform three Pearson correlations, examining the correlation between
Height
andYear
for each of the threeEvent
s. - Create an array containing the p-values from your three tests and print it.
- Perform a Šídák correction on the p-values and print the result.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Perform Pearson correlations
pearson100 = stats.pearsonr(____, ____)
pearsonHigh = ____
pearsonMara = ____
# Create array of p-values
pvals_array = ____
print(____)
# Perform Šídák correction
adjustedvalues= sm.stats.multitest.multipletests(____, method= 's')
print(____)