我想计算 3 个数组 X1、X2 和 Y 的自协方差,它们都是平稳的随机过程。 sciPy 或其他库中有没有函数可以解决这个问题?
最佳答案
Statsmodels 具有自协方差函数和交叉协方差函数
http://statsmodels.sourceforge.net/devel/generated/statsmodels.tsa.stattools.acovf.html http://statsmodels.sourceforge.net/devel/generated/statsmodels.tsa.stattools.ccovf.html
加上相关函数和偏自相关 http://statsmodels.sourceforge.net/devel/tsa.html#descriptive-statistics-and-tests
关于python - 如何在 Python 中计算自协方差,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20110590/