Objects/Documentation
precision21.py
I obtain W1=η between joint profiles and conditional defect s−η. For the two physical hypotheses, simulating the exact reader from a constant costs s/4. Rounding on a grid of width 4η centred at 1 reduces this cost to zero.
Download ↓"""Two latent signs: joint likelihood approximation and calibration of the observation."""
from fractions import Fraction as F
import json
from deficience21 import certificate,tv,push
def study(s,eta):
assert 0<eta<s<1
q=[F(1,2)]*2;p=[(1+s)/2,(1-s)/2];r=[(1+eta)/2,(1-eta)/2]
# Reference, physical alternative, calibrated alternative.
source=[q,p,q];target=[q,p,r]
forward=certificate(source,target);reverse=certificate(target,source)
k=[[F(1),F(0)],[eta/2,1-eta/2]]
assert max(tv(push(a,k),b) for a,b in zip(source,target))==forward['value']==eta/4
# Constant observation versus a reader resolving both signed values under Q and P.
reader=certificate([[F(1)],[F(1)]],[q,p])