← All widgets

Loss Functions & the Diebold-Mariano Test

ECON-5371 · Time Series Analysis and Forecasting — Chapter 5 companion widget

Two Competing Forecasts

Both forecasts target the same series. Shape their error patterns, then judge which is "better" under different loss functions.
Forecast 1
Forecast 2
Loss Function
DM Test Settings
n = 120 origins · Newey-West bandwidth K = h − 1
Adjust the sliders to compare forecasts.
Forecast Errors Over Time Forecast 1 Forecast 2
Loss Differential, d(t) = L(e₁ₜ) − L(e₂ₜ)
Error Distributions
Average Loss by Criterion (both forecasts, all three loss functions)