Get startedGet started for free

Ší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.

Scatter plots of athlete heights in relation to year for three Olympic events

This exercise is part of the course

Performing Experiments in Python

View Course

Exercise instructions

  • Perform three Pearson correlations, examining the correlation between Height and Year for each of the three Events.
  • 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(____)
Edit and Run Code