Skip to main content

Sample 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
SAMPLE ONTOLOGY
Kireth Semantic Library | Entity Graph | Mathematical Entities | Statistical Entities
Version: 1.0
Date: 2026-10-13
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/statistical-entities/sample-ontology-2.html

1. PURPOSE
Represent a statistical sample as an explicitly selected collection of observational units or measurements from a defined population, with provenance, sampling design, inference constraints, and machine-readable relationships.

2. TYPED ENTITIES
Population: set of eligible units defined by inclusion criteria and scope.
SamplingFrame: enumerated or operationally accessible set from which units may be selected.
SamplingUnit: selectable element, potentially distinct from the observation unit.
Sample: selected units, allowing multiplicity when sampling with replacement.
SampleMember: a selected unit with selection instance and inclusion metadata.
Observation: measured value associated with a unit, variable and time.
Variable: measurable characteristic with declared scale, domain and units.
SamplingDesign: selection procedure with probability and replacement rules.
SampleSize: number of selected units or selection instances, explicitly distinguished.
Statistic: function of observed sample data.
Estimator: statistic used to estimate a defined population parameter.
PopulationParameter: functional or property of the target population.
SelectionProbability: probability that a unit is included, under a design.
SamplingWeight: weight derived from selection design or adjustment procedure.
MissingnessIndicator: observation availability status and reason when known.

3. FORMAL MODEL
Let U = {u_1,...,u_N} denote a finite population where N is known, or a general measurable population otherwise.
Let F denote the sampling frame and D a sampling design.
A sample S is the result of applying D to F; S may be an ordered sequence or multiset if replacement is allowed.
For sampling without replacement, S is a subset of F and n = |S|.
For a simple random sample without replacement of size n from N eligible units:
  P(S=s) = 1 / C(N,n), for every subset s of size n.
  P(u_i included) = n/N, for each unit in U, provided F=U.
For independent sampling with replacement, selection instances are modelled as a sequence, not necessarily distinct units.
An observed dataset X_S maps selected units and measurement occasions to values, with explicit missingness.
A statistic T = t(X_S) is distinguished from the unknown parameter theta = theta(U).

4. RELATIONSHIPS
Sample --drawn_from--> SamplingFrame
SamplingFrame --covers_part_of--> Population
Sample --generated_by--> SamplingDesign
Sample --contains--> SampleMember
SampleMember --references--> SamplingUnit
Observation --measures--> Variable
Observation --belongs_to--> SampleMember
Statistic --computed_from--> Observation
Estimator --targets--> PopulationParameter
SamplingWeight --associated_with--> SampleMember
SamplingDesign --defines--> SelectionProbability
Sample --has_provenance--> SelectionRecord

5. CORE RULES
R1: If sampling is without replacement, no sampling unit may appear more than once as a selection instance.
R2: If sampling is with replacement, repeated units are permitted and must not be silently deduplicated.
R3: A sample statistic is not identical to the corresponding population parameter.
R4: Representativeness cannot be inferred solely from large sample size.
R5: A probability-sampling claim requires an identifiable random selection mechanism and inclusion probabilities, or a valid design specification from which they can be derived.
R6: Design-based unbiasedness and standard-error calculations require the assumptions of the specified sampling design.
R7: Missing observations, nonresponse, frame coverage and selection bias must be represented separately.
R8: Independence or identical distribution must not be inferred from the label 'sample'.
R9: Inference to a target population requires explicit coverage and transportability assumptions where relevant.

6. MATHEMATICAL INFERENCE
For an IID sample X_1,...,X_n with finite mean mu and variance sigma^2:
  sample_mean = (1/n) sum_i X_i
  E[sample_mean] = mu
  Var(sample_mean) = sigma^2/n
For IID observations with n > 1 and finite variance:
  sample_variance = [1/(n-1)] sum_i (X_i - sample_mean)^2
  E[sample_variance] = sigma^2
For SRS without replacement from a finite population:
  Var(sample_mean) = (1-n/N) S_U^2/n
where S_U^2 = sum_i (x_i-mu_U)^2/(N-1).
These formulas are conditional on their stated assumptions; they are not universal properties of all samples.

7. SEMANTIC DISTINCTIONS
Sample != Population
Sample != SamplingFrame
Sample != Observation
SampleSize != NumberOfDistinctUnits when replacement is permitted
SampleStatistic != PopulationParameter
RandomSample != ConvenienceSample
ProbabilitySample != AutomaticallyRepresentativeSample
SelectionBias != SamplingVariance
MissingData != ExcludedPopulationUnit

8. VALIDATION
V1: Require a stable sample identifier and target population description.
V2: Require sampling design, selection dates, frame provenance and replacement policy, or mark unknown.
V3: Check n >= 0; require n > 0 for statistics needing observations.
V4: Check member IDs, multiplicity, variable definitions and measurement units.
V5: Check inclusion probabilities lie in [0,1] when supplied.
V6: Do not compute weights as inverse probabilities where inclusion probabilities are zero or unknown.
V7: Check estimators and uncertainty calculations against the design assumptions.
V8: Flag coverage gaps, nonresponse, missingness and undocumented exclusions.
V9: Preserve transformations, version history and data lineage.

9. EXECUTION FLOW
INPUT population_definition, sampling_frame, sampling_design, selected_units, observations
  -> TYPE_CHECK entities and relationships
  -> VALIDATE inclusion, selection and replacement constraints
  -> ASSESS frame coverage and missingness
  -> COMPUTE permissible sample statistics
  -> APPLY design-compatible estimators and uncertainty rules
  -> ATTACH assumptions, limitations and provenance
  -> OUTPUT validated_sample_graph, statistics, diagnostics, confidence

10. CONFIDENCE AND SEMANTIC EQUIVALENCE
CONFIDENCE: evidence-dependent; record provenance, frame quality, design disclosure, measurement reliability and missingness. Do not equate a confidence score with a frequentist confidence level.
SEMANTIC_EQUIVALENCE: permit synonym mapping of 'statistical sample' and 'sample of observations' only where unit and selection semantics agree; preserve distinctions among physical specimen, dataset subset and statistical sample.

11. FLOW HASH AND UPDATE MODEL
FLOW_HASH: SHA-256 over a canonical UTF-8 serialisation of ontology ID, version, typed schema, relationships, rules and constraints; calculate at deployment rather than inventing a digest.
UPDATE_MODEL: versioned changes; retain source attribution, timestamps, rule revisions and compatibility notes; invalidate derived statistics when inputs or design assumptions change.

12. AI CONSUMPTION
Expose machine-readable entity types, relation predicates, preconditions, rule IDs, formula assumptions, validation results and provenance.
Do not assert unbiasedness, causality, independence, population coverage or generalisability without evidence.
When assumptions are missing, return 'undetermined' and specify required inputs.

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