octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch proposal for hist


From: Lars Winterfeld
Subject: patch proposal for hist
Date: Thu, 22 Oct 2015 10:37:12 +0200 (CEST)

Hi,

I want to propose a patch that changes the default number of bins of the hist()
function.

Currently, the default choice is 10. This respects neither the number of data
points nor estimated properties of the distribution. Here, I propose the follow
Freedman-Diaconis' choice, see
https://en.wikipedia.org/wiki/Histogram#Number_of_bins_and_width . How to
calculate the "perfect number of bins" is matter of taste and depends on the
unknown distribution. Still, Freedman-Diaconis is a fairly good choice for
reasons explained in the above Wikipedia article. In any case, it is better than
"10".

Cheers,
Lars

Attachment: hist.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]