I have to plot some data using histograms. My data are between [0,1], with no large concentrations on any particular point.
What’s a good ratio between number of samples and number of bins (of equal length)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I generally use the square root of the number of samples as the number of bins. This is the simplest choice listed in the discussion of an appropriate number of bins in the Wikipedia histogram article. From this article
The use of the square root of the number of samples is generally a good place to start if you don’t want to make assumptions about the distribution of your data.