使用 Diebold-Mariano 检验

数据挖掘 统计数据
2022-03-09 07:53:02

我从两种不同类型的神经网络中得到了预测结果。现在我想对这两个结果进行显着性检验,以证明它们的预测准确性不同。我了解到游戏中唯一的工具是 Diebold-Mariano 测试。我可以使用什么工具来运行这个测试(Matlab?R?)

1个回答

所以你想做一个 Diebold-Mariano 测试是吗?R包中的Diebold-Mariano测试dm.test函数怎么样?forecast

dm.test {forecast}

Diebold-Mariano test for predictive accuracy
Package: 
forecast
Version: 
6.2
Description

The Diebold-Mariano test compares the forecast accuracy of two forecast methods.
Usage

dm.test(e1, e2, alternative=c("two.sided","less","greater"),
    h=1, power=2)

(我花了十秒钟才找到)