Hi all, can anyone recommend a way of generating random numbers via a Poisson distribution?
I'm trying to wrangle scipy.stats.poisson to get something centered at 10, say, with a nice long tail out to the right, but I can't figure out how to manipulate the shape of the the distribution. Here's the code I'm using: from scipy.stats import poisson moo = 10 p = poisson(moo) dist = p.rvs((100000,)).tolist() s=stats.TimeSeries(dist).plot_histogram(bins=172, normalize=False, color='black') s.show(xmin=0, xmax=50, aspect_ratio=.001) The docs for poisson() suggest I can change loc, scale, size, and shape, but I can't figure out the syntax. If there's a better way I'd love to hear about it also. Thanks! Best Andrew -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
