statistical data binning