Histograms for Probability Density Estimation: A Primer
vvanirudh.github.io
vvanirudh.github.io
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
'I will describe a very popular nonparametric method, Kernel Density Estimation, that also follows strategy 1 and is much more scalable to higher dimensions than histograms.'