Nov 22, 2021·3 min read
How to choose the bins of a histogram?
Image by author
Histograms are a very useful tool when we want to give a quick sight to the shape of our data. However, we always have to choose the right number of bins.
What is a histogram?
A histogram is a representation of the probability distribution of a dataset. Given a bin width, the range of the variable is split into non-overlapping intervals of that width and