Sturges' Algorithm - Aster Analytics

Teradata Aster Analytics Foundation User Guide

Product
Aster Analytics
Release Number
6.21
Published
November 2016
Language
English (United States)
Last Update
2018-04-14
dita:mapPath
kiu1466024880662.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1021
lifecycle
previous
Product Category
Software

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.