Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name: op-overlay-index-vs-pop
kind: operator
category: OVERLAY
operator: OVERLAY_INDEX_VS_POP
description: Per-value population-comparison index for a facet host (subset_freq / pop_freq × 100).
type: reference
applies_to: facet
examples_tags: [overlay, facet, comparison]

Rides on facet overlays. Overlays decorate the host; no Response.Components.

Use when

Each category’s (or histogram bin’s) share in a facet subset as an index value against its share in a comparison population (x 100).

Questions it answers:

  • Which brands over-index among young buyers compared with all buyers?
  • Which price bands are over-represented in this segment?

Use something else:

  • OVERLAY_CHISQ_VS_POP when you want one test of whether the subset’s mix differs.

Params

NameTypeDefaultDescription
fieldstring—The facet fields entry to score; required with two or more (else PULSE_OVERLAY_PARAM_MISSING); an unlisted one → PULSE_OVERLAY_FIELD_UNKNOWN.

scope must be group. ref.population.cohort (string, required) — comparison-population cohort name. level/within must be 0. Other ref arms → PULSE_OVERLAY_REF_INCOMPATIBLE_WITH_SHAPE.

Host shape

FACET — a discrete field, or a numeric one with include_histogram: true (bins compared bin by bin).

Output

SERIES — one entry per host value in payload order (discrete values, or histogram bins), summary.statistic = subset_freq / pop_freq × 100. Layer summary.baseline = 100.

Contract

  • Weight: not read; a weight in force is skipped.
  • Streaming: streamable.

Gotchas

  • pop_freq == 0, or a value absent from the population dict (treated as zero pop_freq) → ONE PULSE_OVERLAY_REF_ZERO per affected entry + no statistic on it.
  • Numeric host without include_histogram → zero entries.
  • Unknown population field → PULSE_OVERLAY_REF_UNKNOWN from the resolver.
  • Streamable (a fold after the facet finalizes).

See