One-sided empirical Bernstein CS for Winkler scores (Proposition 4)
Source:R/winkler.R
winkler_cs.RdApplies the Winkler normalisation and constructs a one-sided upper
confidence sequence for the mean Winkler score W_t = (1/t)*sum w_i.
The CS takes the form (-Inf, U_t], valid uniformly over all t >= 1.
Arguments
- p
Numeric vector in (0,1). Forecasts from model 1.
- q
Numeric vector in (0,1). Forecasts from model 2.
- y
Numeric vector containing only 0 and 1. Binary outcomes.
- alpha
Numeric in (0,1). Significance level. Default: 0.05.
- base_score
Function. Underlying scoring rule. Default: log_score.
- v_opt
Numeric > 0. Optimal intrinsic time. Default: 10.
- lower_bound
Numeric or NULL. Analytical lower bound on w_i for two-sided CS via Corollary 2. If NULL (default), returns one-sided CS only. If supplied, must satisfy w_i >= lower_bound for all i almost surely.
Value
data.frame with columns t, estimate, lower, upper. lower = -Inf always (one-sided) unless lower_bound is supplied.
Details
Scale convention: Winkler score bounded above by 1, so c/2 = 1, c = 2. This is hardcoded — do not change c without re-deriving the bound.