
Variogram score for multivariate point forecasts
Source:R/metrics-multivariate-point.R
variogram_score_multivariate_point.RdCompute the variogram score for multivariate point forecasts,
treating each point forecast as a single-sample ensemble.
This is a thin wrapper around
variogram_score_multivariate() with w = NULL.
See variogram_score_multivariate() for details on the
variogram score and its parameters.
Arguments
- observed
A vector with observed values of size n
- predicted
Numeric matrix with one column, where each row corresponds to a target within a multivariate group.
- mv_group_id
Numeric vector of length n with ids indicating the grouping of predicted values. Conceptually, each row of the
predictedmatrix could be seen as a separate (univariate) forecast. The grouping id then groups several of those forecasts together, treating them as a single multivariate forecast.- w_vs
Optional non-negative weight matrix for the pairwise comparisons between targets. Entry
w_vs[i, j]controls the importance of the pair (i, j) in the score. Must be a symmetric square matrix with rows and columns equal to the number of targets within each multivariate group. IfNULL(the default), all pairs are weighted equally.- p
Numeric, order of the variogram score. This controls how pairwise differences are scaled: the score compares |y_i - y_j|^p across targets. Lower values of
pgive less weight to large differences, making the score more robust to outliers. Typical choices are 0.5 (the default) and 1.