Skip to content

Commit

Permalink
remove random forecasts
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermebodin committed May 25, 2020
1 parent 2a43751 commit 622b6b2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/diebold_mariano.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,6 @@ using HypothesisTests: default_tail
@test pvalue(dm_test) 0.7818 atol=atol
@test pvalue(dm_test, tail=:right) 0.3909 atol=atol
@test pvalue(dm_test, tail=:left) 0.6091 atol=atol

# Random forecast must be worse then ets and arima
Random.seed!(1)
e_rand = rand(20)
dm_test = DieboldMarianoTest(e_ets, e_rand)
@test pvalue(dm_test) 0.0045 atol=atol
@test pvalue(dm_test, tail=:right) 0.0024 atol=atol
@test pvalue(dm_test, tail=:left) 0.9975 atol=atol

dm_test = DieboldMarianoTest(e_arima, e_rand)
@test pvalue(dm_test) 0.012 atol=atol
@test pvalue(dm_test, tail=:right) 0.0062 atol=atol
@test pvalue(dm_test, tail=:left) 0.9937 atol=atol
show(IOBuffer(), dm_test)

@test_throws DimensionMismatch DieboldMarianoTest(rand(3), rand(4))
Expand Down

0 comments on commit 622b6b2

Please sign in to comment.