770 views

### Defining bin sizes for plotting histograms [duplicate]

Perhaps a basic question, but is there a method or definition of how to choose the optimum bin size for some data with the intent to plot as a histogram? At present the best option I can think of is ...
680 views

### Histogram bin size to show deviation from uniform distribution [duplicate]

Simple question: Is there a rule of thumb for number of bins in a histogram with a uniform distribution? Details: I have a stochastic computer simulation that produces, as a test, $n$ values that ...
9k views

### Number of bins when computing mutual information

I want to quantify the relationship between two variables, A and B, using mutual information. The way to compute it is by binning the observations (see example Python code below). However, what ...
6k views

### Doane's formula for histogram binning

I'm implementing various algorithms to estimated the best number of bins to use for histograms. Most of the ones I am implementing are described on the Wikipedia "Histogram" page in the section "...
6k views

### Best way to put two histograms on same scale?

Let's say I have two distributions I want to compare in detail, i.e. in a way that makes shape, scale and shift easily visible. One good way to do this is to plot a histogram for each distribution, ...
6k views

### Histogram with uniform vs non-uniform Bins

This question describes the basic difference between a uniform and a nonuniform histogram. And this question discusses the rule of thumb for picking the number of bins of a uniform histogram that ...
6k views

### When to use Equal-Frequency-Histograms

... instead of e.g. the popular Equal-Width-Histograms. Additional question: What is a good/robust rule of the thumb to calculate the number of bins for equal frequency histograms (like the ...
635 views

### Information loss by histograms

Recently I became curious about what I imagine to be an old problem: the fidelity of histograms to an underlying data set. CrossValidated has a number of questions on the subject of "optimal ...
190 views

### Frequency Distribution

I have a question that is very important to me related to the book Basic Statistics for Business and Economics for organizing data into a frequency distribution: Step 1: Decide on the number of ...