jeudi 20 janvier 2022

Python histogram bin size fluctuations

If I want to keep my bin-to-bin fluctuations less than <= 5%, how do I find the maximum number of bins I should use?

I am using an list of 10,000 random numbers to see analyze its histogram distribution.

Here is an example: I am using the same data but with different bin sizes.

Bin of size 10

Bin of size 50

Bin of size 100

So I basically want to find the maximum number of bins for which the distribution fluctuations between adjacent bins are within 5% of each other.




Aucun commentaire:

Enregistrer un commentaire