What does COD Deposits and Prepay Screening conclude, in numbers, about “Deposit Thresholds: Sweeping Basket Values and Refusal Rates, and a Rule That Reads Only the Buyer's Own Record”?
Answer: The first line lists six illustrative records and the second the matching posterior means. A buyer with two orders and one refusal has a posterior mean of 0.167 but fewer than five orders, so he still gets plain cash on delivery. Buyers with five orders and no refusal, or five orders and one refusal, have posterior means of 0.067 and 0.133, both below 0.15. A buyer with five orders and two refusals has a posterior mean of 0.200 and starts to be asked for a deposit: 3.0 units on a basket of 20 and 4.0 units on a basket of 45. A buyer with eight orders and four refusals, at 0.278, is asked for 3.5 to 4.5 units. A buyer with ten orders and nine refusals, at 0.500, has his deposit capped by the refusal cost on baskets up to 30 and is also offered prepayment. The basket of 8 is prepay-only for everyone.
Scope of the numbers: No peer-reviewed estimate of refusal rates in Southeast Asia was found, so all parameters are illustrative, and all calculations are generated by the book's programs. This is general analysis, not individualised business or legal advice.
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.067, 0.133, 0.167, 0.200, 0.278, 0.500
| history n/k | 2/1 5/0 5/1 5/2 8/4 10/9 |
| qhat | 0.167 0.067 0.133 0.200 0.278 0.500 |
| basket | 8 PP only PP only PP only PP only PP only PP only |
| basket | 10 COD COD COD D 3.0 D 3.5 D 3.5+PP |
| basket | 15 COD COD COD D 3.0 D 3.5 D 4.0+PP |
| basket | 20 COD COD COD D 3.0 D 3.5 D 4.0+PP |
| basket | 30 COD COD COD D 3.5 D 4.0 D 4.5+PP |
| basket | 45 COD COD COD D 4.0 D 4.5 D 5.0 |
| basket | 60 COD COD COD D 4.0 D 4.5 D 5.5 |
| D = deposit in u, credited on delivery, refunded in full if | |
| the failure was not the buyer's doing; +PP = prepay offered |
Show the full program
# Chapter 3. p32: from the separating deposit to a deposit threshold
# rule. Inputs are the basket value and the buyer's own order history
# only (n past COD orders, k refusals by the buyer). Posterior mean
# refusal rate with a Beta(1, 9) prior: qhat = (k + 1)/(n + 10).
# Rules: fewer than 5 past orders, or qhat <= 0.15, gives plain COD;
# otherwise a deposit D = min(D*(p, qhat), K) rounded down to 0.5 u
# (never above the refusal cost K); when D* > K a prepay discount is
# offered too (+PP). Baskets whose margin cannot pay the acquisition
# cost (p11) are prepay-only for every buyer alike. Costs as in p31;
# all thresholds illustrative.
import math
from fractions import Fraction as F
SO = SR = F(9, 5)
RATE, DR, DF, FEE, A = F(3, 25), 21, 10, F(3, 100), F(4, 5)
QH, PHI = F(1, 20), F(2, 25)
def costs(p):
c = F(13, 20) * p
m = p - c - SO - FEE * p - p * RATE * DF / 365
k = SO + SR + c / 20 + (c + SO) * RATE * DR / 365
return m, k
def dstar(p, ql):
m, k = costs(p)
d0 = (ql * k + A) / (1 - ql) - (QH * k + A) / (1 - QH)
return (1 - ql) * d0 / (ql + PHI - (1 - ql) * QH / (1 - QH))
def rule(p, n, k):
m, kk = costs(p)
if m <= A:
return "PP only"
qhat = F(k + 1, n + 10)
if n < 5 or qhat <= F(3, 20):
return "COD"
d = dstar(p, qhat)
dd = math.floor(min(d, kk) * 2) / 2
return "D {:.1f}{}".format(dd, "+PP" if d > kk else "")
if __name__ == "__main__":
hist = ((2, 1), (5, 0), (5, 1), (5, 2), (8, 4), (10, 9))
print("history n/k " + " ".join("{:>8s}".format(
"{}/{}".format(n, k)) for n, k in hist))
print("qhat " + " ".join("{:8.3f}".format(
(k + 1) / (n + 10)) for n, k in hist))
for p in (8, 10, 15, 20, 30, 45, 60):
print("basket {:3d} ".format(p) + " ".join(
"{:>8s}".format(rule(F(p), n, k)) for n, k in hist))
print("D = deposit in u, credited on delivery, refunded in full if")
print("the failure was not the buyer's doing; +PP = prepay offered")Single source and citation
Fan, Y. (2026). Cash-on-Delivery Refusal Games and the Trust Deficit in Southeast Asian E-Commerce: Deposit Thresholds and Prepayment-Discount Incentive Design (Version 1.0.0), Chapter 3: Deposit Thresholds: Sweeping Basket Values and Refusal Rates, and a Rule That Reads Only the Buyer's Own Record. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-314 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026314,
author = {Fan, Yafu},
title = {Cash-on-Delivery Refusal Games and the Trust Deficit in Southeast Asian E-Commerce: Deposit Thresholds and Prepayment-Discount Incentive Design},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Ledger of One Cash-on-Delivery Order: Two Shipping Legs, Damage, Tied-Up Capital and the Arithmetic of Collection
- Chapter 2 · Screening Equilibria: Carrying Rothschild and Stiglitz from the Insurance Market to the Courier's Doorstep
- Chapter 4 · The Optimal Prepayment Discount: Fees Saved, Fewer Second Thoughts and Money Given Away
- Chapter 5 · Whose Failure? Deterrence by Deposit, Fair Forfeiture and the Error Rate of a Flag Built on the Buyer's Own Record
- Chapter 6 · A Fixed-Seed Order Simulation: Four Payment Policies Applied to the Same Buyers
- Chapter 7 · Classics East and West: Written Contracts in the Market Chapter of the Rites of Zhou and Montesquieu on Commerce
- Chapter 8 · Closing the Loop: the Payment-Method Rule Table, the Deposit Threshold Calculator and a Pre-Registered Test