import random
def weighted_random_choice():
choices = ["left", "right"]
weights = [80, 20]
return random.choices(choices, weights)[0]
# Generate the choice and return it
weighted_random_choice() N = len(data)
X = sorted(data)
Y = np.arange(N)/N
plt.plot(X,Y)
Technically, you should plot this with `plt.step`.
I have been bit by several inexplicable, long delays recently. In my case, I suspected the reason was choosing stat.ml as primary and cs.lg as cross-list, which, after my time in purgatory, was flipped (without asking me, of course). My choice was completely defensible.
It's almost like peer review all over again!