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 <[EMAIL PROTECTED]>:
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion