Weather Edge is a forecasting engine first and a betting system second. It produces a probability for every temperature bucket in Polymarket's daily high and low markets for 31 cities, and the main goal is to make those probabilities as accurate as possible, measured by Brier score (lower is better).
The cron Worker does the work. Four times a day it reads every open market, builds a forecast, compares it with the market price, logs paper trades where the edge is big enough at a price you could actually get, and saves a snapshot of every market. Overnight it records which bucket won.
This app reports. It no longer forecasts or logs trades itself. It shows the system's health, the latest run, the trade record and the diagnostics.
- Open Home. Check the System health word: Healthy, Check or Problem.
- Read "Needs your attention". If it says nothing needs you, you are done. If trades are waiting to resolve, tap Resolve now.
- Glance at Model vs market. The model and blend numbers should sit below the market number for each lead time, and the gap is what matters over weeks, not days.
- Weekly (Monday after 11:15 UTC): the attention card reports the weekly refit. Copy the full report (Report tab) and paste it to Claude for a review.
What the health colours mean
| Status | Means | Do |
|---|---|---|
| Healthy | Last run under 7 hours ago, all four models present for 95%+ of markets, no errors | Nothing |
| Check | Run 7 to 13 hours old, some model data missing, or Open-Meteo errors | Look again after the next run; tell Claude if it persists |
| Problem | No run for 13+ hours, runtime errors, or most model data missing | Open the Worker /status page and paste it to Claude |
Worker status page: weather-cron.philipwhall10.workers.dev/status. Scheduled runs: every minute 04:55 to 05:10 UTC (a guard keeps it to about two full runs), plus 11:15, 17:15 and 23:15 UTC.
- Four models. The Worker fetches the main forecast run of GFS, ECMWF, GEM and UKMO for each settlement station (one Open-Meteo call per city) and takes each model's daily high or low for the market's local date.
- Settlement-fitted corrections. Each model gets its own bias correction for each city, high or low, and lead time, fitted against the buckets that actually won. This replaced the old ERA5-based MOS, which corrected towards a smoothed grid rather than the airport station that settles the market.
- Centre and width. The corrected values are averaged (weights currently about 25% each) to give a centre, and each city has its own fitted error width. The probability of each bucket is the share of a normal curve that falls inside it, using the settlement rule of whole degrees.
- Market blend. The model's probabilities are combined with the market's (rescaled to 100%). The blend weights were fitted on history; the market counts for more on the day itself, the model more two days out. If a market's prices do not hang together, the blend is switched off and the model stands alone.
- Weekly refit. Every Monday at 11:15 UTC the Worker refits corrections, widths, weights and blend from the last 90 days of settled markets, including archived forecasts from the history backfill. Changes need at least 50 markets per group (300 per lead for weights and blend) and are capped each week.
In plain terms: the model is four weather forecasts, each corrected for its usual error at that city and lead, then averaged. A bell curve is drawn around the average. Its width is the typical size of past errors. The probability of a bucket is the area under the curve across that bucket's range. Where the market's prices look sensible, the two are combined. This is standard post-processing of weather model output, which is deliberate: a standard design can be checked by someone who knows the field.
The model design is frozen from 16 October 2026 and judged on data captured after that date. Parameters still refit every Monday, but any change to the structure gets a new version tag and its own test. The evaluation protocol sets out the measures and pass rules in advance, with a read-out planned for 16 November 2026.
The ensembles (GFS, ECMWF, GEPS, MOGREPS members) are still fetched and stored so we can later test whether their spread adds anything, but they no longer drive the probabilities.
One row per market from the Worker's latest run. Top bucket is the bucket the blend rates most likely; Blend and Model are its probabilities in %; Mid is the market price in cents. Status shows a bet (direction and bucket) or why there was none.
Tap a row to see every bucket with model, blend, mid, bid and ask, plus the forecast centre and width and each model's raw value.
Terms
- Coherent market: bucket prices add up to 90 to 115% and the priced buckets have bids. Many do not: some prices are placeholders (often 20, 25, 34 or 50) on empty books. A β marks an incoherent market; the blend is off there.
- Fill price: paper trades are entered where you could actually trade: YES at the best ask, NO at 1 minus the best bid. The edge is measured against that price.
- Unfillable: the edge sits on a bucket with no quote on the side we need. The trade is logged at stake $0 so it is visible but cannot flatter the results. About half of candidate edges are like this.
- Rejections: edge<8pp (not enough edge at the fill price), det<2 (fewer than two models available), spread>2 (legacy rule on GFS ensemble spread, under review).
The Report tab compiles everything into one copyable report. Sections 7 to 9 are the ones that matter for v11.
7 Β· Snapshot scoreboard
The fair test of the forecast. It scores every bucket of every settled market, not just the ones we bet on (bets are chosen where the model disagrees most with the market, which makes trade-level Brier misleading). Read it like this:
- Brier per bucket: lower is better. A flat guess across about 11 buckets scores 0.083, but a flat guess is a weak benchmark. Climatology (the normal outcome for that city and month) is the fairer one.
- Ranked probability score (planned, not yet shown): like Brier, but probability placed near the right bucket counts as better than probability placed far away.
- Mkt norm: market prices rescaled to sum to 100%. This is the fair comparison; raw prices often sum to well over 100%.
- AM: the 04:00 to 05:00 UTC run, when bets are placed. Later runs see more of the day and are not comparable.
- Coherent only: the same comparison restricted to markets whose prices hang together.
- Warmer / colder: where the winning bucket landed relative to the model's favourite. Roughly equal means no bias.
- Calibration: predicted against actual in probability bands. Within 5 points is the target.
8 Β· CLV and honest P&L
Closing-line value asks whether the market moved our way after we entered: the price just before the market's day starts, against our entry price. Positive CLV at real prices is usually the first honest sign of an edge, before P&L shows it. The P&L table splits trades by entry-price quality: clean, placeholder (entered at a price that was not real) and unknown.
9 Β· Go-live status
Each go-live trigger shown as PASS, FAIL, NOT YET (not enough data) or MANUAL, with the figures behind it. Home shows the counts and the biggest blocker.
Versions card (Home)
One line each for the app page, the server code (api.js), the cron Worker, the model and the parameters. Green means what is running matches the latest build I handed over. Amber means something different is running, for example a file not yet deployed, or an old cached copy of the page. Grey means it is still checking. After deploying a Worker the line can stay amber until its next run (up to 6 hours).
Blocks 1 to 6
The original trade-level diagnostics, kept by agreement. They measure bets, not forecasts, so they are biased by which bets were chosen. Use sections 7 to 9 for decisions.
All must be green, measured on the current model only. Real money also needs a legal venue.
| Trigger | Test | Why |
|---|---|---|
| A1 | Model beats rescaled market at day 1 and 2, INT and US | The model alone adds information |
| A2 | Blend beats market at every lead | The final probability is better than the price |
| A3 | Winner warmer than favourite 45 to 55% of misses | No systematic bias |
| A4 | Brier day 0 < day 1 < day 2 | A real forecast sharpens as the day nears |
| A5 | Calibration within 5 points | Probabilities mean what they say |
| A6 | A1 to A5 hold in each of the last three 10-day blocks | Not a lucky stretch |
| B7 | 500+ resolved paper bets at real prices | Enough evidence |
| B8 | CLV above zero, 95% interval above zero | We beat the price, not just the outcome |
| B9 | ROI after commission, lower 95% bound above zero | Profit survives costs |
| B10 | No city over 15% of profit; top 10 wins under 25% | Not one city or a few lucky hits |
| C11 | 14 days with all four models and no errors | Operations are reliable |
| C12 | 30 days of over 95% robot/paper agreement | Automation does what paper does |
| C13 | Legal venue and commercial data licence | Permission to trade |
| C14 | Safety Governor live in the betting code | Stop-loss and caps enforced |
- The forecast is now much better. A walk-forward backtest over about 11,000 markets (27 Jul to 13 Oct) took Brier from 0.080 (v9) to about 0.064 for the model and about 0.056 for the blend. The cold bias disappeared, accuracy improves as the day nears, and the gains held in every 10-day block.
- The old paper profit was not real. v9's profit came entirely from trades entered at placeholder prices. On clean prices v9 lost 16% with negative CLV. This is why v11 fills at real bid and ask prices.
- Profitability is unproven. On markets with real prices, backtest ROI after costs is between minus 8% and plus 9% depending on exactly when each model run became available. Live v11 CLV at real prices will settle it.
- The market wins on the day. Traders can see the readings come in; the model cannot yet. A same-day update from station readings is the largest remaining gap.
- Capacity is small. Typical liquidity is about $4,000 per bucket and $75 to $700 a day of volume.
The strategic ideas, as hypotheses
The original thinking still guides what we test, but none of it is proven: Kahneman (traders anchor on recent weather and under-price reversion), Taleb (tails are under-priced), and the Dixon-Coles lesson that structural mispricing can survive. The clean-price data so far does not show a structural NO edge.
- No UK venue. The FCA treats weather contracts as binary options, banned for retail since 2019. Polymarket is geo-blocked; Betfair and Smarkets do not list these markets.
- Data licence. Open-Meteo's free tier is non-commercial and rate-limited (5,000 calls an hour, 10,000 a day; we use about 750). Real money needs the paid Professional plan.
- Small samples. No model change below 50 settled markets in a group; full-weight action needs 100. Early figures on Home are flagged when a lead has fewer than 50.
- Seasons. The corrections were fitted on summer and early autumn. The weekly refit tracks the change, but winter is untested.
- Settlement stations. Each city settles at the airport named in Polymarket's rules (for example LA at KLAX). A wrong station ruins a city's forecast; check the rules when adding one.
Kelly answers: given an edge, what fraction of the bankroll maximises long-run growth? f = (pΓb β q) / b, where p is our probability, q = 1 β p and b is the net odds.
- Quarter Kelly on a $500 paper bankroll, capped at 5% of bankroll per trade.
- Selection haircut: stake sized on 80% of the measured edge, because the biggest edge is the one most likely inflated by noise.
- Price used: the real fill price (ask for YES, 1 minus bid for NO) and the blended probability.
- Lead-time decay: max(0.25, 1 β 0.12 Γ (days ahead β 1)).
- Star multiplier: β β β 100%, β β β 50%, β ββ 25%. Model disagreement: 85% to 25% as GFS and ECMWF ensembles diverge.
- Unfillable trades are staked at $0.
These multipliers are judgment, not fitted. Multi-bucket Kelly (staking several buckets in one market as a portfolio) is designed but not built.
| Version | When | What it changed |
|---|---|---|
| v11-cal | 15 Oct 2026 | Four main-run models, settlement-fitted corrections, market blend, real bid/ask fills, weekly refit; app stops logging |
| v10.1-ens | 15 Oct 2026 | One fetch per city; fixed missing pre-dawn hours for cities east of UTC |
| v10-ens | 14 Oct 2026 | ECMWF, GEPS, MOGREPS live for the first time (wrong model names before); LA moved to KLAX |
| v9-mos | 26 Jul 2026 | ERA5-fitted MOS bias and width for GFS; snapshot archive started |
| v8-kde | 28 Jun 2026 | Kernel-dressed ensemble probabilities in the browser app |
| v5 variants | 25 Jun 2026 | Four-model weighting, beta Kelly, fixed GFS warm-bias correction |
| Earlier | Jun 2026 | GFS ensemble versions; trades from this period stored a different probability convention |
- Collect live v11 evidence for 3 to 4 weeks: snapshot Brier, CLV and ROI at real prices.
- Same-day update from station readings (METAR): the largest remaining Brier gap.
- Per-model ensemble spread test and newer models (ECMWF AIFS, Google WeatherNext 2).
- Market information: liquidity weighting, price moves after model releases, consistency between a city's high, low and neighbouring days, Kalshi for US cities.
- Betting layer once the B criteria are met: multi-bucket Kelly, correlated exposure, resolution inside the Worker.
- Decisions outside the code: Open-Meteo paid plan, venue, and other ways to use the engine (market making, weather risk, licensing).