Bayesian-Network-Structured Compact Prediction Markets #
This module formalizes Bayesian-network-structured compact prediction markets and their operational completeness for constant-absolute-risk-aversion (CARA) traders from [PennockSami2007, §26.3, p. 658; §26.3.2, pp. 661–662] (based on Pennock & Wellman 2000, 2005).
Mathematical Overview #
Over m binary base events X_0, …, X_{m-1} (state space BNState m := Fin m → Bool, of size
2 ^ m), any complete Arrow–Debreu market must contain at least 2 ^ m securities
(complete_market_card_ge, [PennockSami2007, §26.3, p. 658]).
Given a directed acyclic graph G : BayesNetDAG m in topological order
(∀ j ∈ G.parents k, j < k), a conditional probability table cpt : BNCPT G defines the
factorized joint probability cpt.jointProb ω = ∏ k, Pr(X_k = ω k | pa(X_k) = ω|_{pa(k)}), which
always sums to 1 (BNCPT.sum_jointProb_eq_one) and recovers each table entry upon conditioning
(BNCPT.sum_jointProb_event_eq).
Restricting trading to the BN-structured conditional securities S_{X_k | pa(X_k) = d} uses
∑ k, 2 ^ (G.parents k).card ≤ m * 2 ^ D securities (where D = max_k |pa(X_k)|), and the
moralized family-clique securities S_{X_k = b, pa(X_k) = d} use 2 * ∑ k, 2 ^ (G.parents k).card
securities (card_bnCondSecurity, card_bnFamilySecurity, [PennockSami2007, §26.3.2, p. 662]).
For any finite nonempty collection of CARA traders (u_i(w) = -exp(-w / τ_i) with risk tolerances
τ_i > 0), the complete-market Arrow–Debreu equilibrium has state prices equal to the normalized
weighted geometric mean (caraEqStatePrice), achieves exact budget balance and market clearing, is
strictly optimal for every trader (proved directly via 1 + x ≤ exp x), and is Pareto optimal
(caraEqAllocation_paretoOptimal). When all traders' strictly positive beliefs factorize over G:
- Every trader's Pareto-optimal complete-market equilibrium allocation lies in the linear span of
the compact family-clique (Markov-network) securities (
cara_bnFamily_operationallyComplete), making theO(m · 2 ^ max |pa|)Markov-structured market operationally complete [PennockSami2007, §26.3.2, p. 662]. - Whenever
Gis moral (∀ k, ∀ i j ∈ pa(k), i < j → i ∈ pa(j)— in particular for every tree, forest, or Markov chain with|pa(k)| ≤ 1), risk-free cash plus the∑ k, 2 ^ |pa(k)|pure conditional securitiesS_{X_k | pa(X_k) = d}already span all family indicators (bnFamilySpan_le_bnCondSpan_of_isMoral), so the BN-structured conditional market itself is operationally complete (cara_bnCond_operationallyComplete_of_isMoral). - Sharpness (collider counterexample): on the non-moral 3-node collider
X_0 → X_2 ← X_1, neither the parent interaction1_{X_0 ∧ X_1}nor a 3-trader CARA Pareto-optimal equilibrium allocation lies in the span of{1} ∪ {S_{X_k | pa(X_k) = d}}at any price vector (collider_parentInteraction_notMem_bnCondSpan,collider_caraEq_notMem_bnCondSpan), showing why Markov (moralized) independencies are essential.
Main definitions #
Cslib.GameTheory.PredictionMarket.BayesNetDAG,Cslib.GameTheory.PredictionMarket.BNState,Cslib.GameTheory.PredictionMarket.ParentConfig,Cslib.GameTheory.PredictionMarket.BNCPT,Cslib.GameTheory.PredictionMarket.BNCPT.jointProb: Bayesian network DAGs and factorized joint distributions [PennockSami2007, §26.3.2, p. 662].Cslib.GameTheory.PredictionMarket.BNCondSecurity,Cslib.GameTheory.PredictionMarket.BNFamilySecurity,Cslib.GameTheory.PredictionMarket.bnCondSecurityPayoff,Cslib.GameTheory.PredictionMarket.bnFamilyIndicator,Cslib.GameTheory.PredictionMarket.bnCondSpan,Cslib.GameTheory.PredictionMarket.bnFamilySpan: compact BN conditional and family-clique securities and their payoff spans.Cslib.GameTheory.PredictionMarket.caraUtility,Cslib.GameTheory.PredictionMarket.caraExpectedUtility,Cslib.GameTheory.PredictionMarket.IsCARAParetoOptimal,Cslib.GameTheory.PredictionMarket.caraEqStatePrice,Cslib.GameTheory.PredictionMarket.caraEqAllocation: CARA preferences, Pareto optimality, and complete-market Arrow–Debreu equilibrium.
Main results #
Cslib.GameTheory.PredictionMarket.complete_market_card_ge: any complete securities market overmbinary base events requires at least2 ^ msecurities [PennockSami2007, §26.3, p. 658].Cslib.GameTheory.PredictionMarket.BNCPT.sum_jointProb_eq_one,Cslib.GameTheory.PredictionMarket.BNCPT.sum_jointProb_event_eq: normalization and conditional probability consistency of Bayesian-network factorizations [PennockSami2007, §26.3.2, p. 662].Cslib.GameTheory.PredictionMarket.card_bnCondSecurity,Cslib.GameTheory.PredictionMarket.card_bnCondSecurity_le,Cslib.GameTheory.PredictionMarket.card_bnFamilySecurity: exact compact security counts andO(m · 2 ^ max |pa|)compression bound [PennockSami2007, §26.3.2, p. 662].Cslib.GameTheory.PredictionMarket.caraEqAllocation_budget,Cslib.GameTheory.PredictionMarket.caraEqAllocation_clearing,Cslib.GameTheory.PredictionMarket.caraEqAllocation_optimal,Cslib.GameTheory.PredictionMarket.caraEqAllocation_paretoOptimal: CARA Arrow–Debreu equilibrium optimality and Pareto optimality.Cslib.GameTheory.PredictionMarket.cara_bnFamily_operationallyComplete,Cslib.GameTheory.PredictionMarket.bnFamilySpan_le_bnCondSpan_of_isMoral,Cslib.GameTheory.PredictionMarket.cara_bnCond_operationallyComplete_of_isMoral: operational completeness of Markov/family-clique markets and moral-DAG conditional markets for CARA traders [PennockSami2007, §26.3.2, p. 662].Cslib.GameTheory.PredictionMarket.collider_parentInteraction_notMem_bnCondSpan,Cslib.GameTheory.PredictionMarket.collider_caraEq_notMem_bnCondSpan: sharpness counterexample on the 3-node colliderX_0 → X_2 ← X_1.
References #
State space {0, 1}^m generated by m binary base events [PennockSami2007, §26.3, p. 658].
Complete market size lower bound [PennockSami2007, §26.3, p. 658]: any finite family of
securities on BNState m whose payoff vectors span BNState m → ℝ has cardinality at least
2 ^ m.
A Bayesian network directed acyclic graph on m binary base events in topological order:
every parent of k has strictly smaller index j < k [PennockSami2007, §26.3.2, p. 662].
Parent set
pa(X_k)of base eventk.Topological acyclicity: every parent of
khas index< k.
A Bayesian network DAG is moral if every two distinct parents of any node are joined by a
directed edge (automatically satisfied by trees, forests, and Markov chains with |pa(k)| ≤ 1).
Every DAG with in-degree at most 1 (tree, forest, or Markov chain) is moral.
Assignment of truth values to the parent events pa(X_k) of node k.
Restriction of a full state ω : BNState m to the parents of node k.
Conditional probability table (CPT) on a Bayesian network DAG G: prob k d is the
conditional probability Pr(X_k = true | pa(X_k) = d) [PennockSami2007, §26.3.2, p. 662].
Conditional probability
Pr(X_k = true | pa(X_k) = d).
A CPT is valid if every conditional probability lies in [0, 1].
A CPT is strictly positive if every conditional probability lies strictly in (0, 1).
Single-node conditional factor Pr(X_k = ω k | pa(X_k) = ω|_{pa(k)}).
Factorized joint probability Pr(ω) = ∏ k, Pr(X_k = ω k | pa(X_k) = ω|_{pa(k)})
[PennockSami2007, §26.3.2, p. 662].
Normalization of Bayesian-network joint distributions [PennockSami2007, §26.3.2, p. 662]:
the factorized product ∏ k, Pr(X_k | pa(X_k)) sums to 1 over all 2 ^ m states.
Every valid CPT defines a probability distribution in probSimplex (BNState m).
Every strictly positive CPT defines a strictly positive distribution in
openProbSimplex (BNState m).
CPT conditional-probability consistency [PennockSami2007, §26.3.2, p. 662]: for every node
k and parent configuration d, the joint probability of (X_k = true ∧ pa(X_k) = d) equals
cpt.prob k d times the marginal probability of (pa(X_k) = d).
Compact BN-Structured Conditional and Family-Clique Securities (§26.3.2, p. 662) #
Index type of BN-structured conditional securities S_{X_k | pa(X_k) = d}
[PennockSami2007, §26.3.2, p. 662].
Index type of moralized family-clique indicator securities S_{X_k = b, pa(X_k) = d}
[PennockSami2007, §26.3.2, p. 662].
Exact number of BN-structured conditional securities: ∑ k, 2 ^ |pa(X_k)|
[PennockSami2007, §26.3.2, p. 662].
Exponential compression bound for BN-structured markets [PennockSami2007, §26.3.2, p. 662]:
if every node has at most D parents, the BN-structured market contains at most m * 2 ^ D
conditional securities.
Exact number of moralized family-clique securities: 2 * ∑ k, 2 ^ |pa(X_k)| ≤ 2 * m * 2 ^ D
[PennockSami2007, §26.3.2, p. 662].
Payoff vector of conditional security S_{X_k | pa(X_k) = d} traded at unit price price c:
pays 1 - price c when pa(X_k) = d ∧ X_k = true, -price c when pa(X_k) = d ∧ X_k = false,
and 0 (cancelled and refunded) when pa(X_k) ≠ d [PennockSami2007, §26.3.1–§26.3.2].
Payoff indicator vector of family-clique security S_{X_k = b, pa(X_k) = d}: pays $1 iff
pa(X_k) = d and X_k = b, and $0 otherwise.
Payoff subspace spanned by risk-free cash {1} and the BN-structured conditional securities
{S_{X_k | pa(X_k) = d}} at price vector price.
Payoff subspace spanned by risk-free cash {1} and the moralized family-clique securities
{S_{X_k = b, pa(X_k) = d}} (for m > 0, {1} is already spanned by the family indicators).
For 0 < m, constant risk-free cash already lies in the span of bnFamilyIndicator G alone.
For any moral Bayesian network DAG G (including all trees, forests, and Markov chains),
every family-clique indicator lies in the linear span of risk-free cash plus the pure conditional
securities S_{X_k | pa(X_k) = d} at any price vector price.
CARA Arrow–Debreu Equilibrium and Operational Completeness (§26.3.2, p. 662) #
Negative exponential (Constant Absolute Risk Aversion, CARA) utility u_τ(w) = -exp(-w / τ)
with risk tolerance τ > 0 [PennockSami2007, §26.3.2, p. 662].
Pareto optimality of a feasible wealth allocation w : ι → Ω → ℝ with aggregate endowment
∑ i, w₀ i across states [PennockSami2007, §26.3.2, p. 662].
Complete-market CARA Arrow–Debreu equilibrium state prices: the normalized
risk-tolerance-weighted geometric mean π(ω) ∝ ∏ i, P_i(ω)^{τ_i / ∑_j τ_j}.
Market clearing for CARA equilibrium allocations: aggregate wealth across all traders
equals aggregate initial wealth in every state ω.
Strict individual optimality of CARA equilibrium allocations: at state prices π, every
budget-feasible wealth profile w yields expected CARA utility at most that of
caraEqAllocation, with strict inequality whenever w ≠ caraEqAllocation P τ w₀ i.
First Welfare Theorem for CARA prediction markets: the complete-market CARA Arrow–Debreu equilibrium allocation is Pareto optimal [PennockSami2007, §26.3.2, p. 662].
Operational Completeness of BN-Structured Markets (§26.3.2, p. 662) #
The log-probability of any strictly positive BN-factorized distribution lies in
bnFamilySpan G.
Operational completeness of Markov / family-clique BN markets for CARA traders
[PennockSami2007, §26.3.2, p. 662]: if all CARA traders' strictly positive beliefs factorize over
the same Bayesian network DAG G, then every trader's Pareto-optimal complete-market equilibrium
allocation lies in the compact O(m · 2 ^ max |pa|) family-clique span bnFamilySpan G (and
is Pareto optimal).
Operational completeness of pure conditional BN markets on moral DAGs
[PennockSami2007, §26.3.2, p. 662]: whenever G is moral (including all trees, forests, and
Markov chains), every CARA trader's Pareto-optimal complete-market equilibrium allocation lies in
the span of risk-free cash plus the ∑ k, 2 ^ |pa(k)| conditional securities
S_{X_k | pa(X_k) = d} at any price vector price.
Sharpness: 3-Node Collider Counterexample #
The 3-node collider DAG X_0 → X_2 ← X_1: pa(0) = ∅, pa(1) = ∅, pa(2) = {0, 1}.
Sharpness of moralization (indicator form): on the non-moral collider X_0 → X_2 ← X_1,
the parent-interaction indicator 1_{X_0 ∧ X_1} does not lie in bnCondSpan colliderDAG price
for any price vector price.
Sharpness of moralization (3-trader CARA equilibrium form): on the collider
X_0 → X_2 ← X_1, there exist 3 strictly positive BN CPTs (with unit risk tolerances τ = 1)
whose Pareto-optimal CARA Arrow–Debreu equilibrium allocation for trader 1 is not spanned by
risk-free cash plus the 6 conditional securities S_{X_k | pa(X_k) = d} at any price vector.