Hedge Calculation Method (Daily Prediction Markets)
A hedge discovery framework that converts prediction prices to log-odds returns, ranks inverse correlations, and scores the most stable hedging partners. This model is designed to surface resilient hedges with measurable statistical confidence, and it is already showing promise in live research.

Overview
Objective: Treat each market as a time series of daily probabilities and find markets that move oppositely. These inverse relationships become hedge candidates with measurable risk reduction.
1. Convert daily probabilities into returns
Prediction prices are probabilities . We transform them to a log-odds scale and take daily changes.
Clamp
Clamp: with
- This step assures that logit is always finite by setting a minimum and maximum value
Log-odds
Return series
Why it matters: This logit return treats moves near 0 or 1 symmetrically and is better behaved than raw price differences.
2. Compute relationship strength
For two markets and , align overlapping days and compute Pearson correlation on the return series.
- : markets move together.
- : markets move opposite (hedge potential).
Stability check: We also compute rolling correlations (30/90/365 days) to test how stable the relationship is over time.
3. Minimum-variance hedge ratio (beta)
Definition: If we hedge market using market , the optimal hedge ratio is:
Interpretation: If , hedge 1 unit of with 0.7 units of in the opposite direction. More negative means stronger hedge scaling.
4. Linear hedge quality (R²)
Signal strength: In a one-factor regression with intercept, the explanatory power is:
5. Expected variance reduction
Residual variance: The theoretical residual variance after hedging is:
We store: hedge_variance_ratio = 1 - \rho^2. Lower is better.
6. Statistical confidence (p-value)
t-test: We compute a correlation p-value using a t-test:
Edges with high p_value are filtered out.
7. Hedge score (ranking)
Each hedge candidate gets a score combining strength, stability, and liquidity:
Where: is the standard deviation of rolling 30-day correlations.
Weighting:
- 0.4 on |corr_90d|
- 0.4 on |corr_30d|
- -0.1 on corr volatility
- 0.1 on liquidity score
Higher score = better hedge candidate.
Output per hedge edge
For each recommended hedge edge we store:
- corr (relationship strength)
- beta (hedge ratio)
vol_market,vol_hedger2p_valuehedge_variance_ratio- rolling correlations (30/90/365d)
hedge_score- rank (top 3)