Ask Your Question
0

Best way to handle probability distributions

asked 12 years ago

calc314 gravatar image

I'm curious to know what people recommend as the best way to handle probability distributions in Sage. Using scipy requires setting up a lambda function when doing a plot, and RealDistribution only accepts one parameter (standard deviation) for the normal distribution when there should be two. Is there a better option?

Preview: (hide)

Comments

It is possible to use the normal with a different mean, by just moving all the data - in fact, I think we showed that in the PREP workshop at some point. Obviously that's not optimal, though - maybe you should open a ticket? Just sayin' :-)

kcrisman gravatar imagekcrisman ( 12 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 12 years ago

niles gravatar image

scipy.stats seems quite full-featured, although I've only used rv_discrete myself. You can define a new distribution as a subclass of rv_continuous or rv_discrete, and give it methods for the density, cumulative distribution, and many other things.

You should probably also look at R.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 1,257 times

Last updated: Oct 30 '12