如何使用 python 和 scipy 获取泊西奥随机变量?哇..我安装了 scipy 并且根据文档我得到没有名为 scipy.stats 的模块?我在 ubuntu 12.04 上。所以......去图
http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html
ubuntu@ubuntu:~/Downloads$ sudo apt-get install python-scipy
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-scipy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 482 not upgraded.
ubuntu@ubuntu:~/Downloads$ python
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.stats import poisson
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy.stats