【发布时间】:2021-05-22 20:04:24
【问题描述】:
当我尝试在变量 i 中绘制以下数据存储时,我遇到了麻烦。
Dates
2015-08-21 0.032369
2015-08-24 0.040211
2015-09-01 0.030023
Python
import statsmodels.api as sm
from matplotlib import pyplot as plt
fig = sm.qqplot(i, line='45')
plt.show()
R
r <- 0.01
spcs <- as.numeric(diff(time(i)))
qq_plot(spcs, FUN = function(p) qexp(p, rate = r)) # r = exceedance probability
在R中
我得到以下情节:
我在 colab 中分享笔记本的链接可能有助于理解问题
[Colab 链接][2]
【问题讨论】:
标签: python r matplotlib