Aan de slagGa gratis aan de slag

ECDF of improvement from low to high lanes

Now that you have a metric for improvement going from low- to high-numbered lanes, plot an ECDF of this metric. I have put together the swim times of all swimmers who swam a 50 m semifinal in a high numbered lane and the final in a low numbered lane, and vice versa. The swim times are stored in the NumPy arrays swimtime_high_lanes and swimtime_low_lanes. Entry i in the respective arrays are for the same swimmer in the same event.

Deze oefening maakt deel uit van de cursus

Case Studies in Statistical Thinking

Cursus bekijken

Oefeninstructies

  • Compute the fractional improvement for being in a high-numbered lane for each swimmer using the formula from the last exercise. Store the result in the variable f.
  • Compute the x and y values for plotting the ECDF.
  • Plot the ECDF as dots.
  • Label the x-axis 'f', y-axis 'ECDF', and show the plot.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Compute the fractional improvement of being in high lane: f
f = (____ - ____) / ____

# Make x and y values for ECDF: x, y


# Plot the ECDFs as dots


# Label the axes and show the plot



Code bewerken en uitvoeren