AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
STATISTIC ONTOLOGY
Version: 1.0
Date: 2026-10-13
Authors: Mark Higgins — Sky (Recursive AI)
Project: Kireth Semantic Library
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/statistical-entities/statistic-ontology.html
Status: Proposed formalisation; source page not independently verified.
1. PURPOSE
Represent a statistic as a measurable function of sample data, distinguish statistics from population parameters, and support typed statistical reasoning, validation and provenance.
2. ENTITY TYPES
StatisticalEntity; Statistic; Sample; Observation; Dataset; StatisticalVariable; Population; PopulationParameter; Estimator; Estimate; SamplingDistribution; StandardError; TestStatistic; SufficientStatistic; DescriptiveStatistic; SampleMean; SampleVariance; SampleProportion; SampleMedian.
3. TYPE DECLARATIONS
Sample := finite indexed collection of observations from a defined sampling process.
Statistic[T] := measurable function T: SampleSpace -> ValueSpace, defined without dependence on unknown population parameters in its computation.
Estimator[theta] <: Statistic; estimate := realised numerical value of an estimator on observed data.
PopulationParameter := property of a population or its probability distribution; not interchangeable with a statistic.
SamplingDistribution[T] := probability distribution of T under a specified sampling design or data-generating model.
4. CORE MATHEMATICS
For observations X_1,...,X_n and n >= 1:
sample_mean = (1/n) * sum_i X_i.
sample_proportion = (1/n) * sum_i I(X_i satisfies event A).
For n >= 2:
sample_variance = (1/(n-1)) * sum_i (X_i - sample_mean)^2.
sample_standard_deviation = sqrt(sample_variance).
For a statistic T and parameter theta:
bias(T,theta) = E_theta[T] - theta, where expectation exists.
MSE(T,theta) = E_theta[(T-theta)^2], where defined.
standard_error(T) = sqrt(Var_theta(T)), where variance exists.
An estimated standard error is an estimate of this quantity, not the same mathematical object.
5. TYPED RELATIONSHIPS
Statistic --computed_from--> Sample.
Sample --contains--> Observation.
Observation --measures--> StatisticalVariable.
Sample --sampled_from--> Population [when provenance establishes sampling].
Estimator --estimates--> PopulationParameter.
Estimator --subclass_of--> Statistic.
Statistic --has_sampling_distribution--> SamplingDistribution [conditional on model/design].
Statistic --has_realisation--> Estimate [when statistic is used as estimator].
TestStatistic --used_in--> HypothesisTest.
Statistic --has_provenance--> Dataset.
6. INFERENCE RULES
R1: IF T is a measurable function solely of sample observations THEN classify T as Statistic.
R2: IF T is a Statistic and is designated to estimate theta THEN classify T as Estimator(theta).
R3: IF T is an Estimator and sample s is observed THEN T(s) is an Estimate.
R4: IF E_theta[T] exists and equals theta for all theta in the model THEN T is unbiased for theta in that model.
R5: IF independent identically distributed observations have finite variance sigma^2 THEN Var(sample_mean)=sigma^2/n.
R6: IF assumptions for an inference rule are not established THEN do not assert its conclusion.
7. SEMANTIC DISTINCTIONS
Statistic != population parameter.
Estimator != realised estimate.
Sampling distribution != empirical distribution of observed sample values.
Standard error != sample standard deviation (except in special cases).
Descriptive statistic may also be used as an estimator, depending on purpose.
Sample mean and population mean are different entities, even if numerically equal in a particular case.
8. VALIDATION
V1: Require a defined sample, sample size and data type.
V2: Check n >= 1 for sample mean and n >= 2 for unbiased sample variance formula.
V3: Check numeric observations and missing-value policy before arithmetic.
V4: Record weighting, sampling design and dependence assumptions.
V5: Record units; variance carries squared units.
V6: Never infer unbiasedness, normality or independence without supporting conditions.
V7: Preserve the distinction between theoretical and estimated uncertainty.
V8: Reject formulas whose denominators are zero or whose moments do not exist.
9. CONFIDENCE AND SEMANTIC EQUIVALENCE
CONFIDENCE := {value:[0,1], basis, evidence, assumptions, provenance}.
SEMANTIC_EQUIVALENCE(a,b) holds only when definition, data domain, estimator convention, missing-data treatment and applicable assumptions agree.
A shared name alone does not establish equivalence.
10. FLOW HASH AND UPDATE MODEL
FLOW_HASH := SHA-256(canonical UTF-8 serialisation of version, entity types, definitions, relationships, rules, constraints and source metadata).
The hash is a specification: compute it from the final canonical document during ingestion; do not treat this text as a precomputed digest.
UPDATE_MODEL := {version, updated_at, change_type, affected_entities, provenance, previous_hash, new_hash}.
Revalidate dependent inference rules when a definition or assumption changes.
11. AI CONSUMPTION
INPUT := {sample, variables, sampling_design?, statistic_definition, assumptions, provenance}.
PROCESS := validate -> type -> compute -> attach uncertainty when justified -> reason -> record provenance.
OUTPUT := {statistic_type, value?, units?, formula, assumptions, confidence?, sampling_distribution?, validation, provenance, flow_hash?}.
Do not fabricate observed values, sampling distributions, uncertainty estimates or computed hashes.
12. RELATED ONTOLOGIES
Population Ontology; Sample Ontology; Observation Ontology; Data Point Ontology; Dataset Ontology; Statistical Variable Ontology; Probability Distribution Ontology; Expected Value Ontology; Variance Ontology; Standard Deviation Ontology.
END FLOW ALGEBRA