# Linked Questions

1answer
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 ...
0answers
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 ...
3answers
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 ...
2answers
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 "...
3answers
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, ...
1answer
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 ...
2answers
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 ...
3answers
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 ...
3answers
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 ...
1answer
62 views

### Stratified shuffle for normally distributed target variable

When splitting data for a classification problem one is advised to use stratified shuffling in case the target variable is skewed toward a certain class. Indeed, Sklearn has a function for that. ...
0answers
42 views

### Wikipedia's Article on the Histogram [duplicate]

Wikipedia's nice article on the histogram contains the following sentence: "Using wider bins where the density of the underlying data points is low reduces noise due to sampling randomness; using ...