[Numpy-discussion] arguments for stats.chi2
David Huard
david.huard at gmail.com
Wed Jul 5 08:23:12 CDT 2006
HI JJ,
try
stats.chi2.rvs(10)
stats.chi2.rvs(10, loc=0, scale =100, size = 5)
df is not a keyword argument, so writing df=10 explicitely was causing the
error.
David
2006/7/4, JJ <josh8912 at yahoo.com>:
>
> Hello. I have a very simple question. I would like
> to generate a number of random variables from the chi2
> distribution. If I wanted these for the normal
> distribution, the code could be
> stats.norm.rvs(size=5,loc=100,scale=1). But
> stats.chi2.rvs(size=5,df=10,loc=0,scale=1) or
> stats.chi2.rvs(df=10,loc=0,scale=1) or
> stats.chi2.rvs(df=10)does not work. Can anyone tell
> me what the proper syntax would be for this?
> Thanks JJ
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060705/ebbd30d0/attachment-0001.html
More information about the Numpy-discussion
mailing list