"""The remedy for the strict daily reading: assessment risk 2.75% (q_l 0.29% at a 00:00 UTC day,
0.14% at 21:00, s06) against 3% (1.15%, 1.58%), the wallet gate at the deployed cost, 5,000
paths a run, seeds 5 to 8 in sequence, common random numbers."""
import numpy as np

from common import G_COIN
from wallet_variant import wallet_variant

for label, ra, q in (("3%, no breach", 0.03, 0.0), ("3%, strict 00:00", 0.03, 0.0115), ("3%, strict 21:00", 0.03, 0.0158),
                     ("2.75%, no breach", 0.0275, 0.0), ("2.75%, strict 00:00", 0.0275, 0.0029), ("2.75%, strict 21:00", 0.0275, 0.0014)):
    v = np.concatenate([wallet_variant(G_COIN, 7, 0.01575, q_eval_loss=q, seed=s, ra=ra) for s in (5, 6, 7, 8)])
    print(f"{label:22}: E[log g] {v.mean():+.4f} +/- {v.std(ddof=1) / np.sqrt(len(v)):.4f}", flush=True)
