lqmean_sf | R Documentation |
L_q
-mean scoring function
The function lqmean_sf computes the L_q
-mean scoring function, when
y
materialises and x
is the predictive L_q
-mean.
The L_q
-mean scoring function is defined by Chen (1996). It is equivalent
to the L_q
-quantile scoring function at level p = 1/2
, up to a
multiplicative constant.
lqmean_sf(x, y, q)
x |
Predictive |
y |
Realisation (true value) of process. It can be a vector of length
|
q |
It can be a vector of length |
The L_q
-mean scoring function is defined by:
S(x, y, q) := |x - y|^q
Domain of function:
x \in \mathbb{R}
y \in \mathbb{R}
q \geq 1
Range of function:
S(x, y, q) \geq 0, \forall x, y \in \mathbb{R}, q \geq 1
Vector of L_q
-mean losses.
For the definition of L_q
-means, see Chen (1996). In particular,
L_q
-means are the solution of the equation
\textnormal{E}_F[V(x, Y, q)] = 0
, where
V(x, y, p, q) := q \textnormal{sign}(x - y) |x - y|^{q - 1}
L_q
-means are L_q
-quantiles at level p = 1/2
.
The L_q
-mean scoring function is negatively oriented (i.e. the smaller,
the better).
The L_q
-mean scoring function is strictly \mathbb{F}
-consistent
for the L_q
-mean functional. \mathbb{F}
is the family of probability
distributions F
for which \textnormal{E}_F[Y^q]
exists and is finite
(Chen 2016; Bellini 2014).
Bellini F, Klar B, Muller A, Gianin ER (2014) Generalized quantiles as risk measures. Insurance: Mathematics and Economics 54:41–48. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.insmatheco.2013.10.015")}.
Chen Z (1996) Conditional L_p
-quantiles and their application to the
testing of symmetry in non-parametric regression.
Statistics and Probability Letters 29(2):107–115.
\Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/0167-7152(95)00163-8")}.
# Compute the Lq-mean scoring function.
df <- data.frame(
y = rep(x = 0, times = 6),
x = c(2, 2, -2, -2, 0, 0),
q = c(2, 3, 2, 3, 2, 3)
)
df$lqmean_penalty <- lqmean_sf(x = df$x, y = df$y, q = df$q)
print(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.