Skip to main content

Frequency 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
FREQUENCY ONTOLOGY
Kireth Semantic Library | Mathematical Entities > Statistical Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/statistical-entities/frequency-ontology.html
Version: 1.0 | Date: 2026-10-13 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Status: Proposed formalisation; source page text not independently verified.

flow "FrequencyOntology" v1.0 {
  DOMAIN: DescriptiveStatistics
  ENTITY Frequency : NonNegativeInteger
  ENTITY Category : Value
  ENTITY Observation : Record
  ENTITY Dataset : FiniteMultiset<Observation>
  ENTITY FrequencyTable : Map<Category, NonNegativeInteger>
  ENTITY RelativeFrequency : Real[0,1]
  ENTITY CumulativeFrequency : NonNegativeInteger
  ENTITY FrequencyDistribution : StatisticalSummary

  INPUT dataset: Dataset
  INPUT variable: Observation -> Category
  PRECONDITION n = cardinality(dataset) AND n > 0

  DEFINE count(c) = cardinality({o in dataset | variable(o) = c})
  DEFINE relative(c) = count(c) / n
  DEFINE percent(c) = 100 * relative(c)
  DEFINE support = {c | count(c) > 0}
  INVARIANT forall c: count(c) >= 0
  INVARIANT sum(c in support, count(c)) = n
  INVARIANT sum(c in support, relative(c)) = 1
  INVARIANT forall c: 0 <= relative(c) <= 1

  ORDERED_DOMAIN when categories have a specified total order:
    DEFINE cumulative(c) = sum(k <= c, count(k))
    INVARIANT cumulative is nondecreasing
    INVARIANT cumulative(max(support)) = n
  GUARD: cumulative frequency is undefined without an explicit category ordering.

  GROUPED_DATA when numeric intervals form a disjoint partition:
    DEFINE class_frequency(I) = cardinality({o | variable(o) in I})
    REQUIRE interval boundaries and endpoint conventions are explicit
    INVARIANT sum(I, class_frequency(I)) = n
    DEFINE frequency_density(I) = class_frequency(I) / width(I)
    REQUIRE width(I) > 0
    NOTE: frequency density differs from probability density; relative-frequency density is frequency_density(I)/n.

  RELATIONSHIPS:
    Frequency --counts--> Observation
    Frequency --associated_with--> Category
    FrequencyTable --summarises--> Dataset
    RelativeFrequency --normalises--> Frequency
    CumulativeFrequency --aggregates_ordered--> Frequency
    Mode --maximises--> Frequency
    Histogram --visualises--> GroupedFrequencyDistribution

  INFERENCE:
    IF count(c1) > count(c2) THEN c1 occurs more often than c2 in dataset.
    IF count(c) = max(k in support, count(k)) THEN c is a sample mode.
    IF n > 0 THEN relative(c) = count(c)/n.
    IF ordered(c1,c2) AND c1 <= c2 THEN cumulative(c1) <= cumulative(c2).

  SEMANTIC_EQUIVALENCE:
    absolute_frequency ~ count_in_dataset
    relative_frequency ~ empirical_proportion
    percentage_frequency ~ 100_times_relative_frequency
  SEMANTIC_DISTINCTION:
    statistical_frequency != physical_frequency_in_hertz
    empirical_relative_frequency != theoretical_probability_without_assumptions
    frequency != frequency_density
    cumulative_frequency != individual_category_frequency

  VALIDATION:
    reject negative or fractional absolute counts
    reject zero denominator for relative frequency
    reject overlapping grouped intervals unless allocation rules specified
    reject cumulative frequency on unordered categories without an ordering
    check table totals against sample size
    report missing-value exclusion or inclusion policy

  CONFIDENCE:
    mathematical_rules: high
    source_page_alignment: unverified
    empirical_probability_interpretation: conditional_on_sampling_design

  UPDATE_MODEL:
    on dataset_change: recompute counts, denominators, cumulative values and summaries
    on category_schema_change: revalidate partitions and ordering
    retain provenance, dataset_version, and calculation_timestamp

  FLOW_HASH:
    method: SHA-256
    canonicalisation: UTF-8, LF line endings, normalised whitespace, stable field ordering
    input: canonical flow body excluding stored hash value
    value: compute at publication; not fabricated

  AI_CONSUMPTION:
    output: typed_frequency_table
    include: dataset_id, variable_id, sample_size, counts, relative_frequencies, missing_policy, provenance
    enforce: mathematical_invariants, semantic_disambiguation, confidence_labels
    prohibit: treating descriptive frequencies as causal conclusions
}

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