## The sum of density function (based on histogram) is not equal to 1

I’m attempting to generate a density function, but the sum of the components of a generated histogram does not appear to be close to 1. What is the cause of this and how to make the sum of the density …