I have a simple CDF (cumulative distribution function) that I want to estimate using a KDE (kernel density estimation) in order to smooth out the 'steppy' nature of the CDF. The dataset is quite small (40 datapoints), so the steps are quite obvious in the CDF.
I saw that there are functions that do this in R (kCDF) and MatLab (ksdensity, with the option 'cdf'), but I need it in Python.
I tried to estimate the PDF first using scipy.stats.kde.gaussian_kde, and then get the CDF from the PDF, but this introduces a lot of unnecessary error. Ideally, I would like to use a KDE estimator directly over the CDF, would it be possible?