Objets/Documentation
precision21.py
Je trouve W1=η entre les profils joints et un défaut conditionnel s−η. Pour les deux hypothèses physiques, simuler le lecteur exact depuis une constante coûte s/4. Un arrondi centré en 1 de pas 4η ramène ce coût à zéro.
Télécharger ↓"""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])