🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Anybody can ask a question
Anybody can answer
The best answers are voted up and moderated by our team

How to determine the right bin width?

How to determine the right bin width?


Hello, I have questions regarding bin width:

  1. How to determine the right bin width when creating the graphs?
  2. What kind of graphs use bin width? I think except scatter plot?

More explanation about bin width would be highly appreciated.
Thank you.

1 Answer

365 Team

Hi Melissa,
First the bin width is usually used for a histogram. A scatter plot does not have bin width, as there are no bins involved.
Usually we are talking about a histgoram.
The bin width itself really depends on your problem. 
I am usually aiming for number of bins (and not a specific bin width). 5 to 10 bins are optimal for most problems. 

Hi Iliya, thank you! I will try to use 5 – 10 for the number of bins on my data.

9 months