我想为我得到的到达间隔时间绘制一个 cdf,这是数据集:
301.195365
300.574688
301.236683
0
0
298.485142
270.404616
270.404619
0
0
0
0
0
0
270.357415
270.357394
0
0
0
0
0
0
0
0
...
我尝试了许多在其他主题中发现的建议,但对我没有用,它们是:
import scikits.statsmodels as sm
<....>
itr = getColumn("data.csv",0)
ecdf = sm.tools.ECDF(itr)
ax1.plot(itr, ecdf, 'rx')
另一个是:
import scipy.stats as stats
<....>
cdf = stats.binom.cdf
ax1.plot(itr, cdf(itr), 'rx')
我可以使用您的一些帮助和解释,因为我不完全了解 cdf 的工作原理,因此我可以将其应用于我的数据..
谢谢