What does Three-Light Cut Points conclude, in numbers, about “A Six-Cell Loss Matrix: Bayes Risk in Three Zones and Two Cut Points”?

Answer: A guess at 0.50 of the true value, 25.0 yuan, loses an extra 17.5 yuan per hundred conversations, 7.3 % of the optimal loss; a guess at 2.00 times, 100.0 yuan, loses an extra 23.0 yuan, or 9.6 %. A guess off by about a third costs roughly two per cent: 35.0 yuan adds 5.2 yuan and 70.0 yuan adds 5.4 yuan. Only a fourfold error makes the loss substantial: a guess of 12.5 yuan adds 73.4 yuan, or 30.7 %, and a guess of 200.0 yuan adds 89.9 yuan, or 37.6 %.

Scope of the numbers: Private customer service has a third action, a bot draft checked by a person, so it needs a six-cell loss matrix with two cut points; under illustrative parameters red lights below a chance of being right of 0.4000 and green from 0.9500. Parameters are illustrative, all conversations are fictional, and all numbers come from the book's programs, which read and write no file and connect to no customer-service system.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.50, 100.0, 12.5, 17.5, 2.00, 200.0

LW_hatfactorp_lop_hicost/100regretregret %
12.50.250.00000.8000312.573.430.7
25.00.500.00000.9000256.617.57.3
35.00.700.14290.9286244.35.22.2
50.01.000.40000.9500239.10.00.0
70.01.400.57140.9643244.55.42.3
100.02.000.70000.9750262.123.09.6
200.04.000.85000.9875329.089.937.6
Show the full program
# Chapter 2. p23: what if the owner misjudges the price of a wrong answer?
# Model (illustrative): the loss matrix of p21 (CA = 2, M = 0.8, CR = 8)
# with a true wrong-answer loss LW = 50. The owner sets both cuts from
# a guess LW_hat; the cost is then scored with the true LW. Regret is
# the extra yuan per 100 chats over the cuts set with the true value.
import math

LW, CA, M, CR = 50.0, 2.0, 0.8, 8.0
MU, SD = 3.0, 1.6


def nodes(n=4001):
    zs = [MU + SD * (-8.0 + 16.0 * i / (n - 1)) for i in range(n)]
    ws = [math.exp(-0.5 * ((z - MU) / SD) ** 2) for z in zs]
    tot = math.fsum(ws)
    return [(1.0 / (1.0 + math.exp(-z)), w / tot) for z, w in zip(zs, ws)]


PW = nodes()


def cuts(lw):
    p_hi = 1 - CA / (M * lw)
    p_lo = max(0.0, 1 - (CR - CA) / ((1 - M) * lw))
    return p_lo, p_hi


def true_cost(lw_hat):
    lo, hi = cuts(lw_hat)
    terms = []
    for p, w in PW:
        if p >= hi:
            r = (1 - p) * LW
        elif p >= lo:
            r = CA + (1 - p) * (1 - M) * LW
        else:
            r = CR
        terms.append(w * r)
    return 100 * math.fsum(terms)


base = true_cost(LW)
print("LW_hat  factor   p_lo    p_hi    cost/100  regret  regret %")
for lw_hat in (12.5, 25.0, 35.0, 50.0, 70.0, 100.0, 200.0):
    lo, hi = cuts(lw_hat)
    c = true_cost(lw_hat)
    print("%6.1f  %6.2f  %6.4f  %6.4f  %8.1f  %6.1f  %8.1f"
          % (lw_hat, lw_hat / LW, lo, hi, c, c - base,
             100 * (c - base) / base))

Single source and citation

Fan, Y. (2026). Three Lights for Handing Over between Bot and Human in Private Customer Service: Misclassification Loss Matrices, Chow's Reject Rule and Optimal Cut Points on Calibrated Confidence (Version 1.0.0), Chapter 2: A Six-Cell Loss Matrix: Bayes Risk in Three Zones and Two Cut Points. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-266 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026266,
  author    = {Fan, Yafu},
  title     = {Three Lights for Handing Over between Bot and Human in Private Customer Service: Misclassification Loss Matrices, Chow's Reject Rule and Optimal Cut Points on Calibrated Confidence},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book