Comparing two histograms

Comparing histograms is quite a subject in itself. You’ve got two big classes of comparison functions : bin-to-bin comparison and cross-bin comparison. Bin-to-bin comparison : As you stated, standard sum of differences is quite bad. There’s an improvement: the Chi-squared distance. If H1.red[0] = 0.001 and H2.red[0] = 0.011, then H2.red[0] is much more important … Read more

How does numpy.histogram() work?

A bin is range that represents the width of a single bar of the histogram along the X-axis. You could also call this the interval. (Wikipedia defines them more formally as “disjoint categories”.) The Numpy histogram function doesn’t draw the histogram, but it computes the occurrences of input data that fall within each bin, which … Read more