Skip to main content

Expected Value 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: Expected Value Ontology
VERSION: 1.0
DATE: 2026-10-13
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/probability-entities/expected-value-ontology-2.html
AUTHORS: Mark Higgins — Sky (Recursive AI)
PROJECT: Kireth Semantic Library

1. PURPOSE
Represent expected value as a typed mathematical entity, linking probability spaces, measurable random variables, probability laws, integrability, moments, conditional expectation and inference.

2. ENTITY TYPES
ProbabilitySpace := (Omega, SigmaAlgebra, P)
RandomVariable := measurable map X: Omega -> R
ProbabilityDistribution := pushforward measure P_X
ExpectedValue := integral of X with respect to P, when defined
IntegrableRandomVariable := X with E[|X|] < infinity
ConditionalExpectation := E[X | G], for sub-sigma-algebra G and integrable X
Moment := E[X^k], when integrable

3. MATHEMATICAL DEFINITIONS
E[X] = integral_Omega X(omega) dP(omega), provided E[|X|] < infinity for finite real expectation.
Discrete: E[X] = sum_x x p_X(x), when sum_x |x| p_X(x) < infinity.
Continuous with density: E[X] = integral_R x f_X(x) dx, when integral_R |x| f_X(x) dx < infinity.
LOTUS: E[g(X)] = integral_R g(x) dP_X(x), when g(X) is integrable.
Extended expectations may be defined for nonnegative random variables with value +infinity; expressions of the form infinity - infinity are undefined.

4. AXIOMS AND RULES
LINEARITY: E[aX + bY] = a E[X] + b E[Y], for integrable X,Y and finite a,b.
CONSTANT: E[c] = c.
MONOTONICITY: X <= Y almost surely implies E[X] <= E[Y], for integrable X,Y.
NONNEGATIVITY: X >= 0 almost surely implies E[X] >= 0.
ABSOLUTE_BOUND: |E[X]| <= E[|X|].
INDEPENDENT_PRODUCT: E[XY] = E[X] E[Y] for independent integrable X,Y (their product is integrable).
INDICATOR: E[1_A] = P(A), A in SigmaAlgebra.
TOTAL_EXPECTATION: E[E[X | G]] = E[X], for integrable X.
JENSEN: phi(E[X]) <= E[phi(X)] for convex phi, subject to relevant integrability and domain assumptions.

5. TYPED RELATIONSHIPS
ExpectedValue --computed_from--> RandomVariable
RandomVariable --defined_on--> ProbabilitySpace
RandomVariable --induces--> ProbabilityDistribution
ExpectedValue --integrates_against--> ProbabilityMeasure
ExpectedValue --is_first_raw_moment_of--> RandomVariable
ConditionalExpectation --conditioned_on--> SigmaAlgebra
Variance --uses--> ExpectedValue
ExpectedValue --generalises--> WeightedAverage

6. INFERENCE RULES
IF X is integrable AND X = c almost_surely THEN E[X] = c.
IF X,Y integrable AND X <= Y almost_surely THEN E[X] <= E[Y].
IF X integrable AND P(X >= 0) = 1 AND E[X] = 0 THEN X = 0 almost_surely.
IF X integrable AND G is a sub-sigma-algebra THEN E[E[X|G]] = E[X].
IF X,Y independent and integrable THEN E[XY] = E[X]E[Y].
IF X is nonnegative THEN E[X] is well-defined as an extended nonnegative value.

7. SEMANTIC DISTINCTIONS
Expected value is a distributional mean, not necessarily an observed outcome or most likely outcome.
Expectation is not necessarily finite; integrability must be checked.
Sample mean is an estimator and is not identical to population expectation.
Conditional expectation is a G-measurable random variable defined up to almost-sure equality, not generally a scalar.
The expectation operator is linear; independence is not required for sums.

8. VALIDATION
CHECK probability measure normalisation P(Omega) = 1.
CHECK measurability of X and of transformed g(X).
CHECK absolute integrability before asserting finite E[X].
CHECK density/PMF normalisation when a representation is supplied.
CHECK hypotheses for Jensen, product factorisation and conditional expectation.
CHECK units: E[X] has the same physical units as X.
REJECT conflation of probability mass, density and expected value.

9. CONFIDENCE AND PROVENANCE
CONFIDENCE: 1.0 for correctly derived mathematical identities under stated assumptions; otherwise record uncertainty and missing assumptions.
PROVENANCE: record source URL, mathematical definition, assumptions, derivation, date and version.
SEMANTIC_EQUIVALENCE: mean = first raw moment = expected value when referring to the same integrable real random variable.

10. FLOW_HASH
FLOW_HASH.algorithm: SHA-256
FLOW_HASH.input: canonical UTF-8 serialisation of ontology identity, version, typed entities, relationships and rules, excluding the hash field itself.
FLOW_HASH.value: COMPUTE_AT_INGESTION

11. UPDATE_MODEL
UPDATE_MODEL.strategy: versioned append-and-review
UPDATE_MODEL.on_change: revalidate definitions, inference assumptions, related ontologies and semantic mappings; recompute FLOW_HASH.

12. AI_CONSUMPTION
AI_CONSUMPTION.mode: typed-semantic-reasoning
AI_CONSUMPTION.require: assumption-aware mathematical inference
AI_CONSUMPTION.outputs: entity graph, validation status, applicable formulas, proofs or counterexamples, provenance and confidence.
AI_CONSUMPTION.guardrails: never infer finite expectation without integrability; never infer independence from zero covariance; never treat an estimator as its target parameter.

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