Skip to contents

Measures the proportion of true values that fall within the prediction interval. A well-calibrated prediction interval at level \(1 - \alpha\) should have coverage close to \(1 - \alpha\).

Details

$$ \mathrm{Coverage} = \frac{1}{n} \sum_{i=1}^n \mathbf{1}\{l_i \le y_i \le u_i\} $$ where \(l_i\) and \(u_i\) are the lower and upper bounds of the prediction interval and \(y_i\) is the observed value.

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.coverage")
msr("fcst.coverage")

Meta Information

  • Task type: “regr”

  • Range: \([0, 1]\)

  • Minimize: FALSE

  • Average: macro

  • Required Prediction: “quantiles”

  • Required Packages: mlr3, mlr3forecast

Parameters

IdTypeDefaultRange
alphanumeric-\([0, 1]\)

See also

Other Measure: mlr_measures_fcst.acf1, mlr_measures_fcst.mase, mlr_measures_fcst.mda, mlr_measures_fcst.mdpv, mlr_measures_fcst.mdv, mlr_measures_fcst.mpe, mlr_measures_fcst.rmsse, mlr_measures_fcst.winkler

Super classes

mlr3::Measure -> mlr3::MeasureRegr -> MeasureCoverage

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

MeasureCoverage$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.