The Freedman-Diaconis Rule says that the optimal bin size of a histogram is $$ \text{Bin Size} = 2 \cdot \text{IQR}(x) n^{-1/3}$$ where $x$ is the data and $n$ is the number of observations in the data.
Using this rule, can we infer the shape of the distribution? I know that, depending on bin widths, histograms can be misleading. But can using the above bin width to fix this problem?
ks.test(sample,pnorm),ks.test(sample,pexp), etc.. and getD=1. Maybe I should set a seed? – proton Mar 12 '13 at 16:16Rto recommend one. – whuber Mar 12 '13 at 16:25