[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
hist.patch
Description: Text Data
- patch proposal for hist,
Lars Winterfeld <=