Reputation: 1982
I'd like to compute custom bin edges so that the new histogram shape will approach Gaussian. Think of the shape you'll get after Box-Cox transformation, but I want to keep the original values.
These new bin edges will be fed into histplot or distplot in python. I've read of qcut
but that will make the shape approaching uniform distribution.
Example in chart below :
Surprisingly I have not been able to find a solution for python.
The closest question is in Matlab Specifying bin edges when fitting a normal distribution using histfit
Upvotes: 0
Views: 38