What does Knapsacks, Inspection Games and the Customs Reversal Point conclude, in numbers, about “The Nonlinearity of Hidden Penalties: Back Taxes, Confiscation, Tracing and Credit”?
Answer: Chapter 4 itemises the bill after a finding and shows that tracing and thresholds make the expected hidden cost accelerate with the number of trips: at 12 trips a year the probability of a finding is 0.8889 and the expected hidden cost 144001 yuan.
Scope of the numbers: Its parameters are illustrative and laws differ from place to place; all calculations are generated by its programs; the book is not individual legal or tax advice. Marked boxes separate published evidence, runnable Python calculations (19 programs), classical sources and the author's hypotheses.
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.8889, 12, 144001
| trips | p(n) | P(found) | tax saved | hidden cost | net | hidden/trip |
|---|---|---|---|---|---|---|
| 2 | 0.0204 | 0.0364 | 11671 | 3715 | 7956 | 1857 |
| 4 | 0.0215 | 0.0751 | 22862 | 8564 | 14298 | 2141 |
| 6 | 0.0252 | 0.1286 | 33247 | 16209 | 17037 | 2702 |
| 8 | 0.0380 | 0.2431 | 41171 | 33544 | 7627 | 4193 |
| 10 | 0.0790 | 0.5219 | 40889 | 78283 | -37394 | 7828 |
| 12 | 0.1859 | 0.8889 | 26542 | 144001 | -117459 | 12000 |
| 16 | 0.5035 | 0.9999 | 7241 | 185988 | -178747 | 11624 |
| 20 | 0.5909 | 1.0000 | 5283 | 210885 | -205602 | 10544 |
| 24 | 0.5993 | 1.0000 | 5125 | 252628 | -247503 | 10526 |
| 32 | 0.6000 | 1.0000 | 5111 | 482000 | -476889 | 15062 |
| 48 | 0.6000 | 1.0000 | 5111 | 774275 | -769164 | 16131 |
| net expected saving peaks at 6 trips a year; turns negative at 9 |
Show the full program
# Chapter 4. p41: expected hidden cost of undeclared carrying vs scale.
# A buyer makes n trips a year, each with goods V = 30000 yuan and tax
# T = 6000 not declared. The inspection rate p(n) follows the risk
# profile of p32 with k = n / 4 trips a quarter (Poisson terms via the
# gamma function); a finding needs inspection x sensitivity 0.9. At the
# first finding the goods are confiscated, a fine of m = 1 times T is
# due, a credit loss C = 60000 is booked, and each of the n - 1 other
# trips of the past twelve months is traced with probability r = 0.5,
# adding back tax plus fine (1 + m) T per traced trip. If traced tax
# reaches Q = 100000 a severe tier costs a further K = 400000. The
# carrying stops after a finding. Everything is illustrative; actual
# tax, penalty and tracing rules differ by jurisdiction and by case.
import math
V, T, S, M, R, Q, K, C = 30000, 6000, 0.9, 1, 0.5, 100000, 400000, 60000
def p_insp(n):
k = n / 4
a = 0.02 * math.exp(-5.0 + k * math.log(5.0) - math.lgamma(k + 1))
b = 0.98 * math.exp(-0.4 + k * math.log(0.4) - math.lgamma(k + 1))
return 0.02 + 0.58 * a / (a + b)
def cost(n):
p = p_insp(n)
h = p * S
pdet = 1 - (1 - h) ** n
traced = []
for x in range(n):
pr = math.comb(n - 1, x) * R ** x * (1 - R) ** (n - 1 - x)
hit = K if (x + 1) * T >= Q else 0
traced.append(pr * (x * (1 + M) * T + hit))
per_find = V + M * T + C + math.fsum(traced)
save = T * math.fsum((1 - h) ** j for j in range(1, n + 1))
return p, pdet, save, pdet * per_find
print("trips p(n) P(found) tax saved hidden cost net hidden/trip")
prev = None
for n in (2, 4, 6, 8, 10, 12, 16, 20, 24, 32, 48):
p, pd, sv, pen = cost(n)
print("{:5d}{:8.4f}{:9.4f}{:11.0f}{:12.0f}{:10.0f}{:11.0f}".format(
n, p, pd, sv, pen, sv - pen, pen / n))
best = max(range(1, 61), key=lambda n: cost(n)[2] - cost(n)[3])
print("net expected saving peaks at {} trips a year; turns negative at {}"
.format(best, min(n for n in range(1, 61)
if cost(n)[2] < cost(n)[3])))Single source and citation
Fan, Y. (2026). Two-Dimensional Volume-Weight Knapsacks for Cross-Border Buyers, Port Risk-Profiling Inspection Games and the Scale Reversal Point to Formal Customs Clearance (Version 1.0.0), Chapter 4: The Nonlinearity of Hidden Penalties: Back Taxes, Confiscation, Tracing and Credit. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-174 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026174,
author = {Fan, Yafu},
title = {Two-Dimensional Volume-Weight Knapsacks for Cross-Border Buyers, Port Risk-Profiling Inspection Games and the Scale Reversal Point to Formal Customs Clearance},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · One Suitcase as a Two-Dimensional Knapsack: Weight, Volume and the Price of Greedy Density
- Chapter 2 · The Larger of Actual and Volumetric Weight: Break-Even Density, Mixed Loads and Vacuum Packing
- Chapter 3 · The Border as an Inspection Game: Mixed Equilibria of Declaring and Risk Profiling
- Chapter 5 · The Scale Reversal Point: Landed Cost of Carrying, Cross-Border E-Commerce and General Trade
- Chapter 6 · Tail Risk in a Year of Cash Flow and the Landed-Cost Calculator
- Chapter 7 · Classical Sources: the Salt Policy of the Guanzi "Hai Wang" and Smith's Smuggler
- Chapter 8 · Practice and Falsification: Checklists for Buyers and Owners, the Calculator and a Pre-Registered Protocol