Skip to content

betting_combat.rounds.execution.space

One fight’s remaining outcomes at a decision and what every instrument pays in them (2026-11-08): the three strategies (rounds, distance, no KO) on ONE state space, so one Kelly engine (execution.engine) trades them all.

States at the break after round r (round_idx r), or a minute of round r+1: A_ko ends in round r+1 by KO/TKO A_sub ends in round r+1 otherwise (a submission) B_ko ends in a later round by KO/TKO B_sub ends in a later round otherwise Cw goes the distance, a winner Cd goes the distance, a draw

Instruments (payoff per contract) A_ko A_sub B_ko B_sub Cw Cd RY rounds ‘ends before round r+2’ YES 1 1 0 0 0 0 RN rounds ‘ends before round r+2’ NO 0 0 1 1 1 1 DY distance YES 0 0 0 0 1 1 DN distance NO 1 1 1 1 0 0 PR decision pair (both ‘by decision’) 0 0 0 0 1 0 KN ‘ends by KO/TKO’ NO 0 1 0 1 1 1

A decision solves on the coarsest space its instruments tell apart: without KN the KO / submission split is merged - A, B, Cw, Cd, live.joint’s four states exactly (the same numbers, the same solver) - with KN it is kept.

The chances (Chances): the four states as live.joint.state_probs builds them (the distance chain clipped to 1 - P(A), the round-1 shade moved from C to B), and the KO masses inside A (this round’s KO chance) and B (the KO chance in the rounds after). In-round (Chances.in_round), conditioned on no finish in the first tau seconds of round r+1: pooled live.joint.clock_probs: A scaled by 1 - F(tau) (FinishClock, finishes of any method), its KO share kept split live.noko.p_no_ko: A’s KO mass by 1 - F_ko(tau), its submission mass by 1 - F_sub(tau) (MethodClock) both renormalised over what is left.

Classes

Chances

One decision’s chances: p4 (A, B, Cw, Cd) and the KO masses inside A (ko_a) and B (ko_b), each between 0 and its state’s chance.

at_break

at_break(p_a: float, p_c: float, draw: float, shade: float = 0.0, ko_round: float = math.nan, ko_later: float = math.nan) -> Chances

From P(ends this round) p_a, P(goes the distance) p_c and the draw share (live.joint.state_probs, the shade moved from C to B), with this round’s KO chance ko_round and the later rounds’ ko_later (NaN: unknown - zero, the four states never read them), each clipped into its state.

in_round

in_round(kind: ClockKind, round_no: int, tau_s: float, finish: FinishClock | None = None, method: MethodClock | None = None) -> Chances

Conditioned on no finish in the first tau_s seconds of round round_no.

p_of

p_of(inst: str) -> float

P(the instrument pays).

space

space(split: bool) -> np.ndarray

The chances on the four (split False: p4 itself) or the six states.

Functions

pay

pay(inst: str, split: bool) -> np.ndarray

The instrument’s payoff per contract on the four (split False) or six states.

splits

splits(instruments: Iterable[str]) -> bool

True when the instruments need the six states (one of them tells a KO from a submission).