Objects/Documentation
transport24.en.txt
Rational transport and checks · transport24.en.txt
Download ↓William Mançon
Constructing and checking a common decoder on a finite alphabet
I observe a cell with law a in one situation and law b in two others. I want the corresponding outputs to have laws q, p and r. A single row-stochastic matrix K acts in all three situations. I measure error by TV(u,v)=Σ|u−v|/2. Initially I assume that a kernel realizes the pair (a,b)→(q,r) exactly. I take rational inputs.
1. Selecting the common law. Write Hλ(u,v)=Σ(u−λv)₊. By AT.V36 the optimum is e=max{TV(p,r)/2, supλ≥0 [Hλ(q,p)−Hλ(a,b)]/(1+λ)}. Three budgets α,β,γ are feasible exactly when TV(p,r)≤β+γ and Hλ(q,p)−Hλ(a,b)≤α+λβ for all λ≥0. I reuse the filling algorithm in commun23 to obtain the common image y of b at distance min(β,TV(p,r)) from p. For equal budgets I use e throughout.
2. Projecting q at fixed image bK=y. I write L(u)=max a·f subject to 0≤f≤1 and b·f≤u, and M(u) for the same polygon with q,y. Decreasing likelihood ratios give their slopes, including free mass on zero-reference symbols first. The support value in direction (−λ,1) is Hλ(a,b). Conversely L(u)=infλ≥0[Hλ(a,b)+λu], with limiting slopes at endpoints. Vertical translation in either inequality therefore gives d=max_u(M−L)=maxλ≥0[Hλ(q,y)−Hλ(a,b)]. Zero and the finite ratio knots suffice since the final difference is constant. Contraction of tests and the TV bound imply every attainable image costs at least d.
Since L(u)≥u, I have d≤TV(q,y). I remove d from the largest ratios, first removing mass at zero-reference symbols in index order, then capping finite ratios at a common level if necessary. I add d by raising the smallest finite ratios to another common level. These levels straddle one since total excess and deficit relative to y both equal TV(q,y). I solve for them by exact affine interpolation. The middle of the resulting polygon follows M−d. Where the upper ratios have been capped, its initial line joins the origin to the first point of contact with M−d. If removal took place entirely on singular symbols the starting ordinate is M(0)−d and the upper part already follows M−d. The lower-ratio segment joins the last contact point to (1,1). Concavity of L bounds every segment from above, also when contacts coincide. Thus TV(x,q)=d and the image polygon lies below L.
3. Constructing K. I assign each positive input mass s_i=(a_i+b_i)/2 the value h_i=a_i/(a_i+b_i), and each positive output mass t_j=(x_j+y_j)/2 the value v_j=x_j/(x_j+y_j). Both distributions have mean 1/2. For 0≤z<1, Σs_i(h_i−z)₊=(1−z)H_{z/(1−z)}(a,b)/2. Input hinge integrals therefore dominate output hinge integrals.
In increasing order of h, I slide an interval of length t through the remaining mass for each output atom (t,v). Its first moment varies continuously and piecewise linearly. Its largest value equals inf_z[Σs(h−z)₊+tz], attained by the upper quantile cut. The corresponding output maximum is at least t times v because I could select that atom itself. Reflection and equality of the remaining means and masses give the lower bound. Exact interpolation provides an interval with moment t times v. I record its overlaps with input rows and remove them.
Let l,u be the endpoint values. For thresholds outside [l,u], the removed slice contributes exactly t(v−z)₊. Between l and u no input mass remains strictly inside. The residual input hinge integral is affine there, the residual output hinge integral convex. Th