Ashraf Miah
Apr 17, 2022

--

The different plots have their different uses. A major shortcoming of KDE plots is in trying to create a continuous fit through the data the smoothing operation gives false peaks or extents exist. In your plot you can see the minimum price is negative where there is no data to support it.

The same representation is unlikely to occur with the default binning scheme of most plotting libraries but can be set manually. I certainly wouldn’t use histograms or KDE plots on their own without also using the other.

--

--

Ashraf Miah

CTO, Data Scientist & Chartered Engineer (MEng CEng EUR ING MRAeS) with over 20 years experience in the Aerospace, Rail & Energy Industry.