The Sturges’ Rule is a formula used to get the optimal number of bins you should use when making a histogram given a certain number of sample size.
The formula is as follows:
OB = [log₂n + 1]
OB is the optimal number of bins and
n is the sample size.
You need to provide the sample size and hit the ‘Calculate’ button below:
OB = 8
The result is usually rounded to the nearest integer.
I hope this calculator is useful. Happy analyzing!