What problem does it solve? Correlation matrices alone cannot capture tail dependence, so portfolios of correlated prediction market contracts underestimate the probability of extreme joint outcomes like sweeping or losing every swing state. ## Core Features & Use Cases - Copula Simulation: Implements Gaussian, Student-t, and Clayton copulas in Python with NumPy and SciPy to generate correlated binary outcomes from marginal probabilities. - Tail Dependence Quantification: Compares joint sweep and loss probabilities across copula families, showing how Student-t copulas produce 2-5x higher extreme outcome probabilities than Gaussian. - Vine Copula Guidance: Covers C-vine, D-vine, and R-vine decompositions for portfolios with more than five contracts, plus a copula selection guide by scenario. - Use Case: Model a five-state election portfolio (PA, MI, WI, GA, AZ) with a Student-t copula to correctly price the probability of a full sweep that a Gaussian copula would treat as nearly impossible. ## Quick Start Ask the agent to simulate the joint probability of all five swing states resolving the same way using a Student-t copula with the given marginal probabilities and correlation matrix.