7.00.02 - Sturges' Algorithm - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Aster Analytics
Release Number
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
English (United States)

Sturges' algorithm for calculating bin width can be written as:

w = r/(1 + log2 n)

where w is the bin width, r is the range of the data values and n is the number of elements in the data set. This algorithm performs best if the data is normally distributed and n is at least 30.