Mean Absolute Scaled Error (MASE)
Category: volatility
Calculates the Mean Absolute Scaled Error (MASE), which compares the forecast error of a model against the error of a naive one-step-ahead forecast. Values > 1 indicate the model is worse than a naive forecast, while < 1 indicate it is better.
Formula
MASE = \frac{\frac{1}{n} \sum_{t=1}^n |Y_t - \hat{Y}_t|}{\frac{1}{n-1} \sum_{i=2}^n |Y_i - Y_{i-1}|} \text{ where } \hat{Y} \text{ is the forecast and } Y \text{ is the actual source.}
Inputs
- i_source1 (default: close)
- i_period (default: 100)
See signal primitives, usage in published strategies and more on WOBR StrategyVerse.