Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Python equivalent to MATLAB's pearsrnd function?

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?

Thanks in advance.

like image 529
TimHussonSLCG Avatar asked Nov 11 '13 16:11

TimHussonSLCG


1 Answers

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

like image 108
CT Zhu Avatar answered Nov 17 '22 14:11

CT Zhu