{
  "schemaVersion": 1,
  "kind": "synthetic-worked-example",
  "generatedAt": "2026-10-17T13:42:03.737Z",
  "license": "CC0-1.0",
  "unit": "one prediction for each of 200 distinct hypothetical drives",
  "event": "failure within a hypothetical ten-day horizon, fully observed",
  "assumptions": "The same two groups contain 20/100 and 80/100 positives for all predictors. No training, sampled fleet, intervention, censoring, or confidence interval.",
  "brierConvention": "mean((p-y)^2), binary single-positive-class probability, range [0,1]",
  "mccConvention": "null when either binary variable has zero variance",
  "interpretation": "Observed score-group frequencies illustrate calibration only on constructed counts; they do not establish population calibration.",
  "implementationSha256": "e77e4ffbde616b0bd5f876976c223f615746cec12e4429d3fc0abe4dc68ca64e",
  "examples": [
    {
      "id": "A",
      "groups": [
        {
          "probability": 0.2,
          "positives": 20,
          "negatives": 80
        },
        {
          "probability": 0.8,
          "positives": 80,
          "negatives": 20
        }
      ],
      "total": 200,
      "positives": 100,
      "negatives": 100,
      "threshold": 0.5,
      "tp": 80,
      "fp": 20,
      "fn": 20,
      "tn": 80,
      "brier": 0.16,
      "mcc": 0.6000000000000001,
      "reliability": [
        {
          "probability": 0.2,
          "positives": 20,
          "total": 100,
          "observedFraction": 0.2
        },
        {
          "probability": 0.8,
          "positives": 80,
          "total": 100,
          "observedFraction": 0.8
        }
      ]
    },
    {
      "id": "B",
      "groups": [
        {
          "probability": 0.1,
          "positives": 20,
          "negatives": 80
        },
        {
          "probability": 0.9,
          "positives": 80,
          "negatives": 20
        }
      ],
      "total": 200,
      "positives": 100,
      "negatives": 100,
      "threshold": 0.5,
      "tp": 80,
      "fp": 20,
      "fn": 20,
      "tn": 80,
      "brier": 0.17000000000000004,
      "mcc": 0.6000000000000001,
      "reliability": [
        {
          "probability": 0.1,
          "positives": 20,
          "total": 100,
          "observedFraction": 0.2
        },
        {
          "probability": 0.9,
          "positives": 80,
          "total": 100,
          "observedFraction": 0.8
        }
      ]
    },
    {
      "id": "C",
      "groups": [
        {
          "probability": 0.5,
          "positives": 20,
          "negatives": 80
        },
        {
          "probability": 0.5,
          "positives": 80,
          "negatives": 20
        }
      ],
      "total": 200,
      "positives": 100,
      "negatives": 100,
      "threshold": 0.5,
      "tp": 100,
      "fp": 100,
      "fn": 0,
      "tn": 0,
      "brier": 0.25,
      "mcc": null,
      "reliability": [
        {
          "probability": 0.5,
          "positives": 100,
          "total": 200,
          "observedFraction": 0.5
        }
      ]
    }
  ],
  "binningConvention": "Binary-event L1 ECE: sum(n_bin/n * abs(meanProbability - observedFraction)); left-closed/right-open bins, final includes 1; empty-bin statistics null, weight zero. Not predicted-class confidence ECE.",
  "binningExample": {
    "predictor": "B",
    "results": [
      {
        "total": 200,
        "edges": [
          0,
          1
        ],
        "ece": 0,
        "bins": [
          {
            "lower": 0,
            "upper": 1,
            "total": 200,
            "positives": 100,
            "forecastSum": 100,
            "meanProbability": 0.5,
            "observedFraction": 0.5,
            "absoluteGap": 0
          }
        ]
      },
      {
        "total": 200,
        "edges": [
          0,
          0.5,
          1
        ],
        "ece": 0.09999999999999999,
        "bins": [
          {
            "lower": 0,
            "upper": 0.5,
            "total": 100,
            "positives": 20,
            "forecastSum": 10,
            "meanProbability": 0.1,
            "observedFraction": 0.2,
            "absoluteGap": 0.1
          },
          {
            "lower": 0.5,
            "upper": 1,
            "total": 100,
            "positives": 80,
            "forecastSum": 90,
            "meanProbability": 0.9,
            "observedFraction": 0.8,
            "absoluteGap": 0.09999999999999998
          }
        ]
      }
    ]
  }
}
