Ask Your Question

how to calculate in SAGE the cumulative distribution function of a "stable distribution"?

asked 2012-04-11 11:56:26 -0500

juanpool gravatar image

updated 2015-01-18 04:24:26 -0500

FrédéricC gravatar image

A stable distribution, defined in wiki is basically defined by,

In probability theory, a random variable is said to be stable (or to have a stable distribution) if it has the property that a linear combination of two independent copies of the variable has the same distribution, up to location and scale parameters.

As far as I know, the family of stable distributions is defined by four parameters: mu, c, alpha and beta. I need to generate random numbers according to a given stable distribution, that is, to a given choice of the parameters of the stable distribution family.

How can it be done in SAGE? Is there some "statistical package" which provides this?

Best regards.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-04-11 15:15:26 -0500

juanpool gravatar image

I am considering tree possible solutions.

  1. Implementing this algorithm withing a python function.
  2. Using the GNU Scientific Library (GSL) from within a SAGE program. More specifically this GSL function.
  3. Using R from SAGE with the fBasic R package.

Best Regards.

edit flag offensive delete link more


Finally option 3 did the job.

juanpool gravatar imagejuanpool ( 2013-01-16 02:39:54 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2012-04-11 11:56:26 -0500

Seen: 723 times

Last updated: Apr 11 '12