Ask Your Question
0

Best way to handle probability distributions

asked 2012-10-28 17:15:51 -0600

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?

edit retag flag offensive close merge delete

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 ( 2012-10-30 10:21:49 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-10-30 02:39:18 -0600

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.

edit flag offensive delete link more

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: 2012-10-28 17:15:51 -0600

Seen: 602 times

Last updated: Oct 30 '12