Hi Brian,

SymPy 0.7.1 was released before sympy.stats was created. You'll have to
download and use the git version available here
https://github.com/sympy/sympy.

sympy.stats will be available in the 0.7.2 release which should, I hope, be
released soon.

Also, the interface to sympy.stats may change slightly. All examples will
be kept up to date here
https://github.com/mrocklin/cise-sympy-stats

Please let me know if you have any questions,
-Matthew

On Tue, Jun 5, 2012 at 9:23 AM, Brian Blais <[email protected]> wrote:

> So I am using sympy version 0.7.1, and am trying to reproduce a recent
> article in CISE (Computing in Science and Education) by Matthew Rocklin and
> Andy Terrel (http://dx.doi.org/10.1109/MCSE.2012.56) on "Symbolic
> Statistics with Sympy".  In the article they calculate the position and
> speed of a projectile. Then they replace one of the variables with a random
> variable, to look at the resulting effect on the trajectory.
>
> They don't post all of the code together, but they have things like:
>
> from sympy.stats import *
> X=Die(6)
>
> which immediately gives me ImportError: No module named stats
>
> if I replace it with sympy.statistics, then I get NameError: name 'Die' is
> not defined
>
> finally, in their trajectory example, they have
>
> y0=Normal(10,1)
> x0,yf,v,theta,t,g=symbols('x0,yf,v,theta,t,g')
> y=y0+v*sin(theta)*t-g/2*t**2
>
> and it gives TypeError: unsupported operand type(s) for +: 'Normal' and
> 'Mul'
>
> it seems as if sympy.statistics.Normal doesn't behave at all like
> described in the article - you can't seem to add or subtract anything to
> it, etc...
>
> Am I doing something wrong?  Is there a different download that I am
> missing?
>
>
>                thanks!
>
>                        Brian Blais
>
> --
> Brian Blais
> [email protected]
> http://web.bryant.edu/~bblais
> http://brianblais.wordpress.com/
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> 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/sympy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
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/sympy?hl=en.

Reply via email to