简体   繁体   中英

How to "mle_tuple" returned by "scipy.stats.rv_continuous.fit" to sample from a distribution(python/scipy)

I have gotten a result from fitting my data using(scipy.stats.rv_continuous.fit):

'exponweib': (10.92, 0.64,-0.91,2.816)
'genextreme': (-0.194, 10.92, 7.01),
'beta': (0.72,65.760,1.01999,862.270)

我发现了什么

I want to sample from each distribution after creating it using these parameters using python. How do I do that?

Unpack the tuple into the rvs method, like so: stats.beta.rvs(*mle_tuple, size=10) and so on

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM