3 ms·
The best way to compute the empirical CDF (ECDF) is by sorting the data: N = len(data) X = sorted(data) Y = np.arange(N)/N plt.plot(X,Y) Techn
by bagrow 2y ago
The best way to compute the empirical CDF (ECDF) is by sorting the data:
N = len(data)
X = sorted(data)
Y = np.arange(N)/N
plt.plot(X,Y)
Technically, you should plot this with `plt.step`.