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-delta-vs-sibling
kind: operator
category: OVERLAY
operator: OVERLAY_DELTA_VS_SIBLING
description: Per-group additive delta against a sibling group named by (field, value) on the SERIES host.
type: reference
applies_to: process
examples_tags: [overlay, comparison, before-after]

Overlays decorate the host; no Response.Components.

Use when

Each group’s value minus one named group’s value, in the value’s own units: how far every group sits from, say, the control group.

Questions it answers:

  • How much more or less revenue than the flagship store does each store bring in?
  • How many points above or below the control arm is each arm’s average?

Use something else:

  • OVERLAY_INDEX_VS_SIBLING when you want a ratio rather than a gap.

Params

NameTypeDefaultDescription
fieldstring—OUTPUT LABEL of the aggregation to score (label, else TYPE_field) or an expanded element column <label>[<elem>] (params.expand); absent = aggregations[0]; unknown → PULSE_OVERLAY_FIELD_UNKNOWN.
partition_bylist—A leading prefix of the group key columns (Host shape); anything else → PULSE_OVERLAY_PARTITION_INVALID.

scope must be group. ref.sibling.field (string, required) — grouper field on the host. ref.sibling.value (string, required) — axis-key value identifying the sibling group. Other ref arms → PULSE_OVERLAY_REF_INCOMPATIBLE_WITH_SHAPE.

Host shape

SERIES host. Over two or more groups it runs once per partition — the rows sharing the leading keys params.partition_by names (default all but the last, so the series runs down the last grouper; [] = one walk over every row), matched by key equality so a sort may interleave them — never crossing a segment; the sibling resolves inside each partition. Subtractive twin of the sibling index.

Output

SERIES — one entry per host group, summary.statistic = group − sibling (the sibling itself: 0). Layer summary.baseline = 0.

Contract

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

Gotchas

  • Unknown (field, value) pair → ONE PULSE_OVERLAY_REF_UNKNOWN per layer, null across entries.
  • Zero sibling → no warning (subtraction is defined; delta becomes the raw group value), unlike the ratio twin.
  • Absent host group → its entry keeps the key, no statistic.
  • Buffered — the sibling resolves after every group finalizes.

See