Search code examples
rprobability-densitykernel-density

Why does the desnity plots exceed the unity value in the hist(x,freq="FALSE") command of R?


I am using hist(x_new,freq = FALSE) command to plot histogram, but the probability density exceed the value unity.


Solution

  • Probability density is not the same thing as probability. Densities are not in general bounded by 1. The point is that the total area under the density is 1, which is completely consistent with portions of it being above 1. In fact, it is quite common for a density function (or density histogram) to be above 1 in some places.