【发布时间】:2016-02-29 07:50:13
【问题描述】:
我需要计算两个数据集的 CDF,并使用第二个数据集的 CDF 校正第一个数据集的 CDF。我使用下面显示的代码来查找 CDF。
sorted_data = np.sort(f_o_data[:,0])
cdf_fcs=np.arange(len(sorted_data))/(float(len(sorted_data)))
plt.plot(sorted_data,cdf_fcs,'g')
sorted_data = np.sort(f_o_data[:,1])
cdf_obs=np.arange(len(sorted_data))/(float(len(sorted_data)))
plt.plot(sorted_data,cdf_obs,'r')
plt.grid()
plt.show()
现在我卡住了,我不知道如何找到 CDF 的逆。 任何人都可以帮我在 python 中找到 CDF 的倒数
【问题讨论】:
-
作为CDF,您是指累积分布函数吗?逆是指概率密度函数吗?