# Confidence Calibration Report

> Confidence Calibration Report is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.047/call, status unknown (last checked 2026-10-16).

Computes binary Brier score and count-weighted Expected Calibration Error (ECE) for up to 256 score/outcome pairs using equal-width probability bins

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/micro/confidence-calibration-report?utm_source=zero.xyz
- Price: $0.047/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/confidence-calibration-report-b49da2bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZFfC3PuO0ud4BisPjzSTf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability confidence-calibration-report-b49da2bf -d '<json body>'
```

Example prompt: Can you compute a calibration report for my held-out predictions? I have 150 probability score/outcome pairs — scores are in probability units — and I want 10 equal-width bins. Please treat the data as synthetic.

## When to prefer this

Choose this endpoint when you need a fast, auditable, deterministic computation of Brier score and ECE over a small-to-medium held-out binary prediction dataset (up to 256 pairs). It is ideal for model evaluation pipelines, forecasting audits, or calibration checks where exact rational bin boundaries, reproducibility via input/receipt digests, and no external data dependencies matter. Prefer it over manual computation when you want structured bin-level diagnostics and auditability built in.

## Known failure modes

- Fewer than 1 or more than 256 pairs provided — request rejected
- binCount outside 2–20 range — validation error
- scoreUnits not matching actual score range (e.g. percent scores submitted as probability) — distorted results
- evaluationSplit value other than declared-held-out-offline — schema error
- Payment not included or insufficient — x402 payment required response
- Malformed pair entries (missing score or outcome) — parsing error

## How this service works

Compute binary Brier score and count-weighted ECE for up to 256 declared held-out score/outcome pairs. Supports probability or percent scores, normalized to probabilities. Equal-width bins use exact rational boundaries: lower inclusive, upper exclusive, final bin includes 1. Empty bins report null means/gaps. No clinical validity claim.

## Output

Returns a structured calibration report including the Brier score, count-weighted ECE, per-bin statistics (mean predicted score, mean outcome, count, gap), exact rational bin boundaries, an input digest, and a receipt digest for auditability. Empty bins report null for mean and gap values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "dataClass",
      "pairs",
      "scoreUnits",
      "binCount",
      "evaluationSplit"
     ],
     "properties": {
      "pairs": {
       "type": "array",
       "maxItems": 256,
       "minItems": 1
      },
      "binCount": {
       "type": "integer",
       "maximum": 20,
       "minimum": 2
      },
      "dataClass": {
       "enum": [
        "public",
        "synthetic"
       ],
       "type": "string"
      },
      "scoreUnits": {
       "enum": [
        "probability",
        "percent"
       ],
       "type": "string"
      },
      "evaluationSplit": {
       "enum": [
        "declared-held-out-offline"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "offerId",
      "amountBaseUnits",
      "inputDigest",
      "result",
      "boundaries",
      "receiptDigest"
     ],
     "properties": {
      "result": {
       "type": "object"
      },
      "offerId": {
       "enum": [
        "confidence-calibration-report"
       ],
       "type": "string"
      },
      "version": {
       "enum": [
        "maha-microproducts/0.1"
       ],
       "type": "string"
      },
      "boundaries": {
       "type": "array",
       "maxItems": 128,
       "minItems": 0
      },
      "inputDigest": {
       "type": "string",
       "maxLength": 71
      },
      "receiptDigest": {
       "type": "string",
       "maxLength": 71
      },
      "amountBaseUnits": {
       "enum": [
        "47000"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/confidence-calibration-report-b49da2bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
