Skip to contents

Measure of the proportion of correctly predicted directions between successive observations in forecast tasks.

Details

$$ \mathrm{MDA} = (a - b)\,\frac{1}{n-1} \sum_{i=2}^n \mathbf{1}\{\mathrm{sign}(y_i - y_{i-1}) = \mathrm{sign}(\hat y_i - \hat y_{i-1})\} \;+\; p $$ where a is the reward for a correct direction (default 1), b is the penalty for an incorrect direction (default 0), and n is the number of observations.

Dictionary

This mlr3::Measure can be instantiated via the dictionary mlr3::mlr_measures or with the associated sugar function mlr3::msr():

mlr_measures$get("fcst.mda")
msr("fcst.mda")

Meta Information

  • Task type: “regr”

  • Range: \((-\infty, \infty)\)

  • Minimize: FALSE

  • Average: macro

  • Required Prediction: “response”

  • Required Packages: mlr3, mlr3forecast

Parameters

IdTypeDefaultRange
rewardnumeric-\((-\infty, \infty)\)
penaltynumeric-\((-\infty, \infty)\)

References

Blaskowitz, Herwartz H (2011). “On economic evaluation of directional forecasts.” International Journal of Forecasting, 27(4), 1058–1065.

See also

Other Measure: mlr_measures_fcst.mdpv, mlr_measures_fcst.mdv

Super class

mlr3::Measure -> MeasureMDA

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage


Method clone()

The objects of this class are cloneable with this method.

Usage

MeasureMDA$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.