Skip to main content

Random Experiment 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
RANDOM EXPERIMENT ONTOLOGY
Kireth Semantic Library | Entity Graph | Mathematical Entities | Probability Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/probability-entities/random-experiment-ontology.html
Version: 1.0 | Date: 2026-10-13
Authors: Mark Higgins — Sky (Recursive AI)

1. PURPOSE
Represent a random experiment as a repeatable, well-specified procedure whose realised outcome is uncertain before observation, with explicit sample space, events, probability model, observations and provenance.

2. TYPED ENTITIES
RandomExperiment: {id, procedure, conditions, sample_space, probability_model?, trials[], provenance}
Trial: {id, experiment_id, timestamp?, conditions, observed_outcome?, status}
Outcome: {id, experiment_id, value, representation}
SampleSpace: {id, experiment_id, outcomes, measurable_structure?}
Event: {id, experiment_id, subset_of_sample_space, predicate?}
ProbabilitySpace: {sample_space: Omega, sigma_algebra: F, probability_measure: P}
RandomVariable: {id, experiment_id, domain: Omega, codomain, measurable_mapping}
Observation: {trial_id, outcome, measurement_method?, uncertainty?}
ExperimentalCondition: {name, value, units?, controlled: bool}

3. MATHEMATICAL FOUNDATION
A random experiment E specifies a set Omega of possible outcomes.
An elementary outcome omega satisfies omega in Omega.
An event A is measurable: A in F, where F is a sigma-algebra on Omega.
Probability measure P: F -> [0,1] satisfies:
  P(Omega) = 1
  P(A) >= 0 for A in F
  P(union_n A_n) = sum_n P(A_n) for pairwise disjoint measurable events A_n.
P(empty_set) = 0; P(A_complement) = 1 - P(A).
A trial produces at most one realised elementary outcome under the specified outcome granularity.
A random variable X: Omega -> S is measurable with respect to the chosen measurable structures.

4. RELATIONSHIP ALGEBRA
RandomExperiment --HAS_SAMPLE_SPACE--> SampleSpace
RandomExperiment --HAS_TRIAL--> Trial
RandomExperiment --USES_PROBABILITY_MODEL--> ProbabilitySpace
Trial --REALISES_OUTCOME--> Outcome
Outcome --BELONGS_TO--> SampleSpace
Event --IS_MEASURABLE_SUBSET_OF--> SampleSpace
Event --HAS_PROBABILITY_UNDER--> ProbabilitySpace
RandomVariable --MAPS_OUTCOME_TO_VALUE--> Value
Trial --RUN_UNDER--> ExperimentalCondition
Observation --RECORDS--> Trial
RandomExperiment --INSTANCE_OF--> ProbabilityEntity

5. OPERATORS
DEFINE_EXPERIMENT(procedure, conditions, Omega) -> RandomExperiment
REGISTER_TRIAL(E, conditions) -> Trial
OBSERVE(trial, omega) -> Observation, provided omega in Omega
DEFINE_EVENT(E, predicate) -> A subseteq Omega, requiring A measurable for probability assignment
PROBABILITY(A, P) -> P(A), provided A in F
CONDITION(P, A, B) -> P(A intersection B)/P(B), provided P(B)>0
PUSHFORWARD(X, P) -> distribution of X
FREQUENCY(A, trials) -> count(outcomes in A)/count(valid observed trials)

6. INFERENCE RULES
R1: outcome(omega, E) AND omega in A => event_occurs(A, trial) when trial realises omega.
R2: A subseteq B AND A,B in F => P(A) <= P(B).
R3: A intersection B = empty_set => P(A union B) = P(A) + P(B).
R4: P(B)>0 => P(A|B) = P(A intersection B)/P(B).
R5: independent(A,B) => P(A intersection B) = P(A)P(B).
R6: iid_trials(trials, P) AND suitable large-sample conditions => empirical frequency converges almost surely to P(A) (strong law).
R7: observed_frequency(A) is not automatically equal to theoretical P(A).

7. EXAMPLE INSTANCES
FairCoinToss:
  Omega = {Heads, Tails}
  F = power_set(Omega)
  P({Heads}) = 1/2; P({Tails}) = 1/2
  event HeadsEvent = {Heads}
FairSixSidedDie:
  Omega = {1,2,3,4,5,6}
  P({i}) = 1/6 for each i in Omega
  event Even = {2,4,6}; P(Even) = 1/2
ContinuousMeasurement:
  Omega = real-valued observations within the modelled domain
  F = suitable Borel sigma-algebra
  singleton outcomes may have probability zero without being impossible.

8. SEMANTIC DISTINCTIONS
Random experiment != trial: procedure/model versus a single execution.
Outcome != event: an elementary result versus a measurable collection of results.
Sample space != observed sample: possible outcomes versus recorded data.
Theoretical probability != empirical relative frequency.
Randomness != lack of experimental control; conditions may be controlled while outcomes remain uncertain.
Independence != mutual exclusivity, except in degenerate probability cases.
Repeatability of procedure != guarantee of identical outcomes.

9. VALIDATION
V1: every observed outcome belongs to the declared sample space.
V2: every probability-bearing event belongs to the sigma-algebra.
V3: probability measure is nonnegative, normalised and countably additive.
V4: conditional probabilities require a positive-probability conditioning event.
V5: independence claims require evidence or explicit modelling assumptions.
V6: experimental conditions, sampling protocol and observation provenance are retained.
V7: no inference of fairness or identical distributions without justification.
V8: finite sample frequencies are not treated as exact population probabilities.

10. CONFIDENCE AND PROVENANCE
CONFIDENCE: {value: [0,1], basis: model_assumption|empirical_estimate|deduction, calibration?, limitations?}
PROVENANCE: {source_url, author, version, observed_at?, assumptions, method}
Model-based deductions may be mathematically certain conditional on their assumptions; empirical estimates carry sampling and measurement uncertainty.

11. SEMANTIC_EQUIVALENCE
Aliases: stochastic experiment; probabilistic experiment (context dependent).
Equivalence requires compatible procedure, outcome granularity, conditions, sample space and probability semantics.
Related but not equivalent: Bernoulli trial, random process, probability distribution, statistical experiment.

12. FLOW_HASH AND UPDATE_MODEL
FLOW_HASH := SHA256(canonical_UTF8(ontology_identifier, version, typed_entities, relationships, axioms, inference_rules, validation_rules))
Canonicalisation requires deterministic field ordering and normalised mathematical notation.
UPDATE_MODEL: {version, change_timestamp, changed_components, backwards_compatibility, prior_hash, new_hash}
Any change to outcome definitions, measurable events or probability assumptions triggers revalidation.

13. AI_CONSUMPTION
INPUT: experimental description, outcome definitions, conditions, observations, model assumptions.
PROCESS: parse -> type-check -> validate measurability -> verify axioms -> apply inference rules -> attach confidence/provenance.
OUTPUT: typed experiment graph, probabilities where justified, trial observations, inferred relationships, uncertainty and validation report.
Never manufacture probability values, independence assumptions, observations or empirical certainty.

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