Playground
Forecast Scoring Sandbox
The 200 sample forecasts score a Brier of 0.202 and a log loss of 0.588: a skill score of 0.19 over always forecasting the 49% base rate.
On the documented defaults, computed by this tool's engine · the same answer as JSON
Forecast scoring sandbox: paste a CSV of predictions to get Brier score, log loss, Murphy decomposition, bootstrap CIs and a reliability diagram.
01Playground
Runs in your browser. Nothing you enter is uploaded, and no account or API key is needed.
1. Configure — paste or upload a forecast stream
One forecast per line, probability first. A header row naming prob / outcome columns is optional. Rows with a probability outside 0-1 or an outcome other than 0/1 are skipped.
Used for the 95% intervals (seeded, so they do not jitter).
Equal-width probability bins for the decomposition and diagram.
Prediction range
0.071 → 0.947
Base rate (observed)
46.0%
Brier score
0.208
Lower is better · 0 = perfect. Log loss 0.607 across 100 forecasts.
95% CI [0.170, 0.252], bins populated 10/10. Always forecasting the base rate would score 0.248; skill score 0.161 (above 0 beats it).
Decomposition (Murphy 1973)
| Component | Value | 95% CI | Reading |
|---|---|---|---|
| Reliability | 0.0090 | [0.0085, 0.0556] | Lower = better calibrated |
| Resolution | 0.0494 | [0.0320, 0.1033] | Higher = more discriminating |
| Uncertainty | 0.2484 | — | Irreducible from base rate |
| Within-bin variance | 0.0007 | — | Spread of forecasts inside each bin |
| Within-bin covariance | 0.0003 | — | Discrimination inside bins (subtracted) |
| Check: rel − res + unc + wbv − wbc | 0.2084 | — | Equals Brier (0.2084) |
BS = reliability − resolution + uncertainty (Murphy, 1973), exact only when every forecast in a bin is the same; the two within-bin terms (Stephenson, Coelho and Jolliffe, 2008) close the identity for free-form probabilities.
Reliability diagram
X axis: predicted probability bin. Y axis: observed frequency of outcome=1 in that bin. Dots on the diagonal = perfectly calibrated. Dots below the diagonal = overconfident (predictions exceed observed). Dots above = underconfident. Sparse bins are drawn lighter: with few observations, their y position is noisy and the deviation from the diagonal is not informative on its own.
Formulas
Brier(p, y) = mean( (p_i - y_i)^2 )
LogLoss(p, y) = -mean( y_i·log(p_i) + (1-y_i)·log(1-p_i) )
Bin forecasts into K equal-width buckets of predicted probability.
For bin k with n_k observations, mean pred p̄_k, observed freq ō_k:
reliability = Σ_k (n_k / N) · (p̄_k − ō_k)²
resolution = Σ_k (n_k / N) · (ō_k − ȳ)²
uncertainty = ȳ · (1 − ȳ) where ȳ = mean(y_i)
within-bin variance = (1/N) · Σ_k Σ_i∈k (p_i − p̄_k)²
within-bin covariance = (2/N) · Σ_k Σ_i∈k (p_i − p̄_k)(y_i − ō_k)
Identity: Brier = reliability − resolution + uncertainty
+ within-bin variance − within-bin covariance
95% CI: bootstrap-percentile over B resamples with replacement.02Receipt
What the answer above ran on, how it is computed, where the data comes from, and a link that reopens it.
Inputs
forecasts200 valuesn_bins10
The documented defaults. Change any input above and the tool recomputes.
Method
How the hub's tools are built and checked
Engine /engines/forecast-scoring-sandbox.js, sha256 21126ce679c6. The page, the API and MCP run the same file.
Source
Your inputs / BYO key
Page updated .
Permalink
aifinhub.io/forecast-scoring-sandbox/
The link carries the inputs you set, so it reopens this result.
03For agents
Any agent can run this calculator by URL or MCP and get the same answer as JSON: the inputs that used defaults, the result and a line to cite. The call below follows the inputs you set above. In code, import the same engine; it runs where you import it, with no request or key.
GET https://aifinhub.io/api/run/forecast-scoring-sandbox curl -s 'https://aifinhub.io/api/run/forecast-scoring-sandbox'
# Markdown instead of JSON:
curl -s 'https://aifinhub.io/api/run/forecast-scoring-sandbox?format=md' # MCP over Streamable HTTP, no sign-in: run_calculator
curl -s https://aifinhub.io/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"run_calculator","arguments":{"calculator":"forecast-scoring-sandbox","input":{}}}}' import { compute } from "https://aifinhub.io/engines/forecast-scoring-sandbox.js";
const result = compute(input); {
"calculator": "forecast-scoring-sandbox",
"title": "Forecast Scoring Sandbox",
"site": "AI Fin Hub",
"input": {},
"defaults_used": {
"forecasts": [
{
"prob": 0.6116,
"outcome": 1
},
{
"prob": 0.2413,
"outcome": 0
},
{
"prob": 0.5151,
"outcome": 1
},
"… 197 more of 200"
],
"n_bins": 10
},
"result": {
"brier": {
"brier": 0.20235451785000014,
"reliability": 0.008955834573804455,
"resolution": 0.055053521956970226,
"uncertainty": 0.2499,
"withinBinVariance": 0.0006475563413296491,
"withinBinCovariance": 0.002095351108163867,
"brierSkillScore": 0.1902580318127246,
"baseRate": 0.49,
"count": 200,
"binsUsed": 10
},
"logLoss": 0.5879454705782917,
"bins": [
{
"index": 0,
"lower": 0,
"upper": 0.1,
"mid": 0.05,
"meanPred": 0.08081538461538461,
"observedFreq": 0.07692307692307693,
"count": 13
},
{
"index": 1,
"lower": 0.1,
"upper": 0.2,
"mid": 0.15,
"meanPred": 0.14836,
"observedFreq": 0.15,
"count": 20
},
{
"index": 2,
"lower": 0.2,
"upper": 0.3,
"mid": 0.25,
"meanPred": 0.2549166666666667,
"observedFreq": 0.2777777777777778,
"count": 18
},
"… 7 more of 10"
],
"ci": {
"brier": {
"estimate": 0.20235451785000014,
"low": 0.17505233060000003,
"high": 0.2320029457500001,
"n": 1000
},
"logLoss": {
"estimate": 0.5879454705782917,
"low": 0.5227047195252,
"high": 0.6586332872561296,
"n": 1000
},
"reliability": {
"estimate": 0.008955834573804455,
"low": 0.006325305362998362,
"high": 0.03524369829915388,
"n": 1000
},
"resolution": {
"estimate": 0.055053521956970226,
"low": 0.037396163774180466,
"high": 0.08888794424156182,
"n": 1000
}
}
},
"provenance": {
"run": "https://aifinhub.io/api/run/forecast-scoring-sandbox",
"page": "https://aifinhub.io/forecast-scoring-sandbox/",
"methodology": "https://aifinhub.io/forecast-scoring-sandbox/",
"contract": "https://aifinhub.io/contracts/forecast-scoring-sandbox.json",
"engine": "https://aifinhub.io/engines/forecast-scoring-sandbox.js",
"engine_sha256": "21126ce679c6d1447fbb906b1ecc6389d60450521fae9457d06d2f10a5ea96e2",
"build": "d4d071dba6f1f7db23f33f8f0df24024b2a95f80"
},
"disclaimer": "Planning estimates only — not financial, tax, or investment advice.",
"license": "https://creativecommons.org/licenses/by/4.0/",
"cite": "AI Fin Hub, Forecast Scoring Sandbox (engine 21126ce679c6), https://aifinhub.io/api/run/forecast-scoring-sandbox"
} How to use it
- Paste or upload binary forecasts, one per line: the probability (0 to 1) first and the outcome (1 = happened, 0 = did not) second, or load the 100-case demo.
- Set the number of reliability bins and bootstrap resamples. Both the Brier score and log loss are always computed.
- Read the Brier score and log loss with their 95% bootstrap intervals, then compare the Brier score with the base-rate benchmark under it: a skill score above 0 beats always forecasting the base rate.
- Read the decomposition and the reliability diagram: dots below the diagonal on the right mean overconfident forecasts, dots above mean underconfident ones.
- Use at least 50 forecasts before drawing conclusions. Below 50, the intervals are wide and scores are dominated by sample noise.
Questions people ask
What scoring rules are supported?
Two proper scoring rules for binary outcomes: the Brier score (mean squared error of the probabilities) and log loss (mean negative natural-log likelihood). Both reward honest, calibrated probabilities. There is no CRPS or multi-category scoring: score continuous or categorical forecasts by turning them into yes/no events first, one event per row.
What's a proper scoring rule?
A scoring rule where forecasters maximize their expected score by reporting their true beliefs. Brier and log are both proper. Improper rules (e.g., 'biggest single hit wins') incentivize gaming, like reporting extreme probabilities to maximize variance. Proper rules incentivize honesty.
When should I use Brier vs. log?
Brier is bounded and treats all errors symmetrically. Log loss is unbounded: predicting 0.001 on something that happens costs about 6.9 on that one forecast (the tool clamps probabilities at 10⁻⁹, so the worst single loss is about 20.7). Use log loss when overconfidence must be punished hard; use Brier for a more forgiving, bounded metric. Reporting both is common.
How do I compare two forecasters with different forecast counts?
Use the mean score per forecast, which is what the sandbox reports, and compare the bootstrap 95% intervals: if they overlap heavily, the difference is not reliable. With fewer than about 50 forecasts each, the intervals are wide and comparisons should not drive decisions.
Does the sandbox support binary, categorical, and continuous outcomes?
Binary only: each row is the probability that an event happens and an outcome of 1 (it happened) or 0 (it did not). A categorical forecast can be scored one category at a time as yes/no events, and a continuous forecast through threshold events such as 'return above 0'. There is no distributional (CRPS) scoring.
Is there a real, public forecast stream I can look at as an example?
Yes. Good Judgment Open scores forecasters' probabilities with the Brier score once each question resolves (https://www.gjopen.com/faq), which is the input this sandbox expects: probability-tagged forecasts paired with realized outcomes. FrontierPicks, a sister site, keeps a public, dated record of AI stock picks graded against the S&P 500 (https://frontierpicks.com/track-record/), but its picks state no probability, so to score them here you would have to assign one yourself.
Related tools
- Playgrounds Calibration Dojo
Train your probabilistic intuition. Answer binary forecasting questions at any confidence level; track Brier score and reliability curve over time. All state stored locally.
- Calculators Backtest Overfitting Score
Upload a returns CSV (one column per strategy you tried) or simulate a strategy search: the probability of backtest overfitting (PBO) by CSCV and the Deflated Sharpe Ratio.
- Calculators Kelly Criterion Calculator
Size positions with full, half, quarter, or eighth Kelly and stress-test the choice with a drawdown Monte Carlo simulator. Client-side. Private by default.