BaşlayınÜcretsiz Başlayın

EDA: finals versus semifinals

First, you will get an understanding of how athletes' performance changes from the semifinals to the finals by computing the fractional improvement from the semifinals to finals and plotting an ECDF of all of these values.

The arrays final_times and semi_times contain the swim times of the respective rounds. The arrays are aligned such that final_times[i] and semi_times[i] are for the same swimmer/event. If you are interested in the strokes/events, you can check out the data frame df in your namespace, which has more detailed information, but is not used in the analysis.

Bu egzersiz

Case Studies in Statistical Thinking

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Compute the fractional improvement from the semifinals to finals. Store the results as f.
  • Compute the x and y values for plotting the ECDF.
  • Plot the ECDF as dots.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Compute fractional difference in time between finals and semis
f = (____ - ____) / ____

# Generate x and y values for the ECDF: x, y


# Make a plot of the ECDF


# Label axes and show plot
_ = plt.xlabel('f')
_ = plt.ylabel('ECDF')
plt.show()
Kodu Düzenle ve Çalıştır