Scorio - v0.2.3
    Preparing search index...

    Function maxAtKCi

    • Bayesian posterior summary for maxAtK, returning [mu, sigma, lo, hi].

      The posterior uses the same Dirichlet-plus-one construction as bayes. When k = 1, Max@1 reduces to the single-draw expected score, so this function agrees with bayesCi. This uncertainty model is a scorio extension and is not part of Bagirov et al. (2025).

      Parameters

      • R: Matrix

        M x N categorical outcome matrix with integer entries in {0,...,C}.

      • k: number

        Selection count; defined for any integer k >= 1. k = 1 matches bayesCi.

      • Optionalw: readonly number[] | null

        Optional reward vector of shape (C+1,). If omitted, R must be binary and [0, 1] is used.

      • OptionalR0: Matrix | null

        Optional M x D matrix of prior outcomes.

      • confidence: number = 0.95

        Credibility level for the normal-approximation interval.

      • Optionalbounds: Bounds | null

        Optional [lo, hi] clipping bounds. If omitted, the interval is clipped to the minimum and maximum reward levels in w.

      Returns [number, number, number, number]

      [mu, sigma, lo, hi].