# IMD Picks — Combined Probabilities for 1–14 Mixed-Sport Events **Artifact id:** `protocol-sections/joint-probability` **Status:** implementation-ready specification for later integration (V15 is separate). No production code, configuration, payments or repository files are changed by this section. **Scope:** given 1–14 independently drafted legs across any of the 20 covered sports, produce (a) the probability that every leg settles as a win, (b) the probability that no leg settles as a loss, (c) the expected return, (d) a defensible independence verdict or an explicit dependence model, (e) valid bounds when dependence is unestimated, and (f) a value verdict only against an observed matching combined quote. **Research and prediction engine:** IMD Swarm only. Free sources, existing allowances, current customer price. No second AI, no paid API. **Marking.** `[PROPOSED]` = policy this section proposes for V15 adoption, not an observed fact. `[SYNTHETIC]` = numbers built to exercise the arithmetic, not results from real fixtures. `[UNKNOWN]` = not established, reason given. External claims cite a bracketed source resolved in §17. --- ## 1. Leg identity and settlement A **leg** is a tuple, and two legs are the same leg only if every field matches: ``` leg = (sport, competition_id, event_id, market_id, selection_id, line_value, period_scope, start_time_utc, settlement_rule_id) ``` `settlement_rule_id` pins the operator's rule text (extra time, retirement, dead heat, void conditions). Two legs whose fields differ in any position are **distinct legs**, even if they look alike to a customer. **Canonical leg key** = SHA-256 over the normalized tuple (`line_value` as a fixed-precision decimal string, `start_time_utc` to the minute). Deduplication and the cross-bookmaker comparison in §10 key on it. **Settlement states.** Every leg resolves to exactly one of: | State | Symbol | Effect on the slip | |---|---|---| | Win | `W` | leg contributes its full odds | | Loss | `L` | whole slip loses | | Push / void / no-action | `V` | leg removed, odds become 1.00 | | Half-win / half-loss (Asian lines) | `H+`/`H−` | odds adjusted by the operator's rule | | Pending / postponed / abandoned | `P` | outcome unknown; rule-dependent | | Unsettleable (missing result, data gap) | `U` | treated as unknown, never as win | `P` and `U` are neither probability zero nor one; a leg that can only be priced by assuming settlement is withheld (§9). ## 2. The two quantities that must never be conflated Let legs `i = 1..n`, `1 ≤ n ≤ 14`, with marginal win probability `p_i`, push probability `v_i`, loss probability `ℓ_i = 1 − p_i − v_i`, decimal odds `o_i > 1`, and event indicators `A_i = {leg i wins}`. - **Chance all legs win** (the headline probability): `q_all = P(A_1 ∧ A_2 ∧ … ∧ A_n)` - **Chance no leg loses** (drives settlement when voids exist): `q_noL = P(¬L_1 ∧ … ∧ ¬L_n)` - **Expected return per unit stake** (payout, not probability): `E[R] = Σ_{S ⊆ {1..n}, S contains no loss} P(pattern S) · (Π_{i∉S} o_i) − 1` For a slip with no void possibility, `q_all = q_noL = Π p_i` only under independence, and `E[R] = q_all · Π o_i − 1`. **Payout is a probability multiplied by a price; the price is not the probability**, so the report always states `q_all` and `E[R]` separately. Breakeven probability for an observed combined decimal quote `O_c`: ``` q_BE(O_c) = 1 / O_c value iff q_all > 1/O_c, before any cost/stake limits ``` ## 3. Leg relations and their algebra Before any multiplication, the leg set passes through a **relation closure**. Each relation has one legal treatment; none may be silently ignored. | Relation | Test | Treatment | |---|---|---| | **Duplicate** | identical canonical key | collapse to one leg, keep the best price; differing `settlement_rule_id` ⇒ `E_RULE_CONFLICT` | | **Duplicate-equivalent** | same event, same effective outcome (`ML home` vs `AH −0.5`) | collapse; prices are not additive and neither is counted twice | | **Mutually exclusive** | `P(A_i ∧ A_j) = 0` (both sides of one market; over and under the same line) | `q_all = 0`; return `VOID_EXCLUSION` with the offending pair; never price | | **Nested** | `A_j ⇒ A_i` ("wins by 2+" implies "wins") | keep only the stronger leg; the weaker adds nothing, so an inflated product for both is an unsupported combination | | **Overlapping (non-nested)** | e.g. `over 2.5` with `under 3.5` | not exclusive; joint probability must be computed from the score distribution, not multiplied | | **Complement-pair** | `A_j = ¬A_i` in the same scope | treat as mutually exclusive for `q_all` | Rule: `q_all` is computed on the **irreducible** leg set after closure, and the report states both the drafted count and the irreducible count. ## 4. Dependence: where it comes from Dependence enters through **shared entities**, **shared schedules**, and **shared latent factors**. The engine builds a shared-entity graph over the irreducible legs by joining normalized identifiers: | Class | Keys | Example | |---|---|---| | Same event | `event_id` | two markets on one match | | Participant | `participant_id` | a player's goals prop plus his team's win | | Official | `official_id` | one referee on two matches affecting cards | | Venue | `venue_id`, geo cell | two events in one stadium or city | | Competition path | `competition_id` + bracket node | legs meeting in the same semifinal | | Weather cell | rounded `lat/lon`, forecast issue time | one storm front | | Travel leg | `airport_id` + departure window | one airline disruption, two squads | | Schedule cluster | start times within ±3 h, same region `[PROPOSED]` | rotation after a shared midweek round | Any pair sharing a non-empty entity set is a **dependent pair** and may not be multiplied. This covers within-sport dependence (same match, same player, same team's two markets, same tournament path) and cross-sport dependence (same city, same weather system, same travel corridor, same day's rotation wave). Same-event dependence is documented, not hypothetical: within-game outcomes are correlated [1], and operators restrict same-game combinations precisely because of it [2]. ## 5. The independence gate Multiplication is permitted **only** when all six conditions hold. The gate is **fail-closed**: an untestable condition is a failed condition. | ID | Condition | Operational test | |---|---|---| | G0 | No relation from §3 | relation closure returns a set of independent candidates | | G1 | No shared entity of §4 between any pair of legs | entity graph has no edge | | G2 | No logical implication or exclusion | solver check over market semantics | | G3 | Sample available | ≥ 200 jointly observed historical slips or paired outcomes `[PROPOSED]` | | G4 | Dependence small and bounded | `|ρ̂| ≤ 0.05` **and** upper 95% CI of `|ρ|` ≤ 0.15 on log-odds scale; equivalently `|φ̂|` upper CI ≤ 0.10 for binary legs `[PROPOSED]` | | G5 | No shared settlement rule coupling | e.g. a weather-rule that voids both legs together | `ρ̂` is estimated as the latent correlation of a Gaussian copula fitted to the paired outcomes with margins fixed at the calibrated `p_i`; for binary legs, `φ = (p11 − p1p2) / √(p1(1−p1)p2(1−p2))`. If the gate passes, `q_all = Π p_i` and the report records `dependence: independent (gate G0–G5, n_obs=…, ρ_upper=…)`. If the gate fails and a validated joint or conditional model exists (§6), use it. If neither, go to bounds (§8). **Default posture is not independence.** ## 6. Alternative joint models Three tiers, chosen by what the evidence supports. **Tier 1 — exact joint from event structure (same-event legs).** For legs over one match, compute `q_all` directly from the score/game-state distribution `P(score)` already used to produce the marginals: `q_all = Σ_{score} P(score) · 1[all legs win under score]`. Bivariate Poisson or an empirical score matrix is acceptable; the marginals must reproduce the leg probabilities within tolerance, otherwise the model is rejected. This is the only tier that is exact by construction. **Tier 2 — conditional chain.** Order legs so the strongest dependencies come first (greedy by `|ρ̂|`), then ``` q_all = p_{π(1)} · Π_{k=2..n} P(A_{π(k)} | A_{π(1)}, …, A_{π(k−1)}) ``` Conditionals are estimated from as-of data with a regularized logistic model (or empirical frequencies where cells are dense). A pair with known conditionals `P(B|A)` and `P(B|¬A)` reduces to `q = p_A·P(B|A)`, which is exact for that pair. **Tier 3 — copula over latent factors.** For sets too large or sparse for a chain, fit a Gaussian copula on standardized residuals with a shrunk correlation matrix (Ledoit–Wolf, or block-diagonal by entity cluster) and simulate; copulas are the documented way to model non-independent box-score outcomes against an independence benchmark [3], and Fréchet classes cover marginals with partial dependence information [4]. **As-of contract (no leakage).** Every input carries `info_time`. The model may use only records with `info_time ≤ T_eval`, where `T_eval` is the decision timestamp. Lineups, injury reports, weather, and odds each carry their own timestamp; a confirmed lineup published after `T_eval` is a leak even if the fixture has not started. The copula reference implementation fits each player "using only their previous games" [3], which is the same rule stated positively. **Uncertainty propagation.** Draw `p_i ~ Beta(α_i, β_i)` from the calibrated marginal posterior, `ρ ~ N(z_ρ, se_ρ²)` on the Fisher-z scale, then run `M ≥ 10 000` joint draws to obtain `q_05, q_50, q_95` and `P(q_all > 1/O_c)`. Report `q_50` as the point estimate with the interval; never report a point estimate without its interval or its bound regime. ## 7. Validation (historical, as-of, no hindsight) | Check | Procedure | Pass rule `[PROPOSED]` | |---|---|---| | V1 discriminating test | likelihood-ratio test of joint model vs independence product on held-out slips | independence rejected at p<0.01 ⇒ G4 may not be asserted for that pair | | V2 joint calibration | bucket settled slips by `n` (1…14), compare predicted `q_50` to observed hit rate; binomial CI | no bucket may exceed ±0.05 absolute deviation with n ≥ 200; otherwise recalibrate (isotonic on `q`) | | V3 walk-forward | fit window ends at `T0`; evaluate `T0..T0+Δ`; shuffle-free, expanding window | no input timestamped after `T0`; audit log lists max `info_time` per slip | | V4 scoring | Brier and log loss for `q_all`, against the independence baseline and the market-implied baseline | model must beat independence baseline out of sample to be allowed to override it | | V5 cost realism | replay with observed matching combined quotes, not constructed prices | reported ROI uses quoted prices only | | V6 error learning | each settled slip stores predicted `q`, outcome, leg-level error attribution | recalibrate when realised vs predicted drifts past V2; never relabel past predictions | Selection weighs calibration, not only accuracy, since value depends on pricing correctness [5]. ## 8. Bounds, and when to withhold For marginals `p_1..p_n` with unknown dependence, the Fréchet–Hoeffding bounds apply: ``` q_lower = max(0, Σ p_i − (n − 1)) q_upper = min_i p_i ``` Sharper bounds require partial dependence information, and this is an active, computable problem even when no pair is jointly observed [6]; distributions constrained only by marginals and some joint information form Fréchet classes [4]. **Decision rules `[PROPOSED]`:** 1. **Certified value:** `q_lower > 1/O_c` ⇒ value may be stated even without a point estimate (rare; effectively only `n = 1` or near-certain nested sets). 2. **Certified no value:** `q_upper < 1/O_c` ⇒ `NO_BET` with proof. 3. **Indeterminate:** `q_lower ≤ 1/O_c ≤ q_upper` ⇒ withhold the point estimate, publish the interval, verdict `NO_BET` unless a validated gate or Tier 1/2 model (§5–6) gives `q_05 > 1/O_c`. 4. **Structural no-bet:** any of `E_RULE_CONFLICT`, `VOID_EXCLUSION`, missing marginal, unverified settlement rule, expired quote, `n=0`, `n>15`. For a genuine parlay `Σ p_i ≤ n − 1` almost always, so `q_lower = 0` from `n ≥ 3` and rule 1 is unavailable: bounds mainly **certify no-bet**; they never license a point estimate. ## 9. Void, push, postponement, missing marginals, unsupported combinations - **Push / void (V):** the leg leaves the slip and the operator reduces the price. `q_all` counts only `W`; `q_noL` includes the case where that leg voided; `E[R]` sums over the void pattern with reduced odds. `[SYNTHETIC]` example in §12.4: `q_all = 0.330` but `E[R] = −6.4%`, versus `−10.9%` computed as if no void existed. - **Postponement / abandonment:** outcome in `P`. The customer's return depends on the operator's abandoned-event rule (void leg vs void slip). Unless the rule is read from the operator's own rulebook and stored as `settlement_rule_id`, the slip is `NO_BET` (`E_UNVERIFIED_RULE`). Never assume "postponed = void leg" or "postponed = loss". - **Missing marginal:** any leg without a calibrated `p_i` for the exact `selection_id`+`line_value` kills the slip (`E_MISSING_MARGINAL`). No imputation from a neighbouring line, no borrowing a price from another market. Substituting an implied probability from a price the customer cannot take is also forbidden. - **Unsupported combination:** if the operator does not accept the leg set (same-game restriction, cross-market restriction, or a price that contradicts the leg set), the slip is `NO_BET` (`E_UNSUPPORTED`). A combined price that exceeds the product of the legs' own prices is a red flag for a mispriced or non-accepted combination, not an edge; report it, do not stake on it. - **Half-win/half-loss lines:** operator-specific odds adjustment; without the rule text, `E_UNVERIFIED_RULE`. ## 10. Value only against an observed matching quote A value verdict requires an actual combined price `O_c` observed at timestamp `t_q` that is **the same combination**: 1. identical irreducible leg set (all eight tuple fields); 2. same operator and bet type (acca, same-game parlay and "bet builder" are distinct products); 3. captured after every input's `info_time`, inside the live-price window `[PROPOSED]` 180 s; 4. not derived by multiplying leg prices — a constructed price is labelled "constructed", never `O_c`. Comparison columns: `operator, product, leg hashes, O_c, t_q, q_50, q_05, q_95, q_BE, EV_50, verdict`. Stake, BET99 and bet365 are compared only where each returns a matching quote for the identical combination; otherwise the row is `null` with reason `no matching quote observed`. `[UNKNOWN]` Operator rulebooks were not retrievable from this environment (403/JS-only), so no rule-text fact about Stake, BET99 or bet365 is asserted; runtime must read and store it per leg. ## 11. Pseudocode ``` JOINT(legs, asof=T, quote=(B,Oc,tq)|null): if n<1 or n>14: return ERR E_LEG_COUNT(n) R = relation_closure(legs) # §3 if R.exclusive or R.rule_conflict: return NO_BET(R.code, pair=R.pair) L = R.irreducible if any(missing_marginal(l, asof)): return NO_BET(E_MISSING_MARGINAL) G = gate(L, asof) # §5 if G.shared_event: q = tier1_exact(L.index) # §6 T1 elif G.pass_all: q = prod(p); tier = INDEPENDENT elif G.conditional_ok: q = tier2_chain(L, asof) # §6 T2 else: return BOUNDS_ONLY(frechet(L)) # §8, verdict NO_BET unless certifiable [q05,q50,q95] = propagate(q, L, M=10000) # §6 uncertainty E = expected_return(L, q) # §2, incl. void patterns if quote == null: return REPORT(q50, bounds, E, verdict=NO_PRICE) if not matching(quote, R): return REPORT(..., verdict=E_UNSUPPORTED) if q05 > 1/Oc: v = VALUE elif q95 < 1/Oc: v = NO_VALUE else: v = INDETERMINATE -> NO_BET return REPORT(q50,q05,q95,EV50=q50*Oc-1,v, evidence=[G.rho,G.n_obs,tier], timestamps=[asof,tq]) ``` ## 12. Worked examples `[SYNTHETIC]` ### 12.1 Independent legs (n = 3) `p = (0.62, 0.55, 0.48)`, `o = (1.70, 1.90, 2.15)`, gate passes (no shared entity, `n_obs = 1 240`, `ρ_upper = 0.08`). ``` q_all = 0.62 × 0.55 × 0.48 = 0.163680 Πo = 1.70 × 1.90 × 2.15 = 6.9445 q_BE = 0.144 E[R] = 0.163680 × 6.9445 − 1 = +13.67% ``` Value on the constructed price. If the only observed combined quote is `O_c = 6.10`, `q_BE = 0.1639 > 0.16368` and the verdict flips to `NO_VALUE`: the edge was an artefact of prices that cannot be combined. ### 12.2 Dependent pair with known conditionals (n = 2) Leg A: home team wins, `p_A = 0.600`. Leg B: over 2.5 goals, with `P(B|A) = 0.720`, `P(B|¬A) = 0.400`. ``` p_B = 0.600×0.720 + 0.400×0.400 = 0.592 q_dep = p_A · P(B|A) = 0.600 × 0.720 = 0.432000 (exact for the pair) q_ind = 0.600 × 0.592 = 0.355200 (wrong: independence) rel. error of q_ind = (0.432 − 0.3552)/0.3552 = +21.62% ``` At a matching quote `O_c = 2.60`, `q_BE = 0.384615`: `q_dep` gives `E[R] = +12.32%` (value), `q_ind` gives `−7.65%` (no-bet). The gate changes the customer-facing verdict, not a decimal. ### 12.3 The same pair with unidentified dependence (n = 2) Only `p_A = 0.600`, `p_B = 0.592` are known; no joint history. ``` q_lower = max(0, 0.600+0.592−1) = 0.192 q_upper = min(0.600, 0.592) = 0.592 ``` At `O_c = 2.60`: `E[R] ∈ [−50.08%, +53.92%]`. `q_BE = 0.3846` lies inside the interval ⇒ **indeterminate**: withhold the point estimate, publish the interval, verdict `NO_BET`. If a *sign* of dependence is defensibly known (positive quadrant dependence), then `q ≥ p_A p_B = 0.3552`, so `q_lower = 0.3552`, `E[R] ≤ −7.65%` ⇒ **certified no-bet**. Same inputs, stronger knowledge, opposite conclusion — hence the requirement to state which tier of knowledge was used. ### 12.4 Void leg (settlement ≠ payout) Leg 1: `p_W = 0.55`, `p_V = 0.05`, `p_L = 0.40`, `o_1 = 1.80`. Leg 2: `p = 0.60`, `o_2 = 1.50`, independent. ``` q_all = 0.55 × 0.60 = 0.330 q_noL = (0.55+0.05) × 0.60 = 0.360 E[R] = 0.330 × (1.80×1.50) + (0.05×0.60) × 1.50 = 0.891 + 0.045 = 0.936 → −6.40% naive "no void" view: 0.330 × 2.70 − 1 = −10.90% ``` Reporting `q_all` alone misstates the customer's chances; payout alone hides that 0.03 of the 0.36 no-loss mass is a void leg at reduced odds. ## 13. Invariants | Case | Required behaviour | Check | |---|---|---| | `n = 1` | `q_all = p_1`, `q_lower = q_upper = p_1`, `O_c` is the single price, no joint model is invoked, no combined quote needed beyond that price | equality to `p_1` at float tolerance 1e-12 | | `n = 14` (maximum) | accepted; `q_all ≤ min p_i`; with independent legs `q_all = Π p_i`; `q_lower = max(0, Σp_i − 13)`; monotonicity: adding any leg with `p<1` strictly decreases `q_all` | `q_all(n) ≤ q_all(n−1)` for every prefix | | `n = 15` (invalid) | rejected before any pricing, bounds, quote matching or report generation; `E_LEG_COUNT`, `n_received = 15`, no partial result, no silent truncation to 14 | error object only, `q_all = null` | | any `n` | `0 ≤ q_lower ≤ q_all ≤ q_upper ≤ 1`; `q_all = 0` iff exclusive pair present; duplicates never increase `q_all` | property tests over random leg sets | ## 14. Report schema fragment ```json {"joint":{"n_drafted":4,"n_irreducible":4, "legs":[{"key":"","sport":"football","p":0.58,"odds":1.74, "rule_id":"...","info_time":"2026-11-29T12:00:00Z"}], "relations":[{"type":"none"}], "gate":{"status":"pass","rho_hat":0.03,"rho_upper_95":0.08,"n_obs":1240}, "model_tier":"independent","q_all":0.135317,"q_no_loss":0.135317, "q_05":0.1302,"q_95":0.1522,"q_05_source":"beta-mc","expected_return":0.0622, "quote":{"operator":"","product":"acca","O_c":7.85, "t_q":"2026-11-29T12:03:10Z","matching":true}, "verdict":"VALUE","verdict_reason":"q05 > 1/Oc","unknowns":[]}} ``` Every field with no evidence is `null` plus an `unknowns[]` entry naming the missing input and why. ## 15. Acceptance case **Input (synthetic):** four mixed-sport legs, all passing G0–G5, no shared entity. | # | Sport | Selection | `p` | `o` | |---|---|---|---|---| | 1 | Football | Over 2.5 goals | 0.58 | 1.74 | | 2 | Tennis | Player A to win | 0.71 | 1.42 | | 3 | Basketball | Team B −4.5 | 0.53 | 1.95 | | 4 | Cricket | Team C to win | 0.62 | 1.66 | **Expected results:** ``` q_all = 0.58×0.71×0.53×0.62 = 0.135317 Πo = 7.998 constructed EV = +8.23% observed combined quote O_c = 7.85 at t_q (matching) → EV = +6.22% q_BE = 0.127389 q_upper = min p = 0.53 q_lower = max(0, 2.44 − 3) = 0 verdict = VALUE only if q_05 > 0.127389, else INDETERMINATE→NO_BET ``` **Variant tests (same legs):** | Variant | Expected | |---|---| | Leg 1 changed to "over 3.5" while leg 4 unchanged | recompute `p_1`; no relation; result changes only through `p_1` | | Leg 3 and leg 4 same city, same storm cell | gate G1 fails; Tier 3 or bounds; `q_lower` from Fréchet, no independence claim | | Leg 3 duplicated | collapse to one; `n_irreducible = 3`; `q_all = 0.58×0.71×0.62 = 0.255316`; must not silently price 4 legs | | Leg 4 replaced by "Team C loses" (same match) | exclusive pair; `q_all = 0`; `VOID_EXCLUSION` | | 15th leg appended | `E_LEG_COUNT`, no numbers emitted | | quote withdrawn before the decision time | no value verdict; `NO_PRICE` | | Leg 2's starter withdrawn after `t_q` but before start | slip flagged `STALE_INPUT`; value verdict retracted, `q_05` recomputed on the new marginal | ## 16. Limitations 1. **No operator rule text captured.** bet365, Stake and BET99 rules pages returned 403 or required JS in this environment `[UNKNOWN]`; this section specifies how rules must be stored but supplies no operator-specific settlement facts. Integration must ingest each operator's rulebook and hash it into `settlement_rule_id`. 2. **Copula choice is an assumption.** Gaussian copulas impose tail independence; for legs that fail together in tail events (injury cascade, weather) a t-copula or empirical joint is safer. Either is permitted; Gaussian adequacy is not claimed. 3. **Gate thresholds (G3, G4, quote window, tolerance values) are proposed defaults**, not empirically tuned here. They must be recalibrated on realised joint slips (V2). 4. **Cross-sport dependence is hardest.** Shared travel/weather clusters are detectable but their effect on outcome probabilities is small and rarely estimable per slip; the bound regime and `NO_BET` default are deliberate, not incidental. 5. **Bounds are weak at large `n`.** For `n ≥ 3` the Fréchet lower bound is 0 in practice, so "bounds-only" is nearly always `NO_BET`: conservative by design, and it costs genuine value. 6. **Arithmetic examples are synthetic**, exercising formulas rather than evidence about any real fixture or price. 7. **Swarm budget:** every step is arithmetic over existing per-leg output — no extra research calls or customer fees — though joint history may not exist yet. ## 17. Sources 1. Wizard of Odds, *Same-Game Parlays: The Mathematics of Correlation* — within-game outcomes are not independent; marginals cannot simply be multiplied. 2. BoydsBets, *Correlated Parlays Explained* — operators bar same-game combinations because the legs are correlated. 3. arXiv:2611.10152 — Gaussian copula joint model fitted on prior games only, benchmarked against the independence product. 4. arXiv:1709.00641 — Fréchet classes under marginal and dependence uncertainty. 5. arXiv:2303.06021 — model selection by calibration rather than accuracy for betting models. 6. arXiv:2611.03075 — computable bounds when no pair of outcomes is jointly observed. URLs and exact passages: `sources.json`. Accessed 2026-11-29.