betting_combat.strategies.bayes
bayes — the rounds strategy’s structural fair value (Sam 2026-11-16 / 11-19; no ML): the chance the fight ends in this round, per 30-second block row, as a Bayesian round hazard - the 11-16 structure on the blocks:
logit p = level[round] + (trust[round] + drift_trust[year] + last-round) x + drift_level[year] + last round + division + title + five-rounder + c_t log((time left + 10 s) / 310 s) + the variant's terms
level, trust rounds 1, 2, 3 their own; 4 and 5 lean on round 3's; centred where a plain fit of the round's bell rows puts them (the rows fitted: never others)x the round's starting price (the chance it ends the fight), log-odds - RoundsStrategy.read_rows' (Kalshi's actual where real, our level elsewhere)c_t the round running out: 0 at the bell, falling as the time left goes (centre 1: a constant hazard); its own for rounds 1, 2, 3, the later rounds leaning on round 3's (11-19, the data: round 1 1.10, round 2 0.97, round 3 1.08, rounds 4-5 0.77 +- 0.10)priors set from the data (inround_grain/g47_bayes_priors, 11-19): the level and trust centred on the fitted rows' own bell fits; the year's drift a step of 0.08 in the level (year to year the data moves ~0.1), 0.1 in the trust; the divisions' spread about 0.05 (prior scale 0.15); title / five-rounder / last round near 0VARIANTS 'v1' nothing more: the starting price alone 'v2' + the finish market's price at the block's end (features.price_features): now against the start (log-odds), since the bell, the round's range; a row without a quote cannot be priced. NOT the change since the block before (Kalshi's history is a quote a minute: half its 30-second changes are exactly 0, the simulated ones' 8 %) nor the spread (real 21c median on these rows, simulated 12c): neither looks the same real and simulated (g47) 'v3' + the stats as the live feed showed them: a knockdown this round so far, the gap in significant strikes landed a minute this round, the round before's knockdown and how one-sided the judges' lines had it 'v4' v2 + v3Bayes fit (NUTS; the terms standardised on the rows fitted) / p_ends (the posterior's mean chance)cross_fit_cards purged: each card's rows predicted by a fit on every OTHER card's rows (or whole groups of cards)Classes
Bayes
One fit of a variant (module doc): NUTS, warm + draws (one chain); the terms standardised on the rows fitted.
design
design(rows: pd.DataFrame) -> dict[str, Any]fit
fit(rows: pd.DataFrame) -> BayesOn rows with a label (y) the variant can price.
p_ends
p_ends(rows: pd.DataFrame, keep: int = 200) -> np.ndarrayThe chance the fight ends in this round, per row: the posterior’s mean (blank where the variant cannot price it).
summary
summary() -> dict[str, float]The fit in plain numbers (posterior means): the time term, the trust in the price by round, each extra term.
Functions
cross_fit_cards
cross_fit_cards(rows: pd.DataFrame, variant: str, groups: list[list[str]], warm: int = 200, draws: int = 200, n_jobs: int = 1) -> pd.SeriesPURGED: each group of cards (one card a group: one card held out at a time) has its rows predicted by a fit on every
card outside it. Returns p_ends on rows’ index (blank: a card in no group, a row the variant cannot price).
terms
terms(rows: pd.DataFrame, variant: str) -> pd.DataFrameThe variant’s extra terms (module doc), one row per row of rows; a change / a stat with nothing behind it: 0.
usable
usable(rows: pd.DataFrame, variant: str) -> np.ndarrayThe rows a variant can price: a starting price; with the price terms also a finish-market quote at the block’s end.