How to bin data properly for further study, by example to plot it estimated PDf and CDF?

using StatsBase
x = randn(100)
h = fit(Histogram, x)
h.edges
h.weights

20M data points are not that many, but the package OnlineStats also has functionality for this if you prefer.

2 Likes