[SciPy-user] histogram(a, normed=True) doesn't normalize?

Martin Spacek scipy at mspacek.mm.st
Mon Jun 19 20:59:13 CDT 2006


David Huard wrote:
> Yes.
> 
> The normalization constant is not the sum of the bin, but the sum of the 
> product of the bin count with the bin width :
> \sum_i  f_i * delta_i
> 

It seems I long ago forgot the distinction between a probability 
*distribution* function and a probability *density* function. I assumed 
they were the same thing. Thanks for the clarification.

Martin



More information about the SciPy-user mailing list