惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
B
Blog
The GitHub Blog
The GitHub Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
月光博客
月光博客
人人都是产品经理
人人都是产品经理
IT之家
IT之家
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
C
Check Point Blog
罗磊的独立博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
When Polymarket says 70%, does it happen 70% of the time?...
manja316 · 2026-06-16 · via DEV Community

manja316

If you trade, model, or just read prediction markets, there's one question that decides whether the price means anything: when the market says 70%, does the thing actually happen about 70% of the time?

That's calibration, and it's the single most decision-relevant property of any probabilistic forecaster. A market can be liquid, popular, and heavily traded and still be systematically wrong in a way that's invisible until you score it against what actually resolved. So I built the thing that lets you check it honestly.

The dataset

Since late March I've been logging Polymarket every 15 minutes. As of this writing the archive holds:

  • 19,413 markets
  • 19,404,618 price snapshots
  • 1,913,420 order-book snapshots
  • 15-minute cadence, 80 days continuous (2026-03-28 → 2026-06-16, ongoing)
  • Each row: market id, timestamp, mid / yes-price, and — for resolved markets — the final 0/1 outcome label

That last part is what makes it usable for calibration work specifically. Most "is this forecaster calibrated" questions die on the lack of clean ground-truth labels. Prediction markets hand you the label for free: the market resolves to YES or NO, and you get a hard 0 or 1 to score every prior price against.

The measurement (reproducible, ~30 lines)

The classic calibration check is a reliability diagram:

  1. Take every resolved market.
  2. Bin its prices into deciles (0–10%, 10–20%, … 90–100%).
  3. For each bin, compute the empirical resolution rate — of all the times the price sat in that bin, how often did the event actually happen?
  4. Plot empirical rate vs. stated price. Perfect calibration is the 45° diagonal.

Deviation from the diagonal is the miscalibration, in probability units, no modelling assumptions required.

import requests, pandas as pd, numpy as np

BASE = "https://api.protodex.io"   # free, no signup

# 1. pull resolved markets + their price history
markets = requests.get(f"{BASE}/markets", params={"resolved": True}).json()

rows = []
for m in markets:
    prices = requests.get(f"{BASE}/prices", params={"market_id": m["id"]}).json()
    label = m["outcome"]                      # 1 if YES resolved, else 0
    for p in prices:
        rows.append((p["yes_price"], label))

df = pd.DataFrame(rows, columns=["price", "outcome"])

# 2. bin into deciles, 3. empirical resolution rate per bin
df["bin"] = (df["price"] * 10).clip(0, 9).astype(int)
reliability = df.groupby("bin")["outcome"].mean()

print(reliability)   # compare each row to its bin's midpoint -> the diagonal

That's the whole thing. Bin midpoint on the x-axis, reliability on the y-axis, draw the diagonal, and the gap tells you the story.

What to look for (and the trap)

The literature on real-money markets has a well-documented signature: the favorite–longshot bias. Longshots (low-probability events) tend to be overpriced — they resolve YES less often than their price implies — and heavy favorites tend to be slightly underpriced. If your reliability curve sags below the diagonal at the low end and rises above it at the high end, that's the fingerprint, and it's the thing to design around if you're trading.

But the part I find more interesting than the static curve is the trajectory: calibration as a function of time-to-resolution. Early in a market's life the price is a noisy prior; near resolution it should sharpen. With a 15-minute series you can measure exactly when the Brier score drops and whether the crowd is over- or under-confident at each horizon — which is hard to study without a dense, timestamped, resolution-labeled feed.

Honest caveats (this is a benchmark, not a free lunch)

  • Survivorship / selection. Resolved markets ≠ all markets. Conditioning on resolution biases some analyses — this is the part I'm least sure anyone (me included) handles cleanly.
  • Liquidity varies wildly. Thin markets have stale prices. Filter by order-book depth — that's exactly why the order-book snapshots are in the dataset.
  • Mid ≠ executable price. Fees and spread are real. Fine for calibration research; matters the moment you make a trading claim.
  • 80 days is one window, not multiple regimes. Treat any "markets are calibrated" conclusion as provisional, not universal.

Get the data

The free read-only API is enough to reproduce everything above — no signup:

https://api.protodex.io — endpoints /stats, /markets, /market/{id}, /prices, /orderbook, /categories.

If you'd rather not page the API market-by-market and just want the full 19M-snapshot history as flat files (parquet/csv) for offline work, the one-time archive is here: Polymarket Full Dataset. The free API reproduces the reliability diagram on its own — the archive just saves you the paging.

I'd genuinely like to know how others handle the selection-bias problem on resolved-only markets — that's the open edge of this. If you've used prediction-market data as a calibration or forecasting benchmark, what failure modes did you hit?