Algorithms, Sampling.
our intuition Let’s experiment with this exact scenario and see if we get what we expect. import collections import numpy as np so_far = list(range(5)) # first 5 elements cnt = collections.defaultdict(int) iters = 100_000 # number of experiments np.random.seed(0) # for reproducibility for _ in