AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
OBSERVATION ONTOLOGY
Kireth Semantic Library | Mathematical Entities > Statistical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/statistical-entities/observation-ontology.html
Version: 1.0 | Date: 2026-10-13
Authors: Mark Higgins — Sky (Recursive AI)
1. PURPOSE
Represent statistical observations as typed, traceable records of measured, counted, classified or otherwise recorded variables associated with observational units. Distinguish an observation from the underlying unit, the variable, the value and the observation process.
2. ENTITY TYPES
Observation(id, unit_id, variable_id, value, timestamp?, source_id?, status)
ObservationalUnit(id, population_id?, attributes?)
StatisticalVariable(id, domain, scale, unit_of_measure?)
ObservedValue(value, datatype, unit_of_measure?)
Dataset(id, schema, provenance?)
MeasurementProcess(id, method, instrument?, protocol?)
Missingness(status, reason?)
Uncertainty(model?, interval?, standard_error?)
3. TYPED RELATIONSHIPS
Observation --OBSERVES--> StatisticalVariable
Observation --DESCRIBES--> ObservationalUnit
Observation --HAS_VALUE--> ObservedValue
Observation --BELONGS_TO--> Dataset
Observation --PRODUCED_BY--> MeasurementProcess
Observation --HAS_PROVENANCE--> Source
Observation --HAS_MISSINGNESS--> Missingness
Observation --HAS_UNCERTAINTY--> Uncertainty
ObservationalUnit --MEMBER_OF--> Population
4. FORMAL SEMANTICS
Let U be a set of observational units, V a set of variables, and D_v the domain of variable v.
An observation o is a record (u, v, x, m), where u in U, v in V, x in D_v or x is explicitly missing, and m is metadata.
A dataset is a collection of such records; repeated observations of the same unit and variable are permitted when distinguished by time, trial or replicate identifier.
The recorded x is not necessarily the latent true quantity being studied.
5. AXIOMS AND INVARIANTS
A1: Each valid observation identifies an observational unit and variable, or explicitly declares a documented aggregate/anonymous design.
A2: A non-missing value conforms to its variable's declared domain and measurement scale.
A3: Units of measure are compatible with the variable definition when applicable.
A4: Missing values are represented distinctly from numeric zero and categorical 'none'.
A5: Replicates and repeated measures retain distinct identifiers or contextual keys.
A6: Provenance and corrections preserve auditability.
A7: Observational association alone does not establish causation.
6. OPERATORS
record(u,v,x,m) -> Observation
validate(o,schema) -> ValidationResult
filter(D,predicate) -> Dataset
project(D,variables) -> Dataset
group(D,keys) -> GroupedDataset
aggregate(D,statistic,grouping) -> SummaryStatistic
impute(D,method,assumptions) -> DerivedDataset
correct(o,new_value,reason) -> VersionedObservation
7. INFERENCE RULES
R1: IF o.variable=v AND o.value=x AND x conforms_to domain(v), THEN o is type_consistent.
R2: IF o.value is missing, THEN do not infer a numerical value without an explicit imputation method.
R3: IF two observations share unit and variable but differ in time, THEN classify as repeated measurements, subject to design metadata.
R4: IF an observation is produced by an instrument, THEN propagate instrument provenance into downstream derived statistics.
R5: IF an aggregate is computed from observations, THEN link it to its input records and aggregation rule.
R6: IF sampling design is unknown, THEN do not infer population representativeness.
8. STATISTICAL CONNECTIONS
For numeric observed values x_1,...,x_n:
Sample mean: x_bar = (1/n) sum_i x_i, n > 0.
Sample variance: s^2 = [1/(n-1)] sum_i (x_i-x_bar)^2, n > 1.
An observation contributes to a statistic only when eligible under the analysis plan, including missingness and weighting rules.
An observed value, an estimate, a population parameter and a prediction are separate entity types.
9. SEMANTIC DISTINCTIONS
Observation != observational unit.
Observation != variable.
Observation != underlying true state.
Observation != statistical estimate.
Observation != experiment; an experiment can generate observations.
Missing observation != observed zero.
Correlation in observations != causal effect.
10. VALIDATION
CHECK unique observation identity within dataset.
CHECK declared value datatype and domain.
CHECK timestamp format and temporal consistency when present.
CHECK units and measurement scale.
CHECK missingness coding and reason if available.
CHECK provenance, version history and transformation lineage.
CHECK privacy and access constraints for identifiable observational units.
11. CONFIDENCE AND PROVENANCE
CONFIDENCE: represent evidence quality, measurement reliability and uncertainty separately; never fabricate numeric confidence.
PROVENANCE: record dataset identifier, collection method, instrument, source, date and transformation history where known.
12. SEMANTIC EQUIVALENCE
Equivalent observation records require matching unit, variable, value semantics, time/replicate context and compatible provenance; equal numeric values alone do not imply equivalent observations.
Aliases: statistical record, recorded measurement (context-dependent).
13. FLOW HASH
FLOW_HASH = SHA256(canonical_utf8(flow_body_without_hash_field))
Canonicalisation must be deterministic and documented; compute hash after final content is frozen. No uncomputed digest is asserted here.
14. UPDATE MODEL
On correction: preserve prior record version, timestamp the revision, cite reason and recompute affected derived statistics and flow hash.
On schema change: validate compatibility and migrate with explicit mapping.
15. AI CONSUMPTION
Expose typed entities and predicates; retain measurement context and missingness; distinguish observation from inference; require provenance-aware retrieval; report uncertainty and limitations; prohibit causal claims from observational records alone.
END FLOW ALGEBRA