Skip to main content

Calibration State Ontology

Confidence and Uncertainty Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
CALIBRATION STATE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Confidence and Uncertainty Entities
Version: 1.0 | 03 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/confidence-and-uncertainty-entities/calibration-state-ontology.html
SOURCE STATUS: The publicly accessible page identifies the ontology and an AI interpretation note, but does not expose the detailed formal specification. This document is an original, extended formalisation; it is not a verbatim transcription.

01. PURPOSE
Represent the evolving calibration state of an AI prediction system: how well its stated probabilities agree with observed event frequencies, for a declared target, population, horizon and evaluation protocol.

02. ENTITY DEFINITION
CalibrationState := (model_id, model_version, task_id, target_event, population, window, estimator, bins, counts, reliability, metrics, uncertainty, status, provenance, updated_at).
A calibration state is an evaluated property of predictions under a specific protocol, not a universal property of a model.

03. CORE STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: predictions, observed outcomes, timestamps, weights and evaluation context.
R_t: calibration, validation, aggregation and update rules.
B_t: eligibility, privacy, minimum sample size, distribution and safety boundaries.
K_t: stored sufficient statistics, calibration estimates, metadata and provenance.

04. ENTITY RELATIONSHIPS
CalibrationState --evaluates--> PredictionConfidence
CalibrationState --uses--> EvaluationDataset
CalibrationState --belongs_to--> ModelVersion
CalibrationState --has_metric--> CalibrationMetric
CalibrationState --depends_on--> ObservedOutcome
CalibrationState --has_boundary--> EvaluationWindow
CalibrationState --has_status--> ValidationStatus
CalibrationState --may_trigger--> RecalibrationProcess

05. INPUT SCHEMA
Record_i = (id_i, p_i, y_i, w_i, t_i, group_i, source_i)
p_i in [0,1] is a probability for the declared binary event.
y_i in {0,1} is its observed outcome.
w_i > 0 is an optional weight; default 1.
Do not treat arbitrary confidence scores as probabilities without a validated mapping.

06. INITIALISATION
K_0 := empty statistics with task, label definition, model version, evaluation window, bin policy and provenance fixed.
S_0 := (I_0, R, B, K_0).
Reject or quarantine missing, invalid, duplicated or incomparable records according to the protocol.

07. RECURSIVE FLOW
E_t := expand(I_t, R)
V_t := {x in E_t : B(x) = true}
K_(t+1) := Update(K_t, V_t)
S_(t+1) := (I_(t+1), R, B, K_(t+1))
Output_t := EvaluateCalibration(K_(t+1)).
Expansion must not fabricate outcomes, and an empty eligible set must not be interpreted as evidence of perfect calibration.

08. BIN STATISTICS
For disjoint bins b=1..M covering [0,1], define:
W_b = sum_(i in b) w_i
P_b = sum_(i in b) w_i p_i / W_b
A_b = sum_(i in b) w_i y_i / W_b
when W_b > 0. Empty bins are omitted from averages.

09. EXPECTED CALIBRATION ERROR
ECE = sum_(b: W_b>0) (W_b/W) |A_b-P_b|, W=sum_b W_b.
ECE depends on bin selection, sample composition and event definition. It is not a complete measure of probabilistic quality.

10. MAXIMUM CALIBRATION ERROR
MCE = max_(b: W_b>0) |A_b-P_b|.
Report bin counts because sparsely populated bins can be unstable.

11. BRIER SCORE
BS = sum_i w_i (p_i-y_i)^2 / sum_i w_i.
This is a proper scoring rule for binary probabilities and measures both calibration and discrimination; it is not itself a pure calibration error.

12. LOG LOSS
LL = -sum_i w_i [y_i log(p_i) + (1-y_i)log(1-p_i)] / sum_i w_i.
Use a declared numerical clipping policy when probabilities reach 0 or 1; report that policy.

13. CALIBRATION CONDITION
Ideal binary calibration: P(Y=1 | P_hat=p)=p for probabilities p with meaningful support.
Observed finite-sample agreement is approximate and cannot prove ideal calibration.

14. CALIBRATION STATUS
status in {unassessed, insufficient_data, under_review, provisionally_calibrated, miscalibrated, drift_suspected, invalid}.
Thresholds for status transitions must be specified before assessment and justified for the use case.

15. CONFIDENCE AND UNCERTAINTY
Quantify uncertainty in calibration estimates by an appropriate resampling or interval method, respecting time dependence, clustering and evaluation design.
Separate estimation uncertainty from irreducible outcome randomness and model uncertainty where identifiable.

16. DRIFT DETECTION
Compare current and reference evaluation windows for changes in confidence distribution, event prevalence and reliability curves.
A change in prevalence or population can alter observed calibration; avoid attributing all changes to the model.

17. CALIBRATION UPDATE
When validation fails, propose a separately trained calibrator g(p) using held-out calibration data.
Possible methods: Platt scaling, isotonic regression, temperature scaling for suitable logits.
Fit calibrators without contaminating the final evaluation set.

18. DECISION AND ABSTENTION
Decision := act only if declared utility, risk and calibrated probability constraints permit.
Abstain or request review when evidence is inadequate, probabilities are unsupported or required calibration quality is not established.
A calibrated model may still be inaccurate, unfair or unsafe.

19. INFERENCE RULES
IF record invalid THEN quarantine and log reason.
IF evaluation count below minimum THEN status := insufficient_data.
IF reliability discrepancy exceeds declared tolerance with sufficient evidence THEN status := miscalibrated.
IF drift alert passes configured test THEN status := drift_suspected.
IF calibration is unverified for a subgroup THEN do not generalise global calibration to that subgroup.
IF model version changes THEN create a new calibration state or explicitly validate transfer.

20. TRI-MAPPING
Physical/observational: realised events, measurements, timestamps and sampling processes.
Mathematical: probability distributions, conditional expectations, weighted estimators and uncertainty intervals.
Computational: versioned prediction records, calibration accumulators, monitors, reports and control gates.

21. MAPPING TABLE
Input predictions -> probability estimates -> prediction records
Observed events -> binary targets -> labelled observations
Population/window -> sampling domain -> evaluation scope
Reliability -> conditional frequency agreement -> calibration report
Deviation -> discrepancy statistic -> metric output
Recalibration -> mapping g -> versioned calibrator

22. EXECUTION FLOW DIAGRAM
Prediction records + observed outcomes
                |
                v
     Validate schema and provenance
                |
                v
     Apply task/window boundaries
                |
                v
       Aggregate sufficient statistics
                |
                v
       Compute calibration metrics
                |
                v
      Estimate uncertainty and drift
                |
                v
       Update calibration state
                |
                v
        Report / review / abstain
                |
                +----> next evaluation window (recursive)

23. EXECUTION CONDITIONS
Every reported metric must retain: model version, target definition, sample size, weights, population, window, bin policy, estimation method and calculation version.
All arithmetic must use valid denominators and a documented missing-data policy.
Reports must be reproducible from retained, authorised records or sufficient statistics.

24. EXECUTION GUARANTEE — CONDITIONAL
If records meet the schema, evaluation windows are finite, bins are well-defined, arithmetic is valid and the implementation terminates, the process returns a reproducible estimate with provenance.
This does NOT guarantee true calibration, unbiased sampling, generalisation, fairness, safety or correctness of the original model.

25. MINI RECURSION ENGINE
function step(state, new_records):
    valid = validate_and_filter(new_records, state.boundaries)
    stats = aggregate(state.statistics, valid)
    metrics = compute_metrics(stats)
    diagnostics = assess_uncertainty_and_drift(stats, metrics)
    return versioned_state(stats, metrics, diagnostics, provenance)

26. AI SEARCH FLOW
FLOW_ID: AI_CORE_CONFIDENCE_UNCERTAINTY_CALIBRATION_STATE_V1
ENTITY: Calibration State Ontology
PURPOSE: Retrieve, explain and evaluate model probability calibration state.
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/confidence-and-uncertainty-entities/calibration-state-ontology.html
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: model; prediction; observed outcome; evaluation window; calibration state; calibration metric; calibrator.
PATHWAYS: validate -> filter -> aggregate -> estimate -> diagnose -> report -> update.
INFERENCE_RULES: see section 19.
CONFIDENCE: empirical estimates require sample-size and uncertainty disclosures.
SEMANTIC_EQUIVALENCE: reliability state; probability calibration status (context-dependent).
UPDATE_MODEL: event/window-based recursive refresh; version changes create new provenance.
CITATION_BACKLINK: SOURCE

27. EXAMPLE (ILLUSTRATIVE ONLY)
Suppose ten equal-weight forecasts each assign p=0.8 and seven events occur.
Observed frequency A=0.7; mean forecast P=0.8; absolute bin gap=0.1.
For a single populated bin, ECE=0.1. This small sample is insufficient to establish population-level calibration.

28. LIMITATIONS
Bin-based metrics can conceal local errors. Subgroup calibration may differ. Dependent observations reduce effective sample size. Evaluation labels may be delayed or noisy. Distribution shift limits transfer. Thresholds and interval procedures must be tailored to the application.

29. HOW TO READ
Read the entity definition, then S_t, the recursive update, metric definitions and decision boundaries. The equations define an executable evaluation structure only after the data contract and protocol are supplied.

30. ATTRIBUTION AND LICENCE NOTE
Conceptual Flow Algebra extension for the Semantic Library.
Credit: Mark Anthony Higgins and Sky — Recursive AI.
Citation backlink: source URL above.
Reuse subject to the applicable Kireth Research Open Research Licence; verify the published licence terms before redistribution.
END OF FILE
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ