是否有与 MATLAB 的 pearsrnd 函数等效的 Python? [英] Is there a Python equivalent to MATLAB's pearsrnd function?

查看:69
本文介绍了是否有与 MATLAB 的 pearsrnd 函数等效的 Python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 Pearson 系统中生成具有给定均值、方差、偏度和峰度的随机数.我可以在 MATLAB 中使用pearrnd"执行此操作——scipy、statsmodels 或任何其他包是否具有类似的功能?

I would like to generate random numbers with a given mean, variance, skewness, and kurtosis from the Pearson system. I can do this in MATLAB using "pearsrnd" -- does scipy, statsmodels, or any other package have a similar function?

提前致谢.

推荐答案

在新版本(scipy >0.12.0)中,有一个:scipy.stats.pearson3.http://docs.scipy.org/doc/scipy-0.13.0/reference/generated/scipy.stats.pearson3.html

In the new version (scipy >0.12.0), there is one: scipy.stats.pearson3. http://docs.scipy.org/doc/scipy-0.13.0/reference/generated/scipy.stats.pearson3.html

这篇关于是否有与 MATLAB 的 pearsrnd 函数等效的 Python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆