3 ms·
When you think you want to plot a histogram, it's often a better idea to plot a (empirical) cumulative distribution [0] instead. You don't have to worry about h
by svara 9y ago
When you think you want to plot a histogram, it's often a better idea to plot a (empirical) cumulative distribution [0] instead. You don't have to worry about how to select your bin limits and you can usually put several in the same plot for comparison without making it unreadable due to overlap.
[0] https://en.wikipedia.org/wiki/Empirical_distribution_function https://en.wikipedia.org/wiki/Empirical_distribution_functio....
- aji 9y agoI like using cumulative distributions because they make small changes in the data a little more obvious. e.g. if all the buckets are 10 but there's a section where they're 11, that difference will show up in a cumulative distribution as a bend in an otherwise straight line, which in my opinion is a much easier difference to see
- convolvatron 9y agoisn't seeing a little hump in a pdf clearer?
- lukego 9y agoI'm also enarmored of ECDFs lately. I was really happy to discover the KS-test for making comparisons between them. https://en.m.wikipedia.org/wiki/Kolmogorov–Smirnov_test https://en.m.wikipedia.org/wiki/Kolmogorov–Smirnov_test https://stats.stackexchange.com/questions/288416/non-parametric-test-if-two-samples-are-drawn-from-the-same-distribution/288421?noredirect=1#comment551355_288421 https://stats.stackexchange.com/questions/288416/non-paramet...