Audit selective label partial identification

Partially identify event risk, calibration gap, and Brier score when a policy selectively reveals outcomes: retain missing labels, model observed-versus-missing event odds within each decision stratum under a governed sensitivity ratio, propagate Beta posterior uncertainty, expose unsupported strata and label coverage, and fail closed on wide bounds or undocumented decision rules.

What it's for

Prevents one of the most dangerous AI analytics errors: Gitrevio shows what is and is not identifiable when the policy itself determines whose outcome becomes visible, instead of reporting falsely precise calibration from selected labels.

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
confidence_level number ≥ 0.8, ≤ 0.99 Your calibration Optional
decision_threshold number ≥ 0, ≤ 1 Your calibration Yes
max_detail_rows integer ≥ 1, ≤ 500 Numerical control Optional
maximum_decision_mismatch_rate number ≥ 0, ≤ 1 Your calibration Optional
maximum_event_rate_bound_width number ≥ 0, ≤ 1 Your calibration Optional
maximum_missing_fraction number ≥ 0, ≤ 1 Your calibration Optional
observations array of objects (5 fields) ≥ 100 items Evidence Yes
posterior_draws integer ≥ 500, ≤ 20000 Numerical control Optional
probability_bins integer ≥ 2, ≤ 50 Numerical control Optional
seed integer Numerical control Optional
sensitivity_odds_ratio number ≥ 1, ≤ 100 Your calibration Optional

Each observations record

Field Type Required
decision any Yes
id string (non-empty) Yes
outcome any Optional
predicted_probability number (≥ 0, ≤ 1) Yes
weight number (> 0) Optional
Example input
{
  "decision_threshold": 0.5,
  "observations": [
    {
      "decision": 0,
      "id": "selective-label-0",
      "outcome": null,
      "predicted_probability": 0.2
    },
    {
      "decision": 0,
      "id": "selective-label-1",
      "outcome": 1,
      "predicted_probability": 0.2
    },
    {
      "decision": 0,
      "id": "selective-label-2",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "decision": 0,
      "id": "selective-label-3",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "decision": 0,
      "id": "selective-label-4",
      "outcome": 0,
      "predicted_probability": 0.2
    },
    {
      "decision": 0,
      "id": "selective-label-5",
      "outcome": null,
      "predicted_probability": 0.2
    },
    {
      "decision": 0,
      "id": "selective-label-6",
      "outcome": 0,
      "predicted_probability": 0.2

Truncated for display — the full payload is 607 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
{
  "assumptions": [
    "Within each declared decision stratum, the odds of the event among missing labels differ from observed-label odds by no more than the governed sensitivity ratio.",
    "Observed outcomes are correctly resolved at one common horizon, population weights identify the intended eligible cohort, and missing outcomes are retained rather than coded as negatives.",
    "The supplied decision is the policy mechanism that controls label observation; threshold mismatches can indicate additional undocumented selection rules."
  ],
  "configuration": {
    "confidence_level": 0.9,
    "decision_threshold": 0.5,
    "maximum_decision_mismatch_rate": 0,
    "maximum_event_rate_bound_width": 0.2,
    "maximum_missing_fraction": 0.3,
    "posterior_draws": 500,
    "probability_bins": 10,
    "sensitivity_odds_ratio": 2
  },
  "decision": "selective_label_uncertainty_bounded",
  "decision_strata": [
    {
      "decision": 0,
      "event_rate_sensitivity_posterior_interval": [
        0.1056,
        0.1706
      ],
      "median_event_rate_bound_width": 0.0306,
      "missing_rows": 10,
      "observed_outcome_support_available": true,
      "observed_rows": 40,
      "rows": 50,
      "weighted_missing_fraction": 0.2
    },
    {
      "decision": 1,
      "event_rate_sensitivity_posterior_interval": [
        0.5668,
        0.67
      ],
      "median_event_rate_bound_width": 0.0632,
      "missing_rows": 10,
      "observed_outcome_support_available": true,
      "observed_rows": 40,
      "rows": 50,
      "weighted_missing_fraction": 0.2
    }

Truncated for display — the full payload is 94 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 Retain the full eligible cohort and represent unresolved or structurally unobserved outcomes as null, never as negative; verify that the recorded decision agrees with the governed probability threshold or expose an undocumented selection mechanism.
  2. 2 Within actioned and unactioned strata, update a Jeffreys Beta posterior from genuinely observed outcomes and transform each draw into lower and upper missing-label event probabilities using the governed odds-ratio sensitivity envelope; use [0,1] when a stratum has no observed support.
  3. 3 Combine fixed observed outcomes with the missing-label sensitivity draws to partially identify overall and stratum event rates, calibration gap, and Brier score while retaining population weights and probability-bin label coverage.
  4. 4 Treat excessive missingness, a practically wide event-rate bound, threshold mismatch, or unsupported decision stratum as an abstention; the remedy is prospective label collection or design change rather than favorable imputation.

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.
  • The recorded decision is the mechanism governing label observation, outcomes share one maturity horizon, null means genuinely unavailable rather than negative, and population weights recover the eligible decision cohort.
  • Within each decision stratum, the missing-versus-observed event odds ratio is plausibly bounded by the elicited sensitivity value; this is a scientific judgment to sweep, not a coefficient learned from the selectively labeled data.
  • Posterior probability and adaptive selection are model-conditional; they are not substitutes for randomized propensities or guaranteed safety.
  • A narrow sensitivity envelope is conditional on the missing-label odds bound; it does not prove missing-at-random, validate the policy, identify a causal effect, or make an individual outcome knowable.
  • Do not use predicted probabilities as substitute labels, encode missing outcomes as zero, or tune sensitivity until an employment, security, underwriting, or rollout decision appears acceptable.

Minimum evidence

  • observations: at least 100 rows/items
  • decision_threshold: 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

  • one row per eligible decision unit at a common outcome horizon
  • documented mapping from every decision exception to the actual label-observation mechanism
  • decision threshold, outcome and maturity definition, population weighting, missing-label odds-ratio sensitivity range, missingness tolerance, practical bound width, and mismatch tolerance

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": "partially identify event risk calibration gap" }
  → finds "audit_selective_label_partial_identification"

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

gitrevio_capability_run
  { "capability_id": "audit_selective_label_partial_identification", "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

Fit anchor regression shift robust model

Fit anchor regression across declared operating environments, penalizing residual variation predictable from environment anchors over a governed gamma path; choose robustness strength only on held-out worst-environment RMSE; and expose average fit, environment bias, coefficients, and leave-one-environment stability without claiming generic or causal invariance.

Causal inference & experiment design

Forecast change adoption bass diffusion

Forecast aggregate organizational change or tool adoption with a Bayesian Bass diffusion model learned from reconciled historical cohorts, jointly estimating spontaneous innovation and imitation, simulating posterior uptake under per-cohort enablement capacity, pricing enabled value, exposing grid-boundary misspecification, and gating a target adoption probability.

Sequential Bayesian & bandits

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

See every tool in Measurement integrity →

Ready to See Your Engineering work clearly?

Request a free demo