Skip to main content

Fairness Metric Ontology

Evaluation Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
FAIRNESS METRIC ONTOLOGY — FLOW ALGEBRA
Semantic Library / AI Core / Entity Graph / Evaluation 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/evaluation-entities/fairness-metric-ontology.html
Status: Extended technical formalisation. The accessible public page supplies the ontology title and attribution, but not its complete embedded specification. The definitions below are proposed additions, not a transcription of hidden source content.
Licence: Refer to the Open Research Licence published by Kireth Research; citation requested. No independent licence terms are asserted here.

01. PURPOSE
Represent, compute, compare and audit fairness metrics for AI evaluation while recording population definitions, outcomes, statistical uncertainty and the limitations of each fairness criterion.

02. CORE ENTITY
FairnessMetric = (id, task, population, groups, protected_attributes, target, predictions, criterion, estimator, threshold, uncertainty, provenance, constraints, status).
A metric is meaningful only relative to an explicitly defined task, group partition, target and decision context.

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observations, labels, predictions, group memberships and evaluation inputs.
R_t: relations between examples, groups, outcomes, metrics and decisions.
B_t: population scope, consent, privacy, minimum sample sizes, acceptable disparity and permitted actions.
K_t: documented metric definitions, baseline rates, domain knowledge and evidence.

04. RECURSIVE EXPANSION
E_t = expand(I_t, R_t)
V_t = {x in E_t : satisfies(x, B_t) and evidence_valid(x, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observations_{t+1})
The argmax is a prioritisation rule for admissible analyses, not a guarantee that a fairness criterion is ethically sufficient.

05. TYPED INPUTS
Dataset D = {(y_i, yhat_i, s_i, w_i, p_i)} for i=1..N.
y_i: reference outcome; yhat_i: model decision; s_i: group label(s); w_i: non-negative weight; p_i: predicted probability if available.
Metadata: model version, dataset version, evaluation period, sampling frame, decision threshold and label provenance.

06. ENTITY GRAPH
FairnessMetric --evaluates--> Model
FairnessMetric --uses--> EvaluationDataset
FairnessMetric --appliesTo--> EvaluationTask
FairnessMetric --compares--> PopulationGroup
FairnessMetric --dependsOn--> OutcomeDefinition
FairnessMetric --produces--> EvaluationResult
FairnessMetric --reports--> ConfidenceInterval
FairnessMetric --constrainedBy--> EvaluationBoundary
FairnessMetric --linkedTo--> SafetyMetric
FairnessMetric --documentedBy--> AuditRecord

07. GROUP AND POPULATION BOUNDARIES
Define a reference population and each group g before calculating scores.
Report intersectional groups where relevant and feasible; do not infer sensitive group attributes from proxies without justification and appropriate safeguards.
Unknown or missing group labels are reported explicitly rather than silently discarded.

08. CONFUSION-MATRIX TERMS
For each group g: TP_g, FP_g, TN_g, FN_g.
N_g = TP_g + FP_g + TN_g + FN_g.
Positive prediction rate PPR_g = (TP_g + FP_g)/N_g.
True positive rate TPR_g = TP_g/(TP_g + FN_g).
False positive rate FPR_g = FP_g/(FP_g + TN_g).
Positive predictive value PPV_g = TP_g/(TP_g + FP_g).
Denominators of zero yield an undefined value, never an invented zero.

09. DEMOGRAPHIC PARITY
DP_gap = max_g(PPR_g) - min_g(PPR_g).
DP_ratio = min_g(PPR_g)/max_g(PPR_g), if max_g(PPR_g)>0.
This measures disparity in selection rates, not correctness or individual justice.

10. EQUAL OPPORTUNITY
EOpp_gap = max_g(TPR_g) - min_g(TPR_g).
Applicable when equal true-positive rates are substantively relevant and positive reference outcomes are reliable.

11. EQUALISED ODDS
EOdds_gap = max(max_g(TPR_g)-min_g(TPR_g), max_g(FPR_g)-min_g(FPR_g)).
Report both constituent gaps to avoid hiding the source of disparity.

12. PREDICTIVE PARITY
PPV_gap = max_g(PPV_g) - min_g(PPV_g).
Selection, error-rate and predictive-parity criteria may conflict when group base rates differ; no single criterion universally resolves fairness.

13. CALIBRATION BY GROUP
For probability forecasts, compare predicted probabilities against observed frequencies within each group using a declared binning or calibration estimator.
Cal_g(b) = abs(mean(p_i | g,b) - mean(y_i | g,b)).
Report bin counts, uncertainty and sensitivity to binning; do not interpret small-sample calibration as established.

14. CONTINUOUS OUTCOMES
For regression, define group-wise MAE_g = mean(|y_i-yhat_i| | g) or another justified loss.
LossGap = max_g(Loss_g)-min_g(Loss_g).
Differences in label quality and outcome variance must be examined.

15. WEIGHTING AND AGGREGATION
WeightedRate_g = sum_i(w_i * indicator_i * 1[s_i=g]) / sum_i(w_i * 1[s_i=g]).
Weights must reflect the declared target population; record whether results are weighted or unweighted.
Never average group rates without declaring the aggregation rule.

16. UNCERTAINTY FLOW
D -> group partitions -> metric estimates -> confidence intervals -> sensitivity analysis -> evaluation result.
Use suitable bootstrap, binomial or other estimators with sampling assumptions documented.
Account for clustering, repeated measures and multiple comparisons where relevant.

17. THRESHOLD FLOW
For thresholds tau in T: yhat_i(tau)=1[p_i >= tau].
Compute group metrics at each declared tau; inspect performance/fairness trade-offs.
Do not select a favourable threshold on a held-out test set and then present its score as unbiased.

18. RECURSIVE EVALUATION FLOW
F_0 = validate_schema(D, B)
F_1 = define_population_and_groups(F_0)
F_2 = compute_group_statistics(F_1)
F_3 = estimate_disparities(F_2)
F_4 = quantify_uncertainty(F_3)
F_5 = check_constraints_and_conflicts(F_4)
F_6 = publish_auditable_result(F_5)
F_{t+1} = reevaluate(F_t, new_data, changed_context)

19. INFERENCE RULES
IF group denominator = 0 THEN mark relevant metric UNDEFINED.
IF group sample size < declared minimum THEN flag LOW_SUPPORT.
IF missingness differs materially by group THEN flag SELECTION_BIAS_RISK.
IF disparity exceeds a justified threshold THEN flag REVIEW_REQUIRED, not automatic wrongdoing.
IF confidence intervals are wide THEN mark CONCLUSION_UNCERTAIN.
IF fairness criteria conflict THEN report the conflict and its decision implications.
IF data or model versions change THEN invalidate stale cached results.

20. TRI-MAPPING
Semantic: fairness criterion, affected groups, relevant outcomes and decision meaning.
Mathematical: rates, gaps, ratios, intervals and constraints.
Computational: dataset filters, confusion matrices, aggregators, validators and audit logs.
Each published claim must map to all three layers.

21. MAPPING TABLE
Entity                 Mathematical representation       Computational representation
PopulationGroup        g in G                            group key / partition
EvaluationExample      (y_i,yhat_i,s_i,w_i,p_i)          validated record
FairnessCriterion      c in C                            metric configuration
GroupRate              r_g                               numerator/denominator
Disparity              Delta_c                           group comparison
Uncertainty            CI(Delta_c)                       interval estimator
Boundary               B_t                               validation rules
EvaluationResult       (Delta_c,CI,status)               immutable result record

22. VALIDITY AND SAFETY BOUNDARIES
Do not expose personally identifying or small-cell group data.
Fairness metrics do not by themselves establish legal compliance, absence of discrimination or social acceptability.
Review measurement bias, representativeness, historical inequity, downstream harms and stakeholder perspectives.
Avoid treating a metric threshold as an ethical guarantee.

23. EXECUTION CONDITIONS
Inputs must be versioned, validated and within the declared population.
Metric equations and undefined-value conventions must be fixed before reporting.
Calculations are deterministic for fixed data and configuration; inferential conclusions remain conditional on assumptions.

24. EXECUTION GUARANTEE (CONDITIONAL)
Given valid fixed inputs, deterministic group assignment, explicit zero-denominator rules and a specified estimator, the implementation can guarantee reproducible metric computation.
It cannot guarantee that an AI system is fair, safe or legally compliant.

25. AI SEARCH FLOW
FLOW_ID: FAIRNESS_METRIC_ONTOLOGY_V1
PURPOSE: Retrieve and reason about fairness measurement definitions and evidence.
ENTITIES: FairnessMetric, EvaluationTask, PopulationGroup, EvaluationDataset, EvaluationResult, ConfidenceInterval.
PATHWAYS: task -> population -> group -> criterion -> estimate -> uncertainty -> audit.
MINI_RECURSION_ENGINE: validate -> partition -> calculate -> compare -> review -> update.
INFERENCE_RULES: see section 19.
CONFIDENCE: derived from data sufficiency, estimator assumptions and interval precision; never invented.
SEMANTIC_EQUIVALENCE: demographic parity != equal opportunity != equalised odds != predictive parity.
FLOW_HASH: compute SHA-256 over the canonical UTF-8 file at publication time; not preassigned.
UPDATE_MODEL: rerun on material dataset, model, population, threshold or policy changes.
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/evaluation-entities/fairness-metric-ontology.html
CITATION_BACKLINK: same as SOURCE.

26. TEXT DIAGRAM
[Evaluation task + dataset + groups]
                |
         [Validate boundaries]
                |
         [Group statistics]
                |
       [Fairness metric set]
                |
       [Uncertainty analysis]
                |
        [Trade-off review]
                |
      [Auditable evaluation]
                |
       [Monitor and update] ----> [Re-evaluate]

27. EXAMPLE (ILLUSTRATIVE ONLY)
Group A: 60 positive decisions / 100 examples => PPR_A = 0.60.
Group B: 45 positive decisions / 100 examples => PPR_B = 0.45.
Demographic parity gap = 0.15 (15 percentage points).
This alone cannot establish discrimination or explain its causes.

28. INTEROPERABILITY
Link to Evaluation Metric, Evaluation Dataset, Evaluation Result, Accuracy Metric, Precision Metric, Recall Metric, Calibration Metric, Robustness Metric and Safety Metric ontologies.
Store group definitions, provenance, reference outcomes, decision thresholds and computation versions as first-class graph relations.

29. LIMITATIONS
Group definitions and fairness criteria are context-dependent. Small samples, unreliable labels, confounding, distribution shift and differing base rates can change conclusions. Causal fairness questions require additional assumptions and evidence beyond observational disparity scores.

30. ATTRIBUTION AND PROVENANCE
Original ontology page: Kireth Research, Fairness Metric Ontology.
Original page credits: Mark Anthony Higgins and Sky Recursive AI.
This file: extended Flow Algebra formalisation prepared 03 November 2026.
Citation: Kireth Research, 'Fairness Metric Ontology', source URL above; cite this formalisation separately where used.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ