◆ EDJE
◆ Methodology · Deep dive

How the EDJE algorithm works.

A 47-source reconciliation engine, 12 calibration modules, and a learning loop that retrains itself every Monday morning. This is what sits between a Kalshi price and the edge you see on EDJE's card feed. No black box — the math is published.

◆ Published Oct 26, 2026 ◆ 12 min read ◆ Technical

◆ Table of contents

  1. The thesis
  2. The 47 signal sources
  3. Step 1 — Vig removal and the weighted blend
  4. Step 2 — Category prior shrinkage
  5. Steps 3-7 — Microstructure, momentum, ML confidence, correlation, news shock
  6. The learning loop
  7. Making it yours
  8. FAQ

The thesis.

Kalshi and Polymarket are tech platforms, not bookmakers. Prices on these exchanges are set by the people trading them, which is dominated by retail users with partisan priors, limited bankrolls, and slow reflexes to new information. The exchanges collect a small fee on each matched trade and otherwise don't touch the price. That's structurally different from a Vegas sportsbook, where a risk desk sets opening lines and moves them within seconds of material news.

The consequence is that prediction market prices lag the information in markets where the trading population is thin or inattentive. The gap between the market's price and the true probability of the outcome is what EDJE calls an edge. The whole engine exists to find and quantify that gap at the moment it opens.

Edge, formally. If a Kalshi contract on "Fed cuts in December" trades at 53¢ YES, the market is saying there's a 53% chance. If EDJE's blended model estimates the true probability at 61%, the edge is (61 − 53) × 100 = 8.0pp on the YES side. That's not a prediction — it's a statement that the market has mispriced the outcome by 8 percentage points relative to the model.

The 23 signal sources.

EDJE blends 47 production signal sources, grouped into nine buckets. Each source has an independent weight, a tracked Brier score, and an EMA-decayed influence based on recent realized performance.

Step 1 — Vig removal and the weighted blend.

Every exchange collects fees. Those fees are embedded in the quoted prices as an overround — a market saying 54¢ YES and 48¢ NO sums to 102%, with the extra 2 cents representing the exchange's take. Before anything else, EDJE normalizes the overround so YES + NO = 100% exactly. The normalized price is the true implied probability the market is actually assigning.

Then the weighted blend. Each of the 47 sources has an active weight wi and a probability estimate pi for the market in question. The engine computes:

pblend = Σ(wi × pi) / Σ(wi)

Weights are updated by an EMA (exponential moving average) with α=0.15 and a minimum sample size of 10 resolved markets. If FiveThirtyEight's edges have consistently outperformed expectations over the last three months, its weight drifts up. If r/sportsbook has consistently under-performed, its weight drifts down. The weights are also categorized — a politics market gives higher weight to political forecasters, a sports market gives higher weight to sportsbook signals.

Step 2 — Category prior shrinkage.

Small samples create overconfidence. If only 3 sources have weighed in on a sports market, the blended probability could easily be 85% when the honest answer is "we don't know yet." The Category Prior module shrinks the blended estimate toward the per-category baseline (usually 0.5 for binary markets) with a tunable λ between 0.08 and 0.22:

pshrunk = pblend + λ × (prior − pblend)

This step is small but matters. It's the difference between the algorithm screaming "99% confidence YES" after one source weighs in and quietly saying "67%, come back after we have more signal."

Steps 3-7 — Algorithm 4.0's five calibration modules.

Algorithm 3.0 ended at the category prior. Algorithm 4.0 added five modules that fire in sequence on the shrunk probability to produce a final edge estimate.

M1 · Liquidity Gate

A theoretical edge in a market with $300 of open interest is not an actionable edge. M1 reads the current spread, infers slippage (half the spread), and multiplies the raw edge by a liquidity tier weight: thin markets at 0.35, medium at 0.70, thick at 0.95, deep at 1.00. A 10pp edge on a thin market becomes 3.5pp after this gate. A size-of-move Z-score triggers a safety haircut: if the market has just repriced by more than 3 standard deviations, the edge is halved — because EDJE's model probability almost certainly hasn't ingested whatever just happened.

M2 · Momentum / Mean Reversion

Dual-EMA with half-lives of 3 hours (fast) and 24 hours (slow). The difference is velocity. The second derivative is acceleration. A z-score of the current price against the trailing 24-hour mean classifies the regime: trending-up (velocity > 1.5pp and acceleration > 0), trending-down (symmetric), overshoot (|z| > 2.0 with velocity in the same direction — a mean-reversion candidate), or range. Edges aligned with a trending regime get a small amplification. Edges in overshoot regimes get a 30% haircut.

M3 · Correlated Markets Graph

For each snapshot, EDJE tokenizes every market title with a 400-token vocabulary built from token frequency across the active universe, builds normalized term-frequency vectors, and computes pairwise cosine similarity. Markets with similarity ≥ 0.42 become edges in a sparse adjacency graph. When a strong edge appears at market A, EDJE propagates a dampened signal (0.6 × similarity × edge) to each neighbor whose 24-hour price has moved less than 3pp — on the assumption that a correlated market which hasn't yet repriced is the next place the edge will surface.

M4 · ML Residual Blender

A 10-feature logistic regression — category one-hots, liquidity tier, time-to-close, momentum Z, cross-venue divergence, source agreement — predicts the probability that a nominal edge is signal rather than noise. The output pReal multiplies the nominal edge to produce the adjusted edge. Weights are trained offline on 42,000+ historical calibration residuals, hot-reloaded from a versioned Supabase table so the production code can be upgraded without a redeploy.

adjustedEdge = nominalEdge · σ(w · x)

M7 · News-Shock Dampener

Added in Algorithm 4.1. M7 cross-references M1's size-of-move Z-score with the freshest tagged headline age for the market_id to classify an active shock. Shock score = (|z| / 4) × (max(0, 1 − agemin / 60)). The maximum haircut is 70% of final edge during the first 15 minutes of a confirmed shock. This prevents the system from recommending into a market still absorbing information.

The learning loop.

Algorithm 4.1 closes the loop. Every surfaced edge opens a shadow bet in the pnl_ledger table (market_id, side, implied, edge, source, half-Kelly fraction). When the market resolves, the bet closes and three values are recorded: realized return, expected return, and the delta between them. The delta feeds the EMA on the originating source's weight — a source that consistently over-performs its expected returns gets its weight pulled up at α=0.15; a source that consistently under-performs gets pulled down.

Every Monday at 04:00 UTC, a scheduled retrainer pulls the prior 30 days of closed bets, builds the 10-feature matrix for M4, performs a 70/30 seeded train/holdout split, re-fits the logistic residual blender via 15-epoch SGD, and evaluates the candidate on Brier and log-loss against the holdout. A Brier gatekeeper refuses to publish any model whose holdout Brier exceeds the current production model by more than 0.005. No bad week of data can degrade the production model.

What this means in practice. The algorithm you're running against today is not the same algorithm you were running against six weeks ago. The weights drift based on reality. Sources that keep losing lose influence. Sources that keep winning gain influence. The model gets better the longer it runs. There's no human in the loop.

Making it yours.

The default algorithm is EDJE's view of which sources matter. You might disagree. The Build Your Own Algorithm page lets you reweight all 47 sources with multipliers between 0× (ignore entirely) and 3× (triple-weight), see a live preview of how the top edges rerank with your weights, and backtest your custom profile against the pnl_ledger to see whether it would have outperformed EDJE's defaults.

The backtest returns both equity curves — the realized P&L EDJE's defaults actually produced, and the hypothetical P&L your weights would have produced on the same bets — plus hit rate, max drawdown, Sharpe, and the number of trades where your weights would have flipped the side. If your version beats EDJE's over 90 days, that's the viral moment: a shareable "my algorithm beat the model" artifact that nobody else in the category can produce.

FAQ.

Is EDJE a trading platform?

No. EDJE is a signal and analytics layer that reads live quotes from Kalshi and Polymarket and surfaces edges. The actual trade happens on the venue. Every market page carries a deep-link that opens the venue's buy screen with the recommended outcome pre-selected.

How often does the feed update?

The main engine-feed endpoint caches on a 60-second window. The signal pulse endpoint used by the Theater exposes events on a rolling 60-second basis. Push notifications fire every 10 minutes when a watched market crosses a threshold.

What's the "edge" number on each card really showing?

The percentage-point gap between EDJE's model probability (post all 12 calibration modules) and the vig-removed market price. A +8.4pt edge on YES means the model thinks YES is 8.4 percentage points more likely than the market is pricing it.

How does the half-Kelly stake work?

The Kelly criterion gives the fraction of bankroll that maximizes long-run expected log-growth given a known edge. Full-Kelly is aggressive and can produce large drawdowns; EDJE recommends half-Kelly (clamped to 20% ceiling) as a conservative sizing default. The Kelly figure on each card is purely informational — it's what the math says, not what you have to bet.

Does EDJE account for the exchange's fees?

Yes. Vig removal is the first step in the pipeline, and liquidity-adjusted slippage is subtracted at M1. The edge you see is the post-cost edge.

See the engine for yourself.

Three visualizations, five minutes. Watch the pipeline run on a real market.

Open The Engine Room →