Skip to content

This is the codes for Diebold-Mariano test based on Python

Notifications You must be signed in to change notification settings

Penn92/Diebold-Mariano-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Diebold-Mariano-test

This is the library for Diebold-Mariano test implemented with Python. The libraries Numpy and Scipy are required to use this library. The inputs should be two lists or arraies. They must be 1 dimension and their lengths should match. The output is the confidence that the two models which generate these two inputs have obvious performance discrepancy. If you want to use this library, you should first import the function in it. You can use the following code.

from DM_test import DM_test

Then, Assuming the two error lists generated by the two models are a and b, you can use the following code to get the confidence that the performance difference between these two models is big.

confidence=DM_test(a,b)

About

This is the codes for Diebold-Mariano test based on Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%