In
statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, the Freedman–Diaconis rule can be used to select the width of the bins to be used in a
histogram
A histogram is a visual representation of the frequency distribution, distribution of quantitative data. To construct a histogram, the first step is to Data binning, "bin" (or "bucket") the range of values— divide the entire range of values in ...
.
It is named after
David A. Freedman and
Persi Diaconis
Persi Warren Diaconis (; born January 31, 1945) is an American mathematician of Greek descent and former professional magician. He is the Mary V. Sunseri Professor of Statistics and Mathematics at Stanford University.
He is particularly known f ...
.
For a set of empirical measurements sampled from some
probability distribution
In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
, the Freedman–Diaconis rule is designed to approximately minimize the integral of the squared difference between the
histogram
A histogram is a visual representation of the frequency distribution, distribution of quantitative data. To construct a histogram, the first step is to Data binning, "bin" (or "bucket") the range of values— divide the entire range of values in ...
(i.e., relative frequency density) and the density of the theoretical probability distribution.
In detail, the Integrated Mean Squared Error (IMSE) is
:
where
is the histogram approximation of
on the interval
computed with
data points sampled from the distribution
.