Menu

How to Tell Whether Your Forecasting Model Beats the Market: A Python Walkthrough
πŸ“°

How to Tell Whether Your Forecasting Model Beats the Market: A Python Walkthrough

DEV Community: datascienceΒ·NeuPortalΒ·22 days ago
#BAnJT5yv
#devtodatascience#science#devto#dev#model
Long article (1591 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Brier scores, the Murphy decomposition, a clustered bootstrap and a blending test, run on an open dataset of 5,654 timestamped model forecasts against Polymarket prices.

If you build a probabilistic model for events that also trade on a prediction market, the market price is your natural baseline, and an unforgiving one. Saying "our model is 60% accurate" means very little; the question that matters is whether your probabilities carry information the price does not.

This walkthrough answers that question end to end on a real dataset. It covers four steps that are worth doing in this order for any forecaster:

Score both sides with a proper scoring rule.

Decompose the score to see why one side wins.

Put an honest confidence interval on the gap.

Test whether the model adds anything on top of the price.

The data are model forecasts on Polymarket questions published by NeuPortal (disclosure: that is my project).…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.