, .fit()
method döner:
şekil, loc, ölçek: yüzer tupleHerhangi bir şekil istatistik içinMLEs, bunu yer ve ölçek için takip eder.
ve .pdf()
method kabul eder:
x: miktarlarını
ARG1, arg2, arg3, array_like ...: (docstring'ini bakınız dağıtımı için şekil parametresi (ler) array_like Örnek nesnenin daha fazla bilgi için)
loc: array_like, isteğe bağlı konum parametresi (default = 0)
ölçeği: array_like, Yani esasen
opsiyonel böyle bir şey yapacağını:
import numpy as np
from scipy import stats
from matplotlib import pyplot as plt
# some random variates drawn from a beta distribution
rvs = stats.beta.rvs(2, 5, loc=0, scale=1, size=1000)
# estimate distribution parameters, in this case (a, b, loc, scale)
params = stats.beta.fit(rvs)
# evaluate PDF
x = np.linspace(0, 1, 1000)
pdf = stats.beta.pdf(x, *params)
# plot
fig, ax = plt.subplots(1, 1)
ax.hold(True)
ax.hist(rvs, normed=True)
ax.plot(x, pdf, '--r')
[Burada örnek kodu ile tüm scipy.stats dağılımları PDF'leri vardır.] (http://stackoverflow.com/a/37559471/2087463) – tmthydvnprt