Monitor forecast calibration eprocess

Continuously monitor binary forecasts for calibration drift with an anytime-valid mixture e-process that does not incur a repeated-peeking penalty.

What it's for

Makes real-time probabilities accountable after deployment with a sequential alarm whose false-positive guarantee survives continuous inspection.

What you give it

Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.

Field Type Role Required
alpha number ≥ 0.001, ≤ 0.2 Your calibration Optional
alternative_prior_scale number ≥ 0.05, ≤ 5 Your calibration Optional
checkpoint_every integer ≥ 1, ≤ 10000 Your calibration Optional
forecasts array of objects (3 fields) Evidence Yes
mixture_points integer ≥ 3, ≤ 31 Your calibration Optional

Each forecasts record

Field Type Required
id string (non-empty) Yes
outcome one of "0", "1" Yes
predicted_probability number (> 0, < 1) Yes
Example input
{
  "checkpoint_every": 5,
  "forecasts": [
    {
      "id": "release-risk-0",
      "outcome": 1,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-1",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-2",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-3",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-4",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-5",
      "outcome": 1,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-6",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "id": "release-risk-7",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {

Truncated for display — the full payload is 105 lines.

What you get back

This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.

Example output
{
  "alarm": {
    "alpha": 0.05,
    "e_value_threshold": 20,
    "ever_crossed": false,
    "first_crossing_observation": null
  },
  "anytime_p_value_bound": 0.8377,
  "assumptions": [
    "Under the null, each outcome is conditionally Bernoulli with its immutable pre-outcome forecast probability.",
    "The finite mixture alternative changes calibration through a shared log-odds intercept; other drift forms may need separate monitors.",
    "The anytime guarantee permits continuous inspection but not retrospective editing, selective outcome omission, or duplicated events.",
    "An alarm justifies model and data investigation; it does not identify a cause by itself."
  ],
  "current_e_value": 0.4927,
  "decision": "continue_monitoring",
  "estimated_drift": {
    "direction": "events_less_frequent_than_forecast",
    "mean_predicted_probability": 0.2,
    "observed_event_rate": 0.2,
    "posterior_log_odds_shift": -0.0574,
    "posterior_odds_multiplier": 0.9442
  },
  "maximum_e_value": 1.1937,
  "method": "bernoulli_calibration_mixture_eprocess_v1",
  "monitoring_path": [
    {
      "anytime_p_value_bound": 0.8377,
      "e_value": 0.7502,
      "mean_predicted_probability": 0.2,
      "observations": 5,
      "observed_event_rate": 0.2
    },
    {
      "anytime_p_value_bound": 0.8377,
      "e_value": 0.6258,
      "mean_predicted_probability": 0.2,
      "observations": 10,
      "observed_event_rate": 0.2
    },
    {
      "anytime_p_value_bound": 0.8377,
      "e_value": 0.5474,
      "mean_predicted_probability": 0.2,

Truncated for display — the full payload is 60 lines.

How it works

Sequential Bayesian & bandits — Learn while deciding — update beliefs as evidence arrives and choose where the next unit of effort is worth spending.

  1. 1 Continuously monitor binary forecasts for calibration drift with an anytime-valid mixture e-process that does not incur a repeated-peeking penalty.
  2. 2 Evaluate the method-specific diagnostics and gates returned by the function, then abstain unless the declared decision clears them under locally governed thresholds.

Before you trust it

Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.

Assumptions & guardrails

  • The likelihood or reward model, prior support, action logging, delayed outcomes, and any stationarity assumptions match the deployment process.
  • Posterior probability and adaptive selection are model-conditional; they are not substitutes for randomized propensities or guaranteed safety.

Minimum evidence

  • forecasts: required and organization-defined

How to validate it

Use chronological train/calibration/test windows, compare proper scores and decision value with a simple baseline, and recalibrate only from outcomes resolved after prediction time.

Calibrating it to your org

Same for everyone

The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.

Specific to you

  • metric/outcome definitions, entity grain, observation window, costs, thresholds, priors, and constraints represented by the function inputs

Calibration workflow

  1. 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
  2. 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
  3. 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
  4. 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
  5. 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
  6. 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.

Call it from your AI

You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.

gitrevio_capabilities_search
  { "q": "continuously monitor binary forecasts for calibration" }
  → finds "monitor_forecast_calibration_eprocess"

gitrevio_capability_describe
  { "capability_id": "monitor_forecast_calibration_eprocess" }
  → returns the input schema and agent guidance shown on this page

gitrevio_capability_run
  { "capability_id": "monitor_forecast_calibration_eprocess", "arguments": { ... } }
  → returns the result shown above

Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.

Related tools

Analyze deep uncertainty minimax regret

Apply Savage minimax regret when scenario probabilities are not defensible, compare maximin and equal-weight choices, and use PRIM-style iterative peeling to discover compact context boxes where the robust choice remains vulnerable.

Decision analysis

Audit aggregate metric reversal

Detect Simpson's-paradox-style sign reversals between an executive aggregate relationship and its weighted within-stratum fixed-effect relationship, with whole-stratum bootstrap uncertainty and practical-magnitude gates.

Statistical audit & measurement

Audit informative metric missingness

Audit whether aggregate metric availability is associated with a governed outcome using permutation inference, bootstrap intervals, practical effect gates, and false-discovery control.

Statistical audit & measurement

Audit joint metric dependency drift

Detect changes in cross-metric dependence with empirical-copula ranks, random-feature permutation inference, sliced Wasserstein magnitude, and FDR-controlled pair diagnostics.

Statistical audit & measurement

Audit multivariate metric drift

Detect material distribution shifts with reference-fixed quantile bins, PSI, Jensen-Shannon divergence, standardized Wasserstein distance, permutation tests, and FDR control.

Statistical audit & measurement

Audit point in time model integrity

Gate an analytical or AI model on point-in-time correctness by auditing actual feature availability, snapshot creation, target-window ordering, outcome resolution, source-record reuse, and embargoed train/calibration/test boundaries, with row and feature diagnostics rather than a generic leakage warning.

Statistical audit & measurement

See every tool in Measurement integrity →

Ready to See Your Engineering work clearly?

Request a free demo