Skip to main content

Sample Space Ontology

Probability Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
TITLE: Sample Space Ontology
VERSION: 1.0
DATE: 2026-10-13
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/probability-entities/sample-space-ontology-3.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library | https://kirethresearch.org

1. PURPOSE
Model the sample space of a random experiment as a typed set of possible elementary outcomes, together with its relationships to events, sigma-algebras and probability measures. Distinguish outcome membership from event membership and distinguish discrete, continuous and product sample spaces.

2. TYPE SYSTEM
entity RandomExperiment {id: Identifier; description: Text}
entity SampleSpace {id: Identifier; experiment: RandomExperiment; outcomes: Set<Outcome>; cardinality: Cardinality}
entity Outcome {id: Identifier; experiment: RandomExperiment}
entity Event {id: Identifier; sample_space: SampleSpace; subset: Set<Outcome>}
entity SigmaAlgebra {id: Identifier; sample_space: SampleSpace; events: Set<Event>}
entity ProbabilityMeasure {id: Identifier; domain: SigmaAlgebra; codomain: [0,1]}
entity RandomVariable {id: Identifier; domain: SampleSpace; codomain: MeasurableSpace}
entity ProductSampleSpace {factors: Sequence<SampleSpace>; outcomes: CartesianProduct}
entity MeasurableSpace {underlying_set: Set; sigma_algebra: SigmaAlgebra}

3. CORE SEMANTICS
sample_space_of(Omega,E) := Omega.experiment = E
possible_outcome(omega,Omega) := omega in Omega.outcomes
represents_event(A,Omega) := A.subset subseteq Omega.outcomes
empty_event(Omega) := empty_set
certain_event(Omega) := Omega.outcomes
complement(A,Omega) := Omega.outcomes \ A.subset
union(A,B) := A.subset union B.subset
intersection(A,B) := A.subset intersection B.subset
mutually_exclusive(A,B) := intersection(A,B) = empty_set
exhaustive(events,Omega) := union_all(events) = Omega.outcomes

4. AXIOMS AND INVARIANTS
A1: Every random experiment has a specified sample space for a given model.
A2: Each realised elementary outcome belongs to the model's sample space.
A3: Every event is a subset of the sample space; a probabilistic event must also be measurable.
A4: Sigma-algebra F contains empty_set and Omega, and is closed under complements and countable unions.
A5: A probability measure P:F -> [0,1] satisfies P(Omega)=1 and countable additivity on pairwise disjoint events.
A6: For finite Omega, |Omega| >= 1 for a nondegenerate experiment; an empty sample space cannot carry a probability measure with P(Omega)=1.
A7: No uniform probability distribution over an infinite countable sample space can assign the same strictly positive mass to every outcome.
A8: An uncountable sample space does not imply that every subset is measurable.

5. MATHEMATICAL OPERATIONS
finite_space(E, outcomes) -> SampleSpace
countable_space(E, indexed_outcomes) -> SampleSpace
continuous_space(E, domain, F) -> MeasurableSpace
product_space(Omega_1,...,Omega_n) -> Omega_1 x ... x Omega_n
project(product_outcome,i) -> factor_outcome_i
partition(Omega,{A_i}) requires pairwise_disjoint({A_i}) and union_all({A_i})=Omega
pushforward(X,P)(B) := P({omega in Omega | X(omega) in B}) for measurable B

6. TYPED RELATIONSHIPS
RandomExperiment --HAS_SAMPLE_SPACE--> SampleSpace
SampleSpace --CONTAINS_OUTCOME--> Outcome
Event --SUBSET_OF--> SampleSpace
SigmaAlgebra --DEFINED_ON--> SampleSpace
SigmaAlgebra --CONTAINS_MEASURABLE_EVENT--> Event
ProbabilityMeasure --DEFINED_ON--> SigmaAlgebra
RandomVariable --MAPS_FROM--> SampleSpace
ProductSampleSpace --COMPOSED_OF--> SampleSpace
Outcome --REALISATION_OF--> RandomExperiment

7. INFERENCE RULES
R1: omega in A and A subseteq Omega => omega in Omega.
R2: A subseteq B and B subseteq Omega => A subseteq Omega.
R3: A and B in F => A union B, A intersection B, Omega\A in F.
R4: A,B in F and A intersection B = empty_set => P(A union B)=P(A)+P(B).
R5: A subseteq B and A,B in F => P(A)<=P(B).
R6: finite Omega and equiprobable outcomes => P(A)=|A|/|Omega|; never infer equiprobability from finiteness alone.
R7: independent experiments with sample spaces Omega_i => joint outcome space can be product(Omega_i); independence of measures is an additional assumption.
R8: X measurable and B measurable in codomain => X^-1(B) in F.

8. SEMANTIC DISTINCTIONS
SampleSpace != Event: the sample space is the universe of outcomes; an event is a measurable subset.
Outcome != Event: an outcome is an elementary result; its singleton may be an event only when measurable.
SampleSpace != ProbabilityDistribution: a set of possible outcomes does not determine probabilities.
Discrete != Finite: discrete sample spaces may be countably infinite.
Continuous != Uniform: continuity of outcomes does not imply a uniform distribution.
Independence != CartesianProduct: a product outcome representation alone does not establish statistical independence.

9. VALIDATION
V1: Validate unique identifiers and experiment references.
V2: Validate each outcome belongs to the declared sample space.
V3: Validate each event is a subset of Omega and belongs to F when probabilities are assigned.
V4: Validate sigma-algebra closure where decidable; otherwise require a mathematical proof or recognised construction.
V5: Validate P(Omega)=1, nonnegativity and additivity where testable; finite checks do not establish countable additivity in general.
V6: Validate probability expressions only for measurable events.
V7: Record assumptions about finite/countable/uncountable spaces and equiprobability explicitly.

10. CONFIDENCE AND PROVENANCE
CONFIDENCE: Mathematical axioms and theorems = deductive when assumptions hold; model-specific assumptions and inferred empirical probabilities require separate evidence.
PROVENANCE: Record source, modelling decisions, experiment specification, event definitions and probability model version.

11. SEMANTIC_EQUIVALENCE
Equivalent sample-space representations require a specified bijection preserving the intended measurable/probabilistic structure where relevant. Equal cardinality alone does not imply equivalence of probability spaces.

12. FLOW_HASH
FLOW_HASH := SHA256(canonical_utf8(normalise(entity_types, axioms, relations, inference_rules, assumptions, version)))
Hash is a reproducibility recipe, not a precomputed digest; stable canonicalisation and ordering are required.

13. UPDATE_MODEL
On revision: increment version; record changed outcomes, sigma-algebra, measures and assumptions; revalidate dependent events, random variables and inference chains; regenerate FLOW_HASH.

14. AI_CONSUMPTION
input: {experiment, sample_space, outcome_definitions, event_family?, sigma_algebra?, probability_measure?, assumptions?}
process: [type_check, validate_membership, validate_measurability, apply_sound_rules, record_provenance]
output: {typed_entities, relationships, derived_claims, assumptions, confidence, validation_report, flow_hash_recipe}
constraint: Never assign numerical probabilities, measurability or independence without explicit justification.

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