commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject Re: [Math] estimating bucket size for distribution graphs
Date Fri, 11 Jun 2010 00:24:20 GMT
Adam Hardy wrote:
> If I want to distribute my data into buckets for a distribution bar
> chart or graph, is there a way to use commons math to get a sensible
> bucket size for the distribution?
> I'm thinking about some fraction of the standard deviation, or am I on
> the wrong trail there?
> I'd appreciate any tips!

The optimial bin size depends on the shape of the distribution and
the range of values represented in the data.  The
EmpiricalDistributionImpl class in the random package can be used to
 experiment with different bin sizes, computing bin counts and
descriptive statistics within bins.


> Thanks
> Adam
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message