27 points · by vvanirudh · 2y ago · 12 comments
N = len(data)
X = sorted(data)
Y = np.arange(N)/N
plt.plot(X,Y)
Technically, you should plot this with `plt.step`.Some simple examples would be the bin-width and bandwidth in the histogram and the kernel density estimator. A somewhat complex example would be Dirichlet Process-based Mixture Models [2]; this has a "concentration" parameter. The terminology is used outside of density estimation too, e.g., Support Vector Machines (SVM) and k-Nearest Neighbors are considered nonparametric [3].
[1] For ex, see https://stats.stackexchange.com/a/268646, or https://youtu.be/I7bgrZjoRhM?si=VOEENs773SXlEMxm&t=300
[2] https://www.gatsby.ucl.ac.uk/~ywteh/research/npbayes/dp.pdf