Kalpana Kalpana (Editor)

Freedman–Diaconis rule

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics, the Freedman–Diaconis rule can be used to select the size of the bins to be used in a histogram. It is named after David A. Freedman and Persi Diaconis.

For a set empirical measurements sampled from some probability distribution, the Freedman-Diaconis rule is designed to minimize the difference between the area under the empirical probability distribution and the area under the theoretical probability distribution.

The general equation for the rule is:

Bin size = 2 IQR ( x ) n 3

where IQR ( x ) is the interquartile range of the data and n is the number of observations in the sample x .

Other approaches

Another approach is to use Sturges' rule: use a bin so large that there are about 1 + log 2 n non-empty bins (Scott, 2009). This works well for n under 200, but was found to be inaccurate for large n. For a discussion and an alternative approach, see Birgé and Rozenholc.

References

Freedman–Diaconis rule Wikipedia