Audit extreme metric tail dependence

Detect extreme metric co-exceedances beyond independence with empirical tail coefficients, permutation inference, practical magnitude gates, and FDR control.

What it's for

Finds risks that become severe together even when ordinary correlation or average-period dashboards look acceptable.

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
false_discovery_rate number ≥ 0.001, ≤ 0.2 Your calibration Optional
max_detail_rows integer ≥ 1, ≤ 100 Numerical control Optional
metric_names array of string ≥ 2 items Evidence Yes
minimum_tail_dependence number ≥ 0, ≤ 1 Your calibration Optional
observations array of objects (2 fields) ≥ 100 items Evidence Yes
permutation_draws integer ≥ 200, ≤ 20000 Numerical control Optional
seed integer Numerical control Optional
tail one of "upper", "lower" Your calibration Optional
tail_quantile number ≥ 0.8, ≤ 0.99 Your calibration Optional

Each observations record

Field Type Required
id string (non-empty) Yes
metrics object Yes
Example input
{
  "metric_names": [
    "delivery_delay",
    "incident_loss",
    "review_time"
  ],
  "observations": [
    {
      "id": "tail-0",
      "metrics": {
        "delivery_delay": 50,
        "incident_loss": 100,
        "review_time": 0
      }
    },
    {
      "id": "tail-1",
      "metrics": {
        "delivery_delay": 1,
        "incident_loss": 1,
        "review_time": 7
      }
    },
    {
      "id": "tail-2",
      "metrics": {
        "delivery_delay": 2,
        "incident_loss": 2,
        "review_time": 14
      }
    },
    {
      "id": "tail-3",
      "metrics": {
        "delivery_delay": 3,
        "incident_loss": 3,
        "review_time": 2
      }
    },
    {
      "id": "tail-4",
      "metrics": {
        "delivery_delay": 4,
        "incident_loss": 4,

Truncated for display — the full payload is 1612 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": [
    "Rows are exchangeable enough for permutation, metric definitions are stable, and the selected window represents the risk population.",
    "The empirical threshold leaves enough genuine extreme observations; exploratory choice of tail side or quantile after seeing results invalidates the p-values.",
    "Pairwise co-exceedance captures asymptotic-tail evidence only approximately at a finite threshold and does not establish a causal dependency mechanism.",
    "Metrics describe privacy-eligible systems, projects, or cohorts and must not be repurposed into person-level suspicion or employment decisions."
  ],
  "decision": "material_extreme_tail_dependence",
  "dependent_pairs": [
    {
      "cooccurrence_ratio_vs_independence": 10,
      "expected_joint_rows_under_independence": 2,
      "fdr_discovery": true,
      "joint_tail_rows": 20,
      "material_tail_dependence": true,
      "metric_a": "delivery_delay",
      "metric_b": "incident_loss",
      "p_value": 0.004975,
      "tail_dependence_coefficient": 1
    }
  ],
  "method": "empirical_extreme_coexceedance_permutation_fdr_v1",
  "pair_summary": {
    "details_returned": 1,
    "details_truncated": false,
    "fdr_discoveries": 1,
    "material_pairs": 1,
    "pairs_tested": 3
  },
  "sample": {
    "false_discovery_rate": 0.05,
    "metrics": 3,
    "minimum_tail_dependence": 0.15,
    "observations": 200,
    "permutation_draws": 200
  },
  "tail": {
    "quantile": 0.9,
    "side": "upper",
    "tail_rows": {
      "delivery_delay": 20,
      "incident_loss": 20,
      "review_time": 11
    },

Truncated for display — the full payload is 51 lines.

How it works

Statistical audit & measurement — Check whether a number is fit to decide on: coverage, timing, reconciliation, and the gaps a dashboard hides.

  1. 1 Detect extreme metric co-exceedances beyond independence with empirical tail coefficients, permutation inference, practical magnitude gates, and FDR control.
  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

  • Metric definitions, weights, aggregate grain, sampling, missingness, dependence, and comparison windows correspond to the management claim being audited.
  • Association, instability, or measurement quality is not a causal effect and must not be converted directly into an individual employment decision.

Minimum evidence

  • observations: at least 100 rows/items
  • metric_names: at least 2 rows/items

How to validate it

Validate on future periods or held-out aggregate units, compare with a simple baseline, and require stability across plausible metric definitions and decision thresholds.

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

  • stable privacy-eligible observation grain
  • prespecified tail side and quantile
  • metric catalog
  • minimum material tail dependence
  • false-discovery rate

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": "detect extreme metric coexceedances beyond independence" }
  → finds "audit_extreme_metric_tail_dependence"

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

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

Aggregate risk register copula

Aggregate risk-register occurrence and lognormal severity marginals through a validated Gaussian copula into expected loss, VaR, CVaR, dependence amplification, and tail shares.

Statistical audit & measurement

Allocate restless bandit interventions

Allocate scarce recurring interventions across evolving Markov units with Whittle indices, explicit indexability checks, and paired policy simulation.

Sequential Bayesian & bandits

Attribute commercial dependency tail loss

Calculate expected loss, VaR and CVaR for commercial value concentrated in shared technical components, then allocate every modeled tail-loss dollar exactly once across components with normalized negative-log survival hazard rather than overlapping leave-one-out sensitivities.

Forecasting & survival

Audit commercial resilience claim integrity

Audit resilience ROI claims against a unique commercial-source to technical-component graph: recompute each action's avoided loss under joint failure scenarios, cap support at graph-derived value, detect duplicate effects, probability drift and weak evidence, and prevent overlapping component benefits from being sold twice.

Network & dependency analysis

Audit decision rank robustness smaa

Measure rank acceptability, regret, pairwise dominance, and central winning weights under uncertain criterion scores and bounded stakeholder weights.

Statistical audit & measurement

Audit metric regime stability

Detect practical structural breaks across aggregate metric histories with recursive max-CUSUM search, moving-block null resampling, and familywise false-alarm control, then identify the defensible baseline regime.

Statistical audit & measurement

See every tool in Risk, tails & resilience →

Ready to See Your Engineering work clearly?

Request a free demo