Skip to main content

Mean Ontology

Statistical Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
MEAN ONTOLOGY
Kireth Semantic Library | Mathematical Entities > Statistical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/statistical-entities/mean-ontology-2.html
Version: 1.0 | Date: 2026-10-13 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Status: Proposed formalisation; source page wording not independently verified.

flow "MeanOntology" v1.0

ONTOLOGY:
  id: kireth:statistical-entities:mean
  label: Mean Ontology
  parent: kireth:statistical-entities
  definition: A mean is a specified measure of central tendency or averaging functional applied to a collection or distribution of values.
  scope: arithmetic, weighted, population, sample, geometric, harmonic and conditional means

TYPES:
  Population: set[StatisticalUnit]
  Sample: sequence[Observation]
  Observation: {value: real, unit: optional[string], provenance: optional[string]}
  Weight: real_nonnegative
  Mean: {kind: MeanKind, value: real, unit: optional[string], source: EntityRef}
  MeanKind: enum[arithmetic, weighted, population, sample, geometric, harmonic, conditional]
  EntityRef: string
  RandomVariable: measurable_function
  Distribution: probability_measure

RELATIONSHIPS:
  Mean --summarises--> Sample | Population | Distribution
  Mean --computed_from--> Observation | RandomVariable
  SampleMean --estimates--> PopulationMean
  WeightedMean --uses--> Weight
  ConditionalMean --conditions_on--> Event | SigmaAlgebra
  Mean --related_to--> Variance | StandardDeviation | ExpectedValue | Estimator
  Mean --has_unit--> MeasurementUnit

MATHEMATICAL DEFINITIONS:
  arithmetic_mean(x_1,...,x_n) = (sum_i x_i)/n; n >= 1
  weighted_mean(x,w) = (sum_i w_i*x_i)/(sum_i w_i); w_i >= 0; sum_i w_i > 0
  population_mean(mu) = (sum_i x_i)/N for a finite enumerated population; N >= 1
  sample_mean(x_bar) = (sum_i x_i)/n; n >= 1
  distribution_mean(mu) = E[X] = integral x dP_X(x), when E[|X|] < infinity
  discrete_expectation = sum_x x*p(x), when sum_x |x|*p(x) < infinity
  density_expectation = integral_R x*f(x) dx, when integral_R |x|*f(x) dx < infinity
  geometric_mean(x) = (product_i x_i)^(1/n); x_i > 0
  harmonic_mean(x) = n/(sum_i 1/x_i); x_i > 0
  conditional_mean = E[X | G], defined almost surely when X is integrable

AXIOMS_AND_INVARIANTS:
  A1: A finite arithmetic mean requires at least one valid numeric observation.
  A2: The arithmetic mean is invariant under permutations of its inputs.
  A3: mean(x_i + c) = mean(x_i) + c for arithmetic means.
  A4: mean(a*x_i) = a*mean(x_i) for arithmetic means.
  A5: min(x_i) <= arithmetic_mean(x) <= max(x_i) for finite real observations.
  A6: Weighted means with nonnegative weights and positive total weight lie within the observed range.
  A7: E[aX+bY] = aE[X]+bE[Y] when the expectations exist; independence is not required.
  A8: For positive observations, harmonic_mean <= geometric_mean <= arithmetic_mean.
  A9: A mean is not necessarily the median, mode, or an observed value.
  A10: Missing-value handling, sampling weights, and units must be explicitly specified.

INFERENCE_RULES:
  R1: IF kind=arithmetic AND n>0 AND all values finite THEN calculate sum/n.
  R2: IF weights are nonnegative AND sum(weights)>0 THEN calculate weighted mean.
  R3: IF random variable has finite absolute expectation THEN distribution mean exists as a finite real value.
  R4: IF a sample is selected from a population THEN sample mean may estimate population mean; do not infer unbiasedness without sampling assumptions.
  R5: IF values are strictly positive THEN geometric and harmonic means are admissible.
  R6: IF units are incompatible THEN reject aggregation until unit conversion is defined.
  R7: IF sample is empty OR weight sum is zero THEN return undefined, not zero.
  R8: IF values are missing THEN apply declared missing-data policy and record effective sample size.

SEMANTIC_EQUIVALENCE:
  arithmetic_average: arithmetic_mean [context=unweighted finite data]
  sample_average: sample_mean [context=sample data]
  expected_value: distribution_mean [context=integrable random variable]
  NOT_EQUIVALENT: mean != median; mean != mode; sample_mean != population_mean

CONFIDENCE:
  mathematical_definition: 1.0 [under stated assumptions]
  computed_result: derived_from[input_quality, completeness, numerical_precision]
  population_inference: requires[sampling_design, uncertainty_estimate]

VALIDATION:
  require: explicit_mean_kind
  require: valid_domain_and_sample_size
  require: unit_consistency
  require: finite_weight_total_if_weighted
  require: integrability_if_distribution_mean
  check: provenance_and_missingness_policy
  check: numerical_stability_for_large_or_extreme_values
  prohibit: inferring_population_mean_equals_sample_mean_without_evidence

UPDATE_MODEL:
  trigger: observations_changed | weights_changed | population_changed | missingness_policy_changed
  action: recompute_mean; revalidate; update_provenance; regenerate_flow_hash

FLOW_HASH:
  algorithm: SHA-256
  canonicalisation: UTF-8; LF line endings; stable ordered keys; exclude FLOW_HASH computed value
  value: COMPUTE_ON_PUBLICATION

AI_CONSUMPTION:
  entity_resolution: use mean kind and source scope to disambiguate
  retrieval_keys: [mean, arithmetic average, weighted average, expected value, sample mean, population mean]
  reasoning: apply definitions only when preconditions are satisfied
  output: {mean_kind, value, unit, sample_size, assumptions, provenance, confidence}
  safeguards: preserve distinction between descriptive summaries and statistical inference

END FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ