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

Overlays

The overlays this instance offers: what each is for, the questions it answers and when to reach for something else. Operators are sorted by name; each name links to its detail block below.

OperatorIn plain wordsAnswers questions likeLevelInstead, when…
OVERLAY_CHISQ_COLChi-square test per crosstab column: checks whether each column’s spread across the rows departs from the table’s overall row mix.Which banner columns have an answer mix unlike the total?intermediateOVERLAY_CHISQ_ROW when the groups are the rows rather than the columns.
OVERLAY_CHISQ_MATRIX when you want one test for the whole table.
OVERLAY_FISHER_EXACT_CELL when you want to know which single cells stand out.
OVERLAY_CHISQ_MATRIXChi-square test on a whole crosstab: checks whether the row and column categories are associated, with one p-value for the table.Is preferred channel associated with age band in this crosstab?intermediateOVERLAY_CHISQ_ROW when you want to know which rows have a mix unlike the overall one.
OVERLAY_FISHER_EXACT_CELL when you want to know which single cells stand out.
TEST_FISHER_EXACT when the table is 2x2 and some expected counts are below 5.
TEST_CHISQ when you also want how strongly the two fields are associated (Cramer’s V), from raw rows.
OVERLAY_CHISQ_VS_REF when you compare this table’s mix with another Compose request’s table.
OVERLAY_CHISQ_ROWChi-square test per crosstab row: checks whether each row’s spread across the columns departs from the table’s overall column mix.Which regions have an answer mix unlike the overall mix?intermediateOVERLAY_CHISQ_COL when the groups are the columns rather than the rows.
OVERLAY_CHISQ_MATRIX when you want one test for the whole table.
OVERLAY_FISHER_EXACT_CELL when you want to know which single cells stand out.
OVERLAY_CHISQ_VS_POPChi-square goodness-of-fit test on a facet: checks whether a subset’s category mix departs from a comparison population’s mix.Does this segment’s brand mix differ from the whole customer base’s?intermediateOVERLAY_KS_VS_POP when the field is numeric.
OVERLAY_INDEX_VS_POP when you want to see which categories are over- or under-represented rather than one test.
TEST_CHISQ when you compare two separate groups from raw rows rather than a subset with a population.
OVERLAY_CHISQ_VS_REFChi-square test in a Compose request: checks whether a target request’s crosstab mix departs from the reference request’s mix.Has the mix of answers in this wave shifted from last wave?advancedTEST_CHISQ when both results are samples of similar size and you want a test that allows for uncertainty in both: stack the rows, label each source and cross them.
OVERLAY_PROP_Z_CELL when you want to see which cells moved rather than one overall test.
OVERLAY_DELTA_VS_REF when you want the size of each cell’s change.
OVERLAY_CORRESPONDENCECorrespondence analysis of a crosstab: a perceptual map placing rows and columns in a few dimensions so similar profiles sit close together.Which brands sit closest to which attributes on a perceptual map?advancedOVERLAY_CHISQ_MATRIX when you want one test of whether rows and columns are associated.
OVERLAY_STD_RESIDUAL when you want which individual cells are over- or under-represented.
MAT_PCA when the fields are numeric measures, not a table of counts.
OVERLAY_DELTA_VS_BASELINEEach point of an ordered series minus a chosen baseline point, in the value’s own units: how much it has moved since then.How many more orders a week do we get than in the launch week?basicOVERLAY_INDEX_VS_BASELINE when you want a ratio rather than a gap.
OVERLAY_DELTA_VS_PRIOR when you want each point against the one before it.
TEST_TREND when you want to test for a steady rise or fall across the series.
OVERLAY_DELTA_VS_MARGINEach crosstab cell minus its row, column or grand margin, in the cell’s own units: how far a cell sits above or below its margin.How many points above or below the overall average rating is each segment, per question?basicOVERLAY_INDEX_VS_MARGIN when you want a ratio rather than a gap.
OVERLAY_ZSCORE_VS_MARGIN when you want the gaps in standard deviations.
OVERLAY_FISHER_EXACT_CELL when you want a test of whether a cell’s count departs from what the margins predict.
OVERLAY_DELTA_VS_PRIOREach point of an ordered series minus the point before it, in the value’s own units: how much it changed from the previous period.How many more or fewer orders did we get than the month before?basicOVERLAY_INDEX_VS_PRIOR when you want the change as a ratio.
WIN_DELTA when you want the change as a window column on the result rather than an overlay.
OVERLAY_DELTA_VS_BASELINE when you want each point against a fixed starting point.
OVERLAY_DELTA_VS_REFEach cell or group of a target Compose request minus the same coordinate in the reference request, in the target’s own units.How many points did each segment’s score move since last wave?intermediateOVERLAY_INDEX_VS_REF when you want a ratio rather than a gap.
OVERLAY_T_CELL when you want a test of whether the means differ.
OVERLAY_PROP_Z_CELL when you want a test of whether the shares differ.
OVERLAY_DELTA_VS_SIBLINGEach 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.How much more or less revenue than the flagship store does each store bring in?basicOVERLAY_INDEX_VS_SIBLING when you want a ratio rather than a gap.
TEST_WELCH when you want to test whether two groups’ averages differ, from raw rows.
OVERLAY_DELTA_VS_BASELINE when the reference is a fixed position in an ordered series.
OVERLAY_DELTA_VS_STAGEA process-chain stage’s result minus an earlier stage’s result at the same coordinate, in the later stage’s own units.How many records or how much revenue does each filtering stage remove?intermediateOVERLAY_INDEX_VS_STAGE when you want a ratio rather than a gap.
OVERLAY_DELTA_VS_REF when the results come from separate requests rather than chain stages.
OVERLAY_FISHER_EXACT_CELLFisher’s exact test for every crosstab cell: checks whether being in that row goes with being in that column more or less than expected.Which answer-by-segment cells stand out in this banner table?advancedOVERLAY_CHISQ_MATRIX when you want one test for the whole table.
OVERLAY_PROP_Z_CELL when you compare the same cell across two Compose requests.
TEST_FISHER_EXACT when you only have one 2x2 table of raw rows.
OVERLAY_FORMULAComputes a custom figure for every cell, group or total from an expression over the value and its margins, totals or prior point.Can I show each cell as its gap from the row margin divided by the grand total?advancedATTR_FORMULA when you need a derived field on every row before aggregation.
OVERLAY_INDEX_VS_MARGIN when a built-in kind already computes it, such as an index against a margin.
OVERLAY_SHARE_OF_ROW when you want a share of a row.
OVERLAY_INDEX_VS_BASELINEEach point of an ordered series as an index value against a chosen baseline point (point / baseline x 100), e.g. growth since launch.How have monthly sales grown relative to the launch month?basicOVERLAY_DELTA_VS_BASELINE when you want the gap in the value’s own units.
OVERLAY_INDEX_VS_PRIOR when you want each point against the one before it.
OVERLAY_YOY when you want each period against the same period a year earlier.
TEST_TREND when you want to test for a steady rise or fall across the series.
OVERLAY_INDEX_VS_MARGINIndex value of each crosstab cell against its row, column or grand margin (cell / margin x 100): which cells over- or under-index?Which segments over-index on each answer compared with the total?basicOVERLAY_SHARE_OF_ROW when you want the raw share (0 to 1) of the row.
OVERLAY_DELTA_VS_MARGIN when you want the gap in the cell’s own units.
OVERLAY_INDEX_VS_POP when you compare a facet subset with a comparison population.
OVERLAY_INDEX_VS_POPEach category’s (or histogram bin’s) share in a facet subset as an index value against its share in a comparison population (x 100).Which brands over-index among young buyers compared with all buyers?basicOVERLAY_CHISQ_VS_POP when you want one test of whether the subset’s mix differs.
OVERLAY_ZSCORE_VS_POP when you want the differences on a standardized scale.
OVERLAY_INDEX_VS_MARGIN when the comparison is within a crosstab rather than a facet.
OVERLAY_INDEX_VS_PRIOREach point of an ordered series as an index value against the point before it (point / prior x 100): period-on-period change.By how much did sales grow or shrink from each month to the next?basicOVERLAY_DELTA_VS_PRIOR when you want the change in the value’s own units.
OVERLAY_YOY when the data are seasonal and you want the same period a year earlier.
OVERLAY_INDEX_VS_ROLLING_MEAN when you want each point against its recent average rather than one point.
OVERLAY_INDEX_VS_REFIndex value of each cell or group of a target Compose request against the same spot in the reference request (target / reference x 100).How does this wave’s result per segment compare with last wave’s, scaled to 100?intermediateOVERLAY_DELTA_VS_REF when you want the gap in the value’s own units.
OVERLAY_PANEL_INDEX_VS_REF when you compare several targets with one reference.
OVERLAY_PROP_Z_CELL when you want a test of whether the shares differ.
OVERLAY_INDEX_VS_ROLLING_MEANEach point of an ordered series as an index value against the rolling mean of the previous W points: is this period above its recent run?Is this week’s volume above or below the average of the last four weeks?intermediateOVERLAY_ZSCORE_VS_ROLLING when you want the gap in standard deviations of the window.
OVERLAY_INDEX_VS_PRIOR when you want each point against just the one before it.
WIN_MOVING_AVG when you want the smoothed series itself as a column.
OVERLAY_INDEX_VS_SIBLINGEach group’s value as an index value against one named group (group / sibling x 100), such as every store against the flagship.How does each store’s revenue compare with the flagship store’s?basicOVERLAY_DELTA_VS_SIBLING when you want the gap in the value’s own units.
OVERLAY_INDEX_VS_BASELINE when the reference is a fixed position in an ordered series, such as the first month.
TEST_WELCH when you want to test whether two groups’ averages differ, from raw rows.
OVERLAY_INDEX_VS_STAGEIndex value of a process-chain stage’s result against an earlier stage’s result at the same coordinate (target / reference x 100).What share of the starting figure is left after each filtering stage, scaled to 100?intermediateOVERLAY_DELTA_VS_STAGE when you want the gap in the value’s own units.
OVERLAY_INDEX_VS_REF when the results come from separate requests rather than chain stages.
OVERLAY_INDEX_VS_TOTALEach group’s value on a grouped result as an index value against the sum over all groups (group / total x 100).How big is each region relative to the whole, on a 0 to 100 scale?basicOVERLAY_SHARE_OF_TOTAL when you want the raw share (0 to 1).
OVERLAY_ZSCORE_VS_TOTAL when you want each group against the average group.
OVERLAY_INDEX_VS_SIBLING when you want each group against one chosen group.
OVERLAY_KS_VS_POPKolmogorov-Smirnov test on a numeric facet: checks whether a subset’s distribution departs from a comparison population’s.Does this segment’s spend distribution differ from all customers’?advancedOVERLAY_CHISQ_VS_POP when the field is categorical.
TEST_KS when you have two separate groups of raw rows.
OVERLAY_INDEX_VS_POP when you want to see where the shapes differ rather than one test.
OVERLAY_MARKOVMarkov chain of a from-state by to-state crosstab: transition probabilities, n-step projections, steady state and time to absorption.Where will customers sit across the tiers in 6 or 12 periods if they keep switching as they did?advancedOVERLAY_CHISQ_MATRIX when you want one test of whether the from-state and the to-state are associated.
OVERLAY_SHARE_OF_ROW when you only want each cell’s share of its row, with no projection.
OVERLAY_MATRIX_GROUP_SUMMARYSummarize a grouped matrix across its groups: each cell’s mean, minimum, maximum and range, and how many groups fed it.How stable is each correlation across regions: what is its average, and how far apart are the extremes?intermediateMAT_CORRELATION when you want one matrix over every row, ignoring the groups.
TEST_T when you want to test whether two groups’ means differ.
OVERLAY_PAIRWISE_PROBIT_TPairwise t-tests on probit-transformed shares between rows (or columns) of one crosstab, matching a convention some survey tools use.Which segments differ in share when tested the way our survey tool does?advancedOVERLAY_PAIRWISE_PROP_Z when you want the standard test of two shares.
OVERLAY_PAIRWISE_WELCH_T when the cells are averages of a numeric measure.
OVERLAY_PAIRWISE_PROP_ZTwo-proportion z-tests between every pair of rows (or columns) of one crosstab, per column (or row): which segments differ in share?Which age bands differ from each other in the share choosing each brand?advancedOVERLAY_PAIRWISE_WELCH_T when the cells are averages of a numeric measure rather than shares.
OVERLAY_PROP_Z_PANEL when the groups are separate Compose requests.
OVERLAY_CHISQ_MATRIX when you want one overall test of whether the rows differ at all.
OVERLAY_PAIRWISE_TWO_MEANS_ZLarge-sample z-tests between every pair of rows (or columns) of one crosstab of averages: which segments differ in mean?With thousands of respondents per cell, which segments differ in average rating?advancedOVERLAY_PAIRWISE_WELCH_T when any cell is small; the t-based version is more honest there.
OVERLAY_PAIRWISE_WEIGHTED_TWO_MEANS_Z when the cells are weighted averages.
OVERLAY_PAIRWISE_PROP_Z when the cells are shares rather than averages.
OVERLAY_PAIRWISE_WEIGHTED_TWO_MEANS_ZLarge-sample z-tests between every pair of rows (or columns) of one crosstab of weighted averages, with a sample-size basis you choose.Which weighted segments differ from each other in average satisfaction?advancedOVERLAY_PAIRWISE_WELCH_T when the cells are unweighted averages.
AGG_WEIGHTED_MEAN when you only need the weighted averages themselves.
OVERLAY_PAIRWISE_WELCH_TWelch t-tests between every pair of rows (or columns) of one crosstab of averages: which segments differ in mean?Which age bands differ from each other in average spend, product by product?advancedOVERLAY_PAIRWISE_TWO_MEANS_Z when every cell is large and you want the normal-curve version.
OVERLAY_PAIRWISE_WEIGHTED_TWO_MEANS_Z when the cells are weighted averages.
OVERLAY_PAIRWISE_PROP_Z when the cells are shares rather than averages.
TEST_TUKEY_HSD when you compare groups from raw rows and want a post-test whose p-values come already adjusted across every pair, with no multiplicity block.
OVERLAY_PANEL_INDEX_VS_REFIndex values of several target Compose requests against one shared reference request, one layer per target (target / reference x 100).How do the last four waves each compare with the benchmark wave?intermediateOVERLAY_INDEX_VS_REF when there is only one target.
OVERLAY_PROP_Z_PANEL when you want tests between every pair of requests.
OVERLAY_PROP_Z_CELLTwo-proportion z-test for every crosstab cell in a Compose request: does the target’s share in that cell differ from the reference’s?Which answer shares changed between this wave and last wave?intermediateOVERLAY_PROP_Z_PANEL when you compare three or more requests at once.
OVERLAY_PAIRWISE_PROP_Z when the groups are rows or columns of one crosstab.
TEST_FISHER_EXACT when a cell has only a handful of successes or failures: stack both sources’ rows and run an exact 2x2 test.
OVERLAY_DELTA_VS_REF when you want the size of the change rather than a p-value.
OVERLAY_PROP_Z_PANELTwo-proportion z-tests between every pair of requests in a Compose panel, for each crosstab cell: which waves or markets differ in share?Across four waves, which pairs of waves differ in this answer’s share?advancedOVERLAY_PROP_Z_CELL when there is only one target.
OVERLAY_PANEL_INDEX_VS_REF when you want index values against one reference rather than tests.
OVERLAY_PAIRWISE_PROP_Z when the groups are rows or columns of one crosstab.
OVERLAY_PROP_Z_VS_PRIORTwo-proportion z-test of each period’s share against the period before it: did awareness (or any yes/no share) change since last wave?Did brand awareness change significantly from last wave?intermediateOVERLAY_T_VS_PRIOR when the measure is an average of a scale, not a 0/1 share.
OVERLAY_DELTA_VS_PRIOR when you want the size of the change in points rather than a p-value.
OVERLAY_PAIRWISE_PROP_Z when you want every pair of periods, not only consecutive ones.
OVERLAY_RAKERake a crosstab to known row and column totals: the fitted table, per-cell adjustment factors and whether the fit converged.What would this age by region table look like if its margins matched the census shares?advancedOVERLAY_SHARE_OF_ROW when you want each cell’s share of its row, with no target margins.
OVERLAY_CHISQ_MATRIX when you want to test whether rows and columns are associated.
OVERLAY_RANKRanks each cell of a target Compose request’s crosstab (1 = largest) within its row, its column or the whole table.Which product is the top seller in each region?basicOVERLAY_SHARE_OF_TOTAL when you want each cell’s share of the whole.
OVERLAY_ZSCORE_VS_MARGIN when you want how far each cell sits from its row or column.
OVERLAY_DELTA_VS_REF when you want the change from the reference request.
OVERLAY_RETENTIONRetention rates of a from-state by to-state crosstab: for each starting state, the share that stayed, switched or churned.What share of each tier’s customers kept their tier, moved to another tier or churned between the two snapshots?basicOVERLAY_MARKOV when you want where the flow leads over several periods, or the expected time until churn.
OVERLAY_SYMMETRY when you want to test whether moves one way outnumber moves back.
OVERLAY_SHARE_OF_ROW when you want every destination’s share of each row, not one stay / switch / churn split.
OVERLAY_SHARE_OF_COLEach crosstab cell as a share of its column margin (0 to 1): the mix of rows within each column, as a 100% stacked column shows it.Within each channel, what share of orders comes from each region?basicOVERLAY_SHARE_OF_ROW when you want the mix within each row.
OVERLAY_SHARE_OF_TOTAL when you want each cell’s share of the whole table.
OVERLAY_CHISQ_MATRIX when you want to test whether the column mixes differ.
OVERLAY_SHARE_OF_ROWEach crosstab cell as a share of its row margin (0 to 1): the mix of columns within each row, as a 100% stacked bar shows it.Within each region, what share of orders goes to each channel?basicOVERLAY_SHARE_OF_COL when you want the mix within each column.
OVERLAY_INDEX_VS_MARGIN when you want the same figure on a 0 to 100 index scale.
OVERLAY_CHISQ_MATRIX when you want to test whether the row mixes differ.
OVERLAY_SHARE_OF_TOTALEach crosstab cell or group of a grouped result as a share of the grand total (0 to 1): what part of the whole each piece makes up.What share of all revenue does each region bring in?basicOVERLAY_SHARE_OF_ROW when you want the share within each row of a crosstab.
OVERLAY_INDEX_VS_TOTAL when you want the same figure x 100 on a grouped result.
OVERLAY_ZSCORE_VS_TOTAL when you want each group’s position against the average group.
OVERLAY_STD_RESIDUALAdjusted residual for every crosstab cell: how far its count sits above or below what its row and column totals predict.Which cells drive the association in this crosstab?advancedOVERLAY_CHISQ_MATRIX when you want one test for the whole table.
OVERLAY_FISHER_EXACT_CELL when counts are small and you want an exact per-cell test.
OVERLAY_ZSCORE_VS_MARGIN when you want each cell’s distance from its margin without a test.
OVERLAY_SYMMETRYTest of symmetry on a before-by-after crosstab of the same units: are moves between two states as common one way as back?Did more customers move up a tier than down between the two snapshots?intermediateOVERLAY_CHISQ_MATRIX when the rows and columns come from different units, or you want to know whether two fields are associated.
OVERLAY_MARKOV when you want where the flow leads over several periods, not a test.
TEST_PAIRED_T when you compare a numeric measure before and after on the same units.
OVERLAY_T_CELLWelch t-test for every crosstab cell in a Compose request: does the target’s mean in that cell differ from the reference’s?Which segment-by-product cells changed in average rating since last wave?advancedOVERLAY_Z_CELL when every cell is large and you want the normal-curve version.
OVERLAY_T_VS_REF when the results are grouped series rather than crosstabs.
OVERLAY_PROP_Z_CELL when the cells hold shares rather than averages.
OVERLAY_PAIRWISE_WELCH_T when the groups are rows or columns of one crosstab.
OVERLAY_T_VS_PRIORWelch t-test of each period against the period before it: did the average really change from the last wave, or is it noise?Did the average satisfaction score change significantly from last wave?advancedOVERLAY_PROP_Z_VS_PRIOR when the measure is a share of respondents (a 0/1 indicator).
OVERLAY_DELTA_VS_PRIOR when you want the size of the change rather than a p-value.
TEST_PAIRED_T when the same respondents answer in both periods.
OVERLAY_T_VS_REFWelch t-test for every group of a grouped result in a Compose request: does the target’s mean differ from the reference’s?Which regions’ average spend changed between this quarter and last?advancedOVERLAY_Z_VS_REF when every group is large and you want the normal-curve version.
OVERLAY_T_CELL when the results are crosstabs rather than grouped series.
OVERLAY_DELTA_VS_REF when you want the size of the change rather than a p-value.
OVERLAY_YOYEach period of a date-grouped series as an index value against the same period one year earlier (x 100): year-over-year change.How do this year’s monthly sales compare with the same months last year?basicOVERLAY_INDEX_VS_PRIOR when you want each period against the one before.
OVERLAY_INDEX_VS_BASELINE when you want each period against one fixed starting period.
TEST_TREND when you want to test for a steady rise or fall across the series.
OVERLAY_ZSCORE_VS_MARGINEach crosstab cell’s gap from its row, column or grand margin, in standard deviations of the cells in that slice: which cells stand out?Which segment-by-question averages sit unusually far from the question’s overall average?intermediateOVERLAY_FISHER_EXACT_CELL when you want a test of whether a cell’s count departs from what the margins predict.
OVERLAY_DELTA_VS_MARGIN when the gap in the cell’s own units is easier to explain.
OVERLAY_INDEX_VS_MARGIN when you want a ratio to the margin.
OVERLAY_ZSCORE_VS_POPPuts each category’s share gap with a comparison population on a z-score scale; for numeric bins it says nothing about the subset.Which answers does this segment pick more or less often than the comparison population, relative to how much answer shares vary?intermediateOVERLAY_CHISQ_VS_POP when you want a test of whether the subset’s category mix differs.
OVERLAY_KS_VS_POP when you want a test of whether a numeric distribution differs.
OVERLAY_INDEX_VS_POP when a ratio is easier to explain.
OVERLAY_ZSCORE_VS_ROLLINGHow many standard deviations each point sits from the rolling mean of the previous W points: a simple flag for unusual periods.Which days had unusually high or low orders compared with the previous two weeks?intermediateTEST_TREND when you want to test for a steady rise or fall across the whole series.
OVERLAY_INDEX_VS_ROLLING_MEAN when you want the ratio to the rolling mean.
ATTR_ZSCORE when you want a standardized column for each row rather than per period.
OVERLAY_ZSCORE_VS_TOTALHow many standard deviations each group’s value sits from the average of all groups on a grouped result: which groups stand out?Which stores’ sales are unusually high or low compared with the other stores?intermediateTEST_ANOVA_WELCH when you want to test whether group averages differ, from raw rows.
OVERLAY_SHARE_OF_TOTAL when you want each group’s share of the total.
OVERLAY_DELTA_VS_SIBLING when you want each group against one chosen group.
OVERLAY_Z_CELLLarge-sample z-test for every crosstab cell in a Compose request: does the target’s mean in that cell differ from the reference’s?With large samples, which segment-by-question means moved since last wave?advancedOVERLAY_T_CELL when any cell is small; the t-based version is more honest there.
OVERLAY_Z_VS_REF when the results are grouped series rather than crosstabs.
OVERLAY_PROP_Z_CELL when the cells hold shares rather than averages.
OVERLAY_Z_VS_PRIORLarge-sample z-test of each period’s mean against the period before it: did the average change from the last wave?With large waves, did the average spend per visit change from last quarter?advancedOVERLAY_T_VS_PRIOR when some periods are small.
OVERLAY_PROP_Z_VS_PRIOR when the measure is a share of respondents (a 0/1 indicator).
OVERLAY_DELTA_VS_PRIOR when you want the size of the change rather than a p-value.
OVERLAY_Z_VS_REFLarge-sample z-test for every group of a grouped result in a Compose request: does the target’s mean differ from the reference’s?With large samples, which regions’ average spend changed since last quarter?advancedOVERLAY_T_VS_REF when any group is small; the t-based version is more honest there.
OVERLAY_Z_CELL when the results are crosstabs rather than grouped series.
OVERLAY_DELTA_VS_REF when you want the size of the change rather than a p-value.

Operators

OVERLAY_CHISQ_COL

Chi-square test per crosstab column: checks whether each column’s spread across the rows departs from the table’s overall row mix.

Level: intermediate

Questions it answers:

  • Which banner columns have an answer mix unlike the total?
  • Which months have a spread of order types unlike the whole year?

Use cases by domain:

  • survey: Flag the banner columns whose answer mix departs from the total column.
  • ops: Flag the channels whose spread of order sizes departs from the overall spread.
  • science: Flag the treatment arms whose outcome mix departs from the pooled mix.

Assumptions:

  • Cells must hold counts of independent rows (AGG_COUNT); Pulse runs it on any cell aggregator, but sums, averages or weighted counts make the test meaningless.
  • The null hypothesis is that the column’s mix matches the overall row mix. That overall mix includes the column itself, so a large column pulls it toward itself: the statistic is smaller than a column-versus-rest test’s by the factor (N - column total) / N, and the p-value is too large (conservative), most of all for big columns.
  • Each column is a separate test, so with many columns some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.
  • Every expected count should be about 5 or more; a warning flags columns where some are lower.

Use something else:

Glossary: chi-square, cross-tabulation, degrees-of-freedom, false-discovery-rate, family-wise-error, goodness-of-fit, multiple-comparisons, null-hypothesis, p-value

Validated against:

  • R 4.6.1 chisq.test(table[, j], p = rowSums / N) per column — tolerance 1e-10 relative; internal/processing/overlay_chisq_axes_oracle_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-chisq-col

OVERLAY_CHISQ_MATRIX

Chi-square test on a whole crosstab: checks whether the row and column categories are associated, with one p-value for the table.

Level: intermediate

Questions it answers:

  • Is preferred channel associated with age band in this crosstab?
  • Does the mix of answers differ across regions in the table?

Use cases by domain:

  • survey: Check whether answer choice is associated with respondent segment in a banner table.
  • ops: Check whether ticket category is associated with support site.
  • science: Check whether outcome category is associated with treatment arm.

Assumptions:

  • Cells must hold counts of independent rows (AGG_COUNT); Pulse runs it on any cell aggregator, but sums, averages or weighted counts make the test meaningless.
  • The null hypothesis is that row and column categories are independent; the p-value comes from the chi-square approximation.
  • Every expected count should be about 5 or more; a warning flags tables where some are lower.
  • A small p-value says the table departs from independence, not how strongly or which cells drive it.

Use something else:

Follow up with:

Glossary: chi-square, cross-tabulation, degrees-of-freedom, independence, null-hypothesis, p-value, sample-size

Validated against:

  • R 4.6.1 chisq.test(correct = FALSE) (the default applies no Yates correction) — tolerance 1e-10 relative; internal/processing/overlay_chisq_axes_oracle_test.go
  • R 4.6.1 chisq.test(correct = TRUE) (params.correct on a 2 × 2 host) — tolerance 1e-10 relative; internal/processing/test_options_oracle_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-chisq-matrix

OVERLAY_CHISQ_ROW

Chi-square test per crosstab row: checks whether each row’s spread across the columns departs from the table’s overall column mix.

Level: intermediate

Questions it answers:

  • Which regions have an answer mix unlike the overall mix?
  • Which product lines get a different spread of complaint types?

Use cases by domain:

  • survey: Flag the segments whose answer mix departs from the total sample’s mix.
  • ops: Flag the sites whose spread of ticket types departs from the company-wide spread.
  • science: Flag the sites whose outcome mix departs from the pooled mix.

Assumptions:

  • Cells must hold counts of independent rows (AGG_COUNT); Pulse runs it on any cell aggregator, but sums, averages or weighted counts make the test meaningless.
  • The null hypothesis is that the row’s mix matches the overall column mix. That overall mix includes the row itself, so a large row pulls it toward itself: the statistic is smaller than a row-versus-rest test’s by the factor (N - row total) / N, and the p-value is too large (conservative), most of all for big rows.
  • Each row is a separate test, so with many rows some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.
  • Every expected count should be about 5 or more; a warning flags rows where some are lower.

Use something else:

Glossary: chi-square, cross-tabulation, degrees-of-freedom, false-discovery-rate, family-wise-error, goodness-of-fit, multiple-comparisons, null-hypothesis, p-value

Validated against:

  • R 4.6.1 chisq.test(table[i, ], p = colSums / N) per row — tolerance 1e-10 relative; internal/processing/overlay_chisq_axes_oracle_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-chisq-row

OVERLAY_CHISQ_VS_POP

Chi-square goodness-of-fit test on a facet: checks whether a subset’s category mix departs from a comparison population’s mix.

Level: intermediate

Questions it answers:

  • Does this segment’s brand mix differ from the whole customer base’s?
  • Is the subset’s spread of ticket types unlike the population’s?

Use cases by domain:

  • survey: Check whether a filtered segment’s answer mix departs from the full sample’s.
  • ops: Check whether one region’s order-type mix departs from the national mix.
  • science: Check whether a cohort’s category mix departs from a reference population’s.

Assumptions:

  • The subset’s figures are counts of independent rows.
  • The null hypothesis is that the subset’s mix matches the population’s. The population mix is treated as known and fixed; when the subset is a large part of the population the two overlap and the p-value is only approximate.
  • Every population category is compared, one the subset lacks counted at 0, and the population’s shares are rescaled over the compared categories so population nulls do not distort the expected counts. When discrete_top_k cuts the subset’s listing, only the listed categories are compared.
  • With a very large subset even tiny differences in mix give small p-values; read an OVERLAY_INDEX_VS_POP layer on the same facet for how big each category’s shift is.
  • Every expected count should be about 5 or more; a warning flags layers where some are lower.

Use something else:

  • OVERLAY_KS_VS_POP when the field is numeric.
  • OVERLAY_INDEX_VS_POP when you want to see which categories are over- or under-represented rather than one test.
  • TEST_CHISQ when you compare two separate groups from raw rows rather than a subset with a population.

Glossary: chi-square, degrees-of-freedom, goodness-of-fit, independence, index-value, null-hypothesis, p-value, sample-size

Validated against:

  • R 4.6.1 chisq.test — tolerance 1e-10 relative; internal/processing/overlay_reference_oracle_test.go, internal/processing/overlay_chisq_vs_pop_test.go

See How Pulse is validated.

Skill: op-overlay-chisq-vs-pop

OVERLAY_CHISQ_VS_REF

Chi-square test in a Compose request: checks whether a target request’s crosstab mix departs from the reference request’s mix.

Level: advanced

Questions it answers:

  • Has the mix of answers in this wave shifted from last wave?
  • Does the test market’s category mix differ from the control market’s?

Use cases by domain:

  • survey: Check whether this wave’s answer mix departs from the previous wave’s.
  • ops: Check whether this quarter’s ticket mix departs from last quarter’s.
  • science: Check whether a replication’s category mix departs from the original study’s.

Assumptions:

  • Cells must hold counts of independent rows (AGG_COUNT); Pulse runs it on any cell aggregator, but sums, averages or weighted counts make the test meaningless.
  • The null hypothesis is that the target’s mix matches the reference’s. The reference mix is treated as fixed expected shares and its own sampling uncertainty is ignored, so with a small reference the p-value is too small.
  • Target and reference should be separate, independent sets of rows.
  • The p-value is carried in the layer’s scalar slot; the chi-square value is in summary.statistic.
  • Every expected count should be about 5 or more; a warning flags layers where some are lower.

Use something else:

  • TEST_CHISQ when both results are samples of similar size and you want a test that allows for uncertainty in both: stack the rows, label each source and cross them.
  • OVERLAY_PROP_Z_CELL when you want to see which cells moved rather than one overall test.
  • OVERLAY_DELTA_VS_REF when you want the size of each cell’s change.

Glossary: baseline, chi-square, cross-tabulation, degrees-of-freedom, goodness-of-fit, independence, null-hypothesis, p-value

Validated against:

  • R 4.6.1 chisq.test — tolerance 1e-10 relative; internal/processing/overlay_reference_oracle_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-chisq-vs-ref

OVERLAY_CORRESPONDENCE

Correspondence analysis of a crosstab: a perceptual map placing rows and columns in a few dimensions so similar profiles sit close together.

Level: advanced

Also known as: correspondence analysis, perceptual map

Questions it answers:

  • Which brands sit closest to which attributes on a perceptual map?
  • Which segments share a similar mix of answers, and which answers set each apart?

Use cases by domain:

  • survey: Draw the brand-by-attribute perceptual map of a banner table and see which attributes each brand owns.
  • ops: Map sites and fault types together to see which sites share a fault profile.
  • science: Summarise a large species-by-site count table in two dimensions to spot gradients.

Assumptions:

  • Cells must be non-negative counts or sums (AGG_COUNT or AGG_SUM); any other cell, or a negative cell, is refused. Rows or columns with a zero total are dropped with a warning.
  • It is descriptive: the map shows how row and column profiles differ from the average profile, not whether the differences are significant.
  • Two points of the SAME kind (two rows) sit close when their profiles are similar; how close a row sits to a column is only directly meaningful in a row_principal or column_principal map.
  • Read a dimension’s share of the total inertia before trusting the map: a two-dimensional map that keeps little of the inertia hides most of the table, and points with low quality are poorly shown.

Use something else:

  • OVERLAY_CHISQ_MATRIX when you want one test of whether rows and columns are associated.
  • OVERLAY_STD_RESIDUAL when you want which individual cells are over- or under-represented.
  • MAT_PCA when the fields are numeric measures, not a table of counts.

Follow up with:

Glossary: centroid, chi-square, cross-tabulation, distance, independence, margin, residual

Skill: op-overlay-correspondence

OVERLAY_DELTA_VS_BASELINE

Each point of an ordered series minus a chosen baseline point, in the value’s own units: how much it has moved since then.

Level: basic

Questions it answers:

  • How many more orders a week do we get than in the launch week?
  • How many points has satisfaction moved since the first wave?

Use cases by domain:

  • survey: Show each wave’s score as a gap from the first wave.
  • ops: Show each week’s volume as a gap from a reference week.
  • science: Show each time point as a change from the pre-treatment measurement.

Assumptions:

  • The baseline is a position in the host’s order, so the series must be ordered (for example by GROUP_DATE).
  • When the values are percentages the gap is in percentage points, not percent.

Use something else:

Glossary: baseline, percentage-point

Skill: op-overlay-delta-vs-baseline

OVERLAY_DELTA_VS_MARGIN

Each crosstab cell minus its row, column or grand margin, in the cell’s own units: how far a cell sits above or below its margin.

Level: basic

Questions it answers:

  • How many points above or below the overall average rating is each segment, per question?
  • Which store-by-month cells sit furthest from their store’s overall average?

Use cases by domain:

  • survey: Show each segment’s mean rating as a gap from the total-sample mean.
  • ops: Show each site’s average cycle time as a gap from the company average.
  • science: Show each subgroup mean as a gap from the pooled mean.

Assumptions:

  • The margin is the host’s own margin figure: a total for counts and sums (so every cell sits below it), an overall average for means. It reads most naturally with averages or shares.
  • The gap keeps the cell’s units; when cells are percentages it is in percentage points.

Use something else:

Glossary: baseline, cross-tabulation, margin, mean, percentage-point

Skill: op-overlay-delta-vs-margin

OVERLAY_DELTA_VS_PRIOR

Each point of an ordered series minus the point before it, in the value’s own units: how much it changed from the previous period.

Level: basic

Questions it answers:

  • How many more or fewer orders did we get than the month before?
  • How many points did satisfaction move from each wave to the next?

Use cases by domain:

  • survey: Wave-on-wave change of a tracker metric in points.
  • ops: Month-on-month change in ticket volume.
  • science: Step-to-step change of a repeated measurement.

Assumptions:

  • The series must be ordered. The first point has no prior and gets no value; a missing point is skipped and the next one compares with the last present point.
  • When the values are percentages the change is in percentage points, not percent.

Use something else:

Glossary: baseline, percentage-point

Skill: op-overlay-delta-vs-prior

OVERLAY_DELTA_VS_REF

Each cell or group of a target Compose request minus the same coordinate in the reference request, in the target’s own units.

Level: intermediate

Questions it answers:

  • How many points did each segment’s score move since last wave?
  • How much more or less did each region sell this year than last?

Use cases by domain:

  • survey: Show this wave’s table as point changes from last wave.
  • ops: Show this period’s site figures as changes from the prior period.
  • science: Show a treatment cohort’s subgroup means as gaps from the control cohort’s.

Assumptions:

  • Both requests must share a schema and line up on the same keys; a coordinate missing from the reference gets no value and a warning.
  • When the values are percentages the gap is in percentage points, not percent.

Use something else:

Glossary: baseline, percentage-point

Skill: op-overlay-delta-vs-ref

OVERLAY_DELTA_VS_SIBLING

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.

Level: basic

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 cases by domain:

  • survey: Show every segment’s mean rating as a gap from a reference segment.
  • ops: Show every site’s cost as a gap from the best-run site.
  • science: Show every arm’s mean as a gap from the control arm.

Assumptions:

  • The named group must exist in the result; an unknown group gives no values and a warning.
  • When the values are percentages the gap is in percentage points, not percent.

Use something else:

Glossary: baseline, percentage-point

Skill: op-overlay-delta-vs-sibling

OVERLAY_DELTA_VS_STAGE

A process-chain stage’s result minus an earlier stage’s result at the same coordinate, in the later stage’s own units.

Level: intermediate

Questions it answers:

  • How many records or how much revenue does each filtering stage remove?
  • How far does the refined stage’s figure move from the first stage’s?

Use cases by domain:

  • survey: Show how cleaning the sample moves each figure.
  • ops: Show how much volume each funnel stage drops.
  • harness: Diff a chain’s final stage against its source stage in one response.

Assumptions:

  • Both stages must have the same result shape; otherwise the layer is empty with a warning.
  • When the values are percentages the gap is in percentage points, not percent.

Use something else:

Glossary: baseline, percentage-point

Skill: op-overlay-delta-vs-stage

OVERLAY_FISHER_EXACT_CELL

Fisher’s exact test for every crosstab cell: checks whether being in that row goes with being in that column more or less than expected.

Level: advanced

Questions it answers:

  • Which answer-by-segment cells stand out in this banner table?
  • In a small table, which cells hold more cases than the margins predict?

Use cases by domain:

  • survey: Flag the cells of a banner table where a segment picks an answer more or less often than the rest.
  • ops: Flag the site-by-fault cells that occur more or less often than the totals predict.
  • science: Flag the arm-by-outcome cells of a small table without relying on a large-sample approximation.

Assumptions:

  • Cells must hold counts of independent rows (AGG_COUNT); Pulse runs it on any cell aggregator, but sums, averages or weighted counts make the test meaningless.
  • Each cell is tested as its own 2x2 table: this row versus the rest, by this column versus the rest. The null hypothesis is that the two are independent; the p-value is two-sided.
  • Every cell is a separate test and the tables overlap, so with many cells some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.
  • It stays valid with small counts, which makes it the backstop when chi-square expected counts are low; the low-count warning is advisory only.

Use something else:

Glossary: chi-square, cross-tabulation, exact-test, false-discovery-rate, family-wise-error, independence, margin, multiple-comparisons, null-hypothesis, p-value, two-tailed

Validated against:

  • R 4.6.1 fisher.test — tolerance 1e-10 relative; internal/processing/overlay_reference_oracle_test.go, internal/processing/overlay_fisher_exact_cell_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-fisher-exact-cell

OVERLAY_FORMULA

Computes a custom figure for every cell, group or total from an expression over the value and its margins, totals or prior point.

Level: advanced

Questions it answers:

  • Can I show each cell as its gap from the row margin divided by the grand total?
  • Can I flag each month whose value is more than 10% above the prior month?

Use cases by domain:

  • survey: A house-style index that no built-in kind computes.
  • ops: A custom ratio of each cell to its margins for a dashboard.
  • harness: Prototype a new overlay before registering it as an extension kind.

Assumptions:

  • Pulse checks the variable names, not the statistics: a formula that divides by a margin or compares values is only as sound as you make it.
  • The variables depend on the host shape (cell and margins for a crosstab, value, total and prior for a series, value for a total).

Use something else:

Glossary: margin

Skill: op-overlay-formula

OVERLAY_INDEX_VS_BASELINE

Each point of an ordered series as an index value against a chosen baseline point (point / baseline x 100), e.g. growth since launch.

Level: basic

Questions it answers:

  • How have monthly sales grown relative to the launch month?
  • How does each wave’s score compare with the first wave, scaled to 100?

Use cases by domain:

  • survey: Track a tracker metric relative to the first wave.
  • ops: Track weekly volume relative to a reference week.
  • science: Express each time point relative to the pre-treatment measurement.

Assumptions:

  • The baseline is a position in the host’s order, so the series must be ordered (for example by GROUP_DATE).
  • A zero baseline gives no values and a warning; a small baseline makes every index swing widely.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-index-vs-baseline

OVERLAY_INDEX_VS_MARGIN

Index value of each crosstab cell against its row, column or grand margin (cell / margin x 100): which cells over- or under-index?

Level: basic

Questions it answers:

  • Which segments over-index on each answer compared with the total?
  • Which product-by-region cells are well above their region’s average?

Use cases by domain:

  • survey: Index each segment’s mean rating against the total-sample mean.
  • ops: Index each site’s average cost against the company-wide average.
  • science: Index each subgroup mean against the pooled mean.

Assumptions:

  • The margin is the host’s own margin figure. For averages 100 means the same as the overall average; for counts and sums the margin is a total, so the index is the cell’s share x 100, not a comparison with a typical cell.
  • A zero margin gives no value and a warning; a small margin makes the index swing widely.

Use something else:

Glossary: baseline, cross-tabulation, index-value, margin

Skill: op-overlay-index-vs-margin

OVERLAY_INDEX_VS_POP

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).

Level: basic

Questions it answers:

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

Use cases by domain:

  • survey: Profile a segment: which answers it over- or under-indexes on against the full sample.
  • ops: Show which product categories a region buys more or less of than the whole business.
  • science: Show which categories are over-represented in a cohort against the reference population.

Assumptions:

  • Small categories give unstable index values: a handful of rows can produce 300 or 20, so check the counts behind them.
  • A category absent from the population gets no value and a warning; a numeric field needs include_histogram for bins.

Use something else:

Glossary: baseline, index-value, sample-size

Skill: op-overlay-index-vs-pop

OVERLAY_INDEX_VS_PRIOR

Each point of an ordered series as an index value against the point before it (point / prior x 100): period-on-period change.

Level: basic

Questions it answers:

  • By how much did sales grow or shrink from each month to the next?
  • Is this week’s volume above or below last week’s, scaled to 100?

Use cases by domain:

  • survey: Wave-on-wave change of a tracker metric.
  • ops: Month-on-month growth of orders.
  • science: Step-to-step change of a repeated measurement.

Assumptions:

  • The series must be ordered. The first point has no prior and gets no value; a missing point is skipped and the next one compares with the last present point, so a gap can span more than one period.
  • A zero prior gives no value and a warning.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-index-vs-prior

OVERLAY_INDEX_VS_REF

Index value of each cell or group of a target Compose request against the same spot in the reference request (target / reference x 100).

Level: intermediate

Questions it answers:

  • How does this wave’s result per segment compare with last wave’s, scaled to 100?
  • How does each region’s revenue this year compare with last year’s?

Use cases by domain:

  • survey: Index this wave’s table against last wave’s.
  • ops: Index this period’s site figures against the prior period’s.
  • science: Index a treatment cohort’s subgroup means against the control cohort’s.

Assumptions:

  • Both requests must share a schema and line up on the same keys; a coordinate missing from the reference gets no value and a warning.
  • A zero reference value gives no value; a small one makes the index swing widely. params.scale changes the 100.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-index-vs-ref

OVERLAY_INDEX_VS_ROLLING_MEAN

Each point of an ordered series as an index value against the rolling mean of the previous W points: is this period above its recent run?

Level: intermediate

Questions it answers:

  • Is this week’s volume above or below the average of the last four weeks?
  • Which days ran well above their recent average?

Use cases by domain:

  • survey: Compare each wave with the average of the last few waves.
  • ops: Compare each day’s orders with the average of the previous week.
  • science: Compare each reading with the average of the preceding readings.

Assumptions:

  • The series must be ordered and params.window set. A point gets no value until W earlier points are present (params.min_periods lowers that); a missing point does not enter the window.
  • A short window reacts fast but is jumpy; a zero rolling mean gives no value and a warning.

Use something else:

Glossary: baseline, index-value, rolling-mean

Skill: op-overlay-index-vs-rolling-mean

OVERLAY_INDEX_VS_SIBLING

Each group’s value as an index value against one named group (group / sibling x 100), such as every store against the flagship.

Level: basic

Questions it answers:

  • How does each store’s revenue compare with the flagship store’s?
  • How does each region’s average rating compare with the home region’s?

Use cases by domain:

  • survey: Index every segment against a chosen reference segment.
  • ops: Index every site against the best-run site.
  • science: Index every arm’s mean against the control arm.

Assumptions:

  • The named group must exist in the result; an unknown group gives no values and a warning.
  • A zero or small reference value makes every index swing widely; a zero one gives no values.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-index-vs-sibling

OVERLAY_INDEX_VS_STAGE

Index value of a process-chain stage’s result against an earlier stage’s result at the same coordinate (target / reference x 100).

Level: intermediate

Questions it answers:

  • What share of the starting figure is left after each filtering stage, scaled to 100?
  • How does the refined stage’s result compare with the first stage’s?

Use cases by domain:

  • survey: Show how a cleaned sample’s figures compare with the raw sample’s.
  • ops: Show how much of the starting volume each funnel stage keeps.
  • harness: Compare a chain’s final stage with its source stage in one response.

Assumptions:

  • Both stages must have the same result shape; otherwise the layer is empty with a warning.
  • A zero reference value gives no value and a warning.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-index-vs-stage

OVERLAY_INDEX_VS_TOTAL

Each group’s value on a grouped result as an index value against the sum over all groups (group / total x 100).

Level: basic

Questions it answers:

  • How big is each region relative to the whole, on a 0 to 100 scale?
  • What part of total sales, scaled to 100, does each channel make up?

Use cases by domain:

  • survey: Each segment’s share of all responses, scaled to 100.
  • ops: Each product line’s share of total revenue, scaled to 100.

Assumptions:

  • 100 means the group equals the whole total, not the typical group, so values are usually far below 100.
  • It makes sense only when the value adds up across groups, such as counts or sums. A zero total gives no value and a warning.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-index-vs-total

OVERLAY_KS_VS_POP

Kolmogorov-Smirnov test on a numeric facet: checks whether a subset’s distribution departs from a comparison population’s.

Level: advanced

Questions it answers:

  • Does this segment’s spend distribution differ from all customers’?
  • Has the shape of response times in this region drifted from the fleet-wide shape?

Use cases by domain:

  • survey: Check whether a segment’s score distribution departs from the full sample’s.
  • ops: Check whether one site’s latency distribution departs from the fleet’s.
  • science: Check whether a cohort’s measurement distribution departs from a reference population’s.

Assumptions:

  • The curves are rebuilt from histograms or percentiles, not raw values: request matching histograms (or percentiles) on both arms. With matching histograms, coarse bins understate the gap and make the test conservative. When Pulse falls back to percentiles it interpolates between them, so D can come out too large or too small and the p-value has no guaranteed direction; prefer matching histograms.
  • It treats subset and population as two independent samples. When the subset is part of the population they overlap: D shrinks by the subset’s share of the population, so the p-value is too large (conservative), badly so when the subset is a big part of the population. Compare against the rest of the population instead when you can.
  • It compares two observed distributions; it is not a test against a named distribution with parameters estimated from the data, which would need the Lilliefors correction.
  • With few rows it has low power; with very large groups even trivial differences in shape give small p-values.
  • The null hypothesis is that both share one distribution; the p-value is two-sided, the one R’s ks.test gives: exact for small groups with matching histograms, a large-sample approximation otherwise.

Use something else:

Glossary: goodness-of-fit, independence, non-parametric, null-hypothesis, p-value, percentile, statistical-power, two-tailed

Validated against:

  • R 4.6.1 ks.test / psmirnov — tolerance 1e-10 relative; internal/processing/overlay_reference_oracle_test.go, internal/processing/overlay_ks_vs_pop_test.go

See How Pulse is validated.

Skill: op-overlay-ks-vs-pop

OVERLAY_MARKOV

Markov chain of a from-state by to-state crosstab: transition probabilities, n-step projections, steady state and time to absorption.

Level: advanced

Also known as: markov chain, transition matrix

Questions it answers:

  • Where will customers sit across the tiers in 6 or 12 periods if they keep switching as they did?
  • On average, how many periods does a customer in each tier take to churn?

Use cases by domain:

  • survey: Turn a last-brand by current-brand table into a switching matrix and project brand shares forward.
  • ops: Project tier migration forward and estimate the expected months until churn from each tier.
  • science: Model moves between disease stages and the expected time to an absorbing outcome.

Assumptions:

  • Rows are the from-state and columns the to-state, over the same set of states; the table counts moves over one period of equal length.
  • The next state depends only on the current one, and the switching probabilities stay the same every period (a time-homogeneous Markov chain).
  • A state no one leaves in the data (a zero row) is treated as absorbing; a chain that splits into groups that never mix, or cycles with a fixed rhythm, has no steady state and is warned about.
  • It is descriptive: the projections carry no confidence intervals, and a state seen on few moves gives noisy probabilities.

Use something else:

Glossary: cross-tabulation, margin, stochastic-matrix, steady-state

Skill: op-overlay-markov

OVERLAY_MATRIX_GROUP_SUMMARY

Summarize a grouped matrix across its groups: each cell’s mean, minimum, maximum and range, and how many groups fed it.

Level: intermediate

Also known as: pooled correlation matrix, matrix across groups

Questions it answers:

  • How stable is each correlation across regions: what is its average, and how far apart are the extremes?
  • Which pairs of measures relate strongly in some segments but weakly in others?

Use cases by domain:

  • survey: Check whether item correlations hold across waves or regions before pooling the scale.
  • ops: See which metric pairs move together in every site and which only in a few.
  • science: Compare a covariance structure across cohorts: the mean matrix beside its per-cell range.

Assumptions:

  • Every group counts once: the mean is unweighted across groups, so a small group weighs as much as a large one.
  • A cell missing from a group, or undefined there, is skipped for that group; n_groups says how many groups fed each cell.
  • It is descriptive: the range says how far the groups spread, not whether the difference is significant.

Use something else:

  • MAT_CORRELATION when you want one matrix over every row, ignoring the groups.
  • TEST_T when you want to test whether two groups’ means differ.

Glossary: mean, correlation, covariance

Skill: op-overlay-matrix-group-summary

OVERLAY_PAIRWISE_PROBIT_T

Pairwise t-tests on probit-transformed shares between rows (or columns) of one crosstab, matching a convention some survey tools use.

Level: advanced

Questions it answers:

  • Which segments differ in share when tested the way our survey tool does?
  • Do the probit-scale shares of each region differ from each other?

Use cases by domain:

  • survey: Reproduce the pairwise share tests of a survey tool that works on the probit scale.
  • ops: Match a legacy report’s pairwise rate tests that used the probit transform.

Assumptions:

  • It treats each probit value as having spread 1/sqrt(n). The true spread is at least about 1.25/sqrt(n) and larger near 0% or 100%, so its p-values come out too small at every share. Use it only to reproduce a tool that applies it, never as evidence on its own.
  • Shares of exactly 0 or 1 are clipped to 1e-10 from the edge, which maps them to about ±6.4 on the probit scale. Any pair involving a 0% or 100% share then gets a huge t and a near-zero p-value whatever the n; treat those pairs as unreadable.
  • The two groups in each pair are independent samples. The null hypothesis is equal probit values; each p-value is two-sided, from a t distribution with n_i + n_j - 2 degrees of freedom.
  • Pulse reports raw p-values: with many cells or pairs some small values turn up by luck alone, so adjust for multiple comparisons: set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: degrees-of-freedom, false-discovery-rate, family-wise-error, independence, multiple-comparisons, null-hypothesis, p-value, probit, t-statistic, two-tailed

Validated against:

  • R 4.6.1 evaluation of the design formula — tolerance 1e-10 relative; internal/processing/overlay_reference_oracle_test.go

Validation gap: No stock implementation exists to compare with; the reference evaluates the published formula.

See How Pulse is validated.

Skill: op-overlay-pairwise-probit-t

OVERLAY_PAIRWISE_PROP_Z

Two-proportion z-tests between every pair of rows (or columns) of one crosstab, per column (or row): which segments differ in share?

Level: advanced

Questions it answers:

  • Which age bands differ from each other in the share choosing each brand?
  • Which pairs of regions differ in their share of late deliveries?

Use cases by domain:

  • survey: Letter-test banner columns: which segments differ in the share giving each answer.
  • ops: Compare late-delivery shares between every pair of depots.
  • science: Compare response shares between every pair of dose groups.

Assumptions:

  • The two groups in each pair are independent samples; a multi-select (set) grouper can put one row in both, which breaks that.
  • Choose n_source to match how the cell value was made and p_source to match a percentage or a proportion; a mismatch silently skips every pair.
  • The null hypothesis for each pair is that the two shares are equal; each p-value is two-sided and needs roughly 10 successes and 10 failures per side.
  • Pulse reports raw p-values: with many cells or pairs some small values turn up by luck alone, so adjust for multiple comparisons: set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: cross-tabulation, false-discovery-rate, family-wise-error, independence, multiple-comparisons, null-hypothesis, p-value, sample-size, two-tailed

Validated against:

  • R 4.6.1 prop.test(correct = FALSE) — tolerance 1e-10 relative; internal/processing/overlay_pairwise_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-pairwise-prop-z

OVERLAY_PAIRWISE_TWO_MEANS_Z

Large-sample z-tests between every pair of rows (or columns) of one crosstab of averages: which segments differ in mean?

Level: advanced

Questions it answers:

  • With thousands of respondents per cell, which segments differ in average rating?
  • Which pairs of high-volume stores differ in average basket size?

Use cases by domain:

  • survey: Letter-test large banner columns on a mean rating where reporting calls for z.
  • ops: Compare average order value between every pair of high-traffic channels.
  • science: Compare means between every pair of large groups where the t and normal tails agree.

Assumptions:

  • Cells must use AGG_WELFORD, which supplies each cell’s mean, variance and n; any other cell aggregator is refused.
  • The two groups in each pair are independent samples. It reads p from the normal curve, so with small cells the p-values come out too small.
  • The null hypothesis for each pair is equal means; each p-value is two-sided.
  • Pulse reports raw p-values: with many cells or pairs some small values turn up by luck alone, so adjust for multiple comparisons: set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: false-discovery-rate, family-wise-error, independence, mean, multiple-comparisons, normal-distribution, null-hypothesis, p-value, sample-size, standard-error, two-tailed

Validated against:

  • R 4.6.1 pnorm on the Welch standard error — tolerance 1e-10 relative; internal/processing/overlay_pairwise_test.go

See How Pulse is validated.

Skill: op-overlay-pairwise-two-means-z

OVERLAY_PAIRWISE_WEIGHTED_TWO_MEANS_Z

Large-sample z-tests between every pair of rows (or columns) of one crosstab of weighted averages, with a sample-size basis you choose.

Level: advanced

Questions it answers:

  • Which weighted segments differ from each other in average satisfaction?
  • Which regions differ in weighted average spend once survey weights are applied?

Use cases by domain:

  • survey: Letter-test banner columns on a weighted mean rating.
  • ops: Compare volume-weighted average prices between every pair of suppliers.
  • science: Compare design-weighted means between every pair of strata.

Assumptions:

  • Cells must use AGG_WEIGHTED_MEAN or a weighted AGG_AVERAGE; n_basis is required. With weights the sum of weights is the sample size, which suits weights that count repeated rows and is refused when the cell carries sampling weights; kish uses the effective sample size and suits survey weights.
  • It accounts for weighting only, not for clustering or other design effects, so with such designs the p-values come out too small.
  • The two groups in each pair are independent samples. The null hypothesis for each pair is equal weighted means; each p-value is two-sided from the normal curve.
  • Pulse reports raw p-values: with many cells or pairs some small values turn up by luck alone, so adjust for multiple comparisons: set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: effective-sample-size, false-discovery-rate, family-wise-error, independence, mean, multiple-comparisons, null-hypothesis, p-value, sample-size, two-tailed, weighting

Validated against:

  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-pairwise-weighted-two-means-z

OVERLAY_PAIRWISE_WELCH_T

Welch t-tests between every pair of rows (or columns) of one crosstab of averages: which segments differ in mean?

Level: advanced

Questions it answers:

  • Which age bands differ from each other in average spend, product by product?
  • Which pairs of depots differ in average delivery time per month?

Use cases by domain:

  • survey: Letter-test banner columns on a mean rating.
  • ops: Compare average handling time between every pair of teams, per queue.
  • science: Compare mean outcomes between every pair of dose groups, per site.

Assumptions:

  • Cells must use AGG_WELFORD, which supplies each cell’s mean, variance and n; any other cell aggregator is refused.
  • The two groups in each pair are independent samples. Equal variances are not assumed, and each mean should be roughly normal: safe for large cells, risky for small skewed ones.
  • The null hypothesis for each pair is equal means; each p-value is two-sided.
  • Pulse reports raw p-values: with many cells or pairs some small values turn up by luck alone, so adjust for multiple comparisons: set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: degrees-of-freedom, false-discovery-rate, family-wise-error, homogeneity-of-variance, independence, mean, multiple-comparisons, normal-distribution, null-hypothesis, p-value, t-statistic, two-tailed, variance

Validated against:

  • R 4.6.1 t.test — tolerance 1e-10 relative; internal/processing/overlay_pairwise_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-pairwise-welch-t

OVERLAY_PANEL_INDEX_VS_REF

Index values of several target Compose requests against one shared reference request, one layer per target (target / reference x 100).

Level: intermediate

Questions it answers:

  • How do the last four waves each compare with the benchmark wave?
  • How does each market compare with the reference market, cell by cell?

Use cases by domain:

  • survey: Index every wave of a tracker against a benchmark wave.
  • ops: Index every region’s table against the national table.
  • science: Index several treatment cohorts against one control cohort.

Assumptions:

  • Every target must share a schema with the reference and line up on the same keys; options.max_panel_targets caps the number of targets.
  • A zero reference value gives no value; a small one makes the index swing widely.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-panel-index-vs-ref

OVERLAY_PROP_Z_CELL

Two-proportion z-test for every crosstab cell in a Compose request: does the target’s share in that cell differ from the reference’s?

Level: intermediate

Questions it answers:

  • Which answer shares changed between this wave and last wave?
  • Where does the test market’s share differ from the control market’s?

Use cases by domain:

  • survey: Flag the answer shares that moved between two survey waves.
  • ops: Flag the defect rates per line and shift that differ between two plants.
  • science: Compare response rates per subgroup between a treatment and a control cohort.

Assumptions:

  • Cell values must be counts and each row margin is that row’s sample size: the share tested is cell / row margin. A cell whose row margin is missing or zero on either side gets no test (NaN, with a warning).
  • Target and reference are separate, independent samples; rows that appear in both make the p-value wrong.
  • The null hypothesis is that the two shares are equal. The normal approximation needs roughly 10 successes and 10 failures on each side; the p-value is two-sided.
  • Every cell is a separate test, so with many cells some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: cross-tabulation, false-discovery-rate, family-wise-error, independence, margin, multiple-comparisons, null-hypothesis, p-value, sample-size, standard-error, two-tailed

Validated against:

  • R 4.6.1 prop.test(correct = FALSE) on the shared pooled two-proportion kernel, which the overlay runs on the legs each cell reads — tolerance 1e-10 relative; internal/processing/overlay_reference_oracle_test.go, internal/processing/overlay_weighted_contingency_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-prop-z-cell

OVERLAY_PROP_Z_PANEL

Two-proportion z-tests between every pair of requests in a Compose panel, for each crosstab cell: which waves or markets differ in share?

Level: advanced

Questions it answers:

  • Across four waves, which pairs of waves differ in this answer’s share?
  • Which of five markets differ from each other in brand share?

Use cases by domain:

  • survey: Compare answer shares between every pair of waves in a tracking study.
  • ops: Compare defect rates between every pair of plants.
  • science: Compare response rates between every pair of study sites.

Assumptions:

  • Cell values must be counts; by default each slot’s row margin is its sample size (n_source picks another). A pair involving a slot whose row margin is missing or zero gets no test (NaN, with a warning).
  • The slots are separate, independent samples; rows that appear in more than one slot make the p-values wrong.
  • The null hypothesis for each pair is that the two shares are equal; each p-value is two-sided and needs roughly 10 successes and 10 failures per side.
  • Each cell gets one test per pair of slots, so the count grows fast. Pulse reports raw p-values: with many cells or pairs some small values turn up by luck alone, so adjust for multiple comparisons: set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: cross-tabulation, false-discovery-rate, family-wise-error, independence, margin, multiple-comparisons, null-hypothesis, p-value, sample-size, two-tailed

Validated against:

  • R 4.6.1 prop.test(correct = FALSE) — tolerance 1e-10 relative; internal/processing/overlay_prop_z_panel_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-prop-z-panel

OVERLAY_PROP_Z_VS_PRIOR

Two-proportion z-test of each period’s share against the period before it: did awareness (or any yes/no share) change since last wave?

Level: intermediate

Questions it answers:

  • Did brand awareness change significantly from last wave?
  • Which months’ conversion rate moved from the month before beyond chance?

Use cases by domain:

  • survey: Test the wave-on-wave change of a tracker’s awareness or consideration share.
  • ops: Test whether this week’s on-time rate moved from last week’s.
  • science: Test change of a success rate between consecutive independent batches.

Assumptions:

  • The measure must be AGG_AVERAGE of a 0/1 indicator: its value is the share and its n the respondents with a value; on a crosstab, normalize must be none.
  • The two periods must be separate, independent samples of people. When the same respondents answer in both periods (a panel), the test is wrong: their answers are linked, and the p-value is then usually too large. Pulse cannot detect this.
  • The periods must be ordered. The first period has no prior: it gets no statistic and no p-value. A period with no value is skipped and the next one is tested against the last period that had one, so a gap can span more than one period.
  • Weighted, n is the effective sample size (Kish n_eff under probability weights), not the raw count. Each period is a separate test; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: effective-sample-size, independence, multiple-comparisons, null-hypothesis, p-value, two-tailed, z-score

Validated against:

  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go
  • an independent re-implementation of the pooled two-proportion z test — tolerance 1e-9 relative; internal/integration/overlay_vs_prior_test.go

See How Pulse is validated.

Skill: op-overlay-prop-z-vs-prior

OVERLAY_RAKE

Rake a crosstab to known row and column totals: the fitted table, per-cell adjustment factors and whether the fit converged.

Level: advanced

Also known as: raking, iterative proportional fitting, IPF

Questions it answers:

  • What would this age by region table look like if its margins matched the census shares?
  • By how much does each cell have to be scaled up or down to hit the population totals?

Use cases by domain:

  • survey: Rake an age by region table to census margins before reading the cell shares.
  • ops: Rebalance a site by shift table to planned headcount totals while keeping its internal pattern.
  • science: Standardize a sample’s exposure by age table to a reference population’s margins.

Assumptions:

  • Every row key and every column key of the table has exactly one target; targets for categories the table does not hold are refused, not dropped.
  • Raking keeps the table’s internal pattern (its odds ratios) and only rescales rows and columns, so a cell observed as zero stays zero.
  • A row or column with no observed cells cannot reach a positive target; the fit then stops short and says so.
  • It reweights the table only: it writes no weights back to the records, and it is descriptive, with no confidence intervals.

Use something else:

Glossary: cross-tabulation, margin, raking, weighting

Validated against:

  • R 4.6.1 loglin, cross-checked with survey::rake — tolerance 1e-9 relative; internal/processing/overlay_rake_test.go

See How Pulse is validated.

Skill: op-overlay-rake

OVERLAY_RANK

Ranks each cell of a target Compose request’s crosstab (1 = largest) within its row, its column or the whole table.

Level: basic

Questions it answers:

  • Which product is the top seller in each region?
  • Where does each answer rank within its segment?

Use cases by domain:

  • survey: Rank answers within each segment for a top-box summary.
  • ops: Rank products within each region by revenue.
  • science: Rank conditions within each site by mean outcome.

Assumptions:

  • A rank hides how far apart values are: first and second may be nearly equal or far apart.
  • Tied values share the average rank, and missing cells are left out, so ranks cover only the cells present.
  • The reference request only anchors alignment; its values are not used.

Use something else:

Glossary: cross-tabulation, rank, ties

Skill: op-overlay-rank

OVERLAY_RETENTION

Retention rates of a from-state by to-state crosstab: for each starting state, the share that stayed, switched or churned.

Level: basic

Also known as: retention rate, churn rate, stay rate, switching rate

Questions it answers:

  • What share of each tier’s customers kept their tier, moved to another tier or churned between the two snapshots?
  • Which starting plan holds on to its accounts best?

Use cases by domain:

  • survey: Read a last-brand by current-brand table as each brand’s loyalty rate and its loss to other brands or to no purchase.
  • ops: Report how many accounts in each plan tier stayed, changed tier or cancelled over the quarter.
  • science: Report, for each starting stage, the share of patients still in it at follow-up, the share that moved and the share that left the study.

Assumptions:

  • Rows are the earlier state and columns the later one, and a state keeps the same name on both axes; staying is the cell where the two names match.
  • Cells count units (AGG_COUNT) or sum an amount (AGG_SUM); any other cell aggregation is refused.
  • Churn needs the absorbing states named in params.absorbing; without them every move out counts as a switch, and a named absorbing state is not reported as a starting state.
  • It is descriptive: the rates carry no confidence intervals, and a starting state with few units gives noisy rates.

Use something else:

  • OVERLAY_MARKOV when you want where the flow leads over several periods, or the expected time until churn.
  • OVERLAY_SYMMETRY when you want to test whether moves one way outnumber moves back.
  • OVERLAY_SHARE_OF_ROW when you want every destination’s share of each row, not one stay / switch / churn split.

Follow up with:

  • OVERLAY_MARKOV when the stay rates differ and you want to project the tier mix forward.
  • OVERLAY_SYMMETRY when you want to know whether the switching is lopsided between two states.

Glossary: cross-tabulation, margin

Skill: op-overlay-retention

OVERLAY_SHARE_OF_COL

Each crosstab cell as a share of its column margin (0 to 1): the mix of rows within each column, as a 100% stacked column shows it.

Level: basic

Questions it answers:

  • Within each channel, what share of orders comes from each region?
  • In each banner column, how are answers split across the options?

Use cases by domain:

  • survey: Column percentages: how each banner column’s answers split across the options.
  • ops: How each month’s tickets split across categories.
  • science: How each outcome category splits across arms.

Assumptions:

  • Shares add to 1 down a column only when the cell aggregator adds up, such as counts or sums; for averages the ratio is not a share.
  • A zero column margin gives no value and a warning.

Use something else:

Glossary: cross-tabulation, margin

Skill: op-overlay-share-of-col

OVERLAY_SHARE_OF_ROW

Each crosstab cell as a share of its row margin (0 to 1): the mix of columns within each row, as a 100% stacked bar shows it.

Level: basic

Questions it answers:

  • Within each region, what share of orders goes to each channel?
  • For each age band, how are answers split across the options?

Use cases by domain:

  • survey: Row percentages: how each segment’s answers split across the options.
  • ops: How each site’s tickets split across categories.
  • science: How each arm’s outcomes split across categories.

Assumptions:

  • Shares add to 1 across a row only when the cell aggregator adds up, such as counts or sums; for averages the ratio is not a share.
  • A zero row margin gives no value and a warning.

Use something else:

Glossary: cross-tabulation, margin

Skill: op-overlay-share-of-row

OVERLAY_SHARE_OF_TOTAL

Each crosstab cell or group of a grouped result as a share of the grand total (0 to 1): what part of the whole each piece makes up.

Level: basic

Questions it answers:

  • What share of all revenue does each region bring in?
  • What part of all responses falls in each segment-by-answer cell?

Use cases by domain:

  • survey: Total percentages: each cell’s share of all respondents.
  • ops: Each product line’s share of total revenue.
  • science: Each category’s share of all observations.

Assumptions:

  • Shares add to 1 only when the value adds up, such as counts or sums; for averages the ratio is not a share.
  • A zero grand total gives no value and a warning.

Use something else:

Glossary: cross-tabulation, margin

Skill: op-overlay-share-of-total

OVERLAY_STD_RESIDUAL

Adjusted residual for every crosstab cell: how far its count sits above or below what its row and column totals predict.

Level: advanced

Questions it answers:

  • Which cells drive the association in this crosstab?
  • Which brand-by-attribute cells are over- or under-represented?

Use cases by domain:

  • survey: Find the brand-by-attribute cells of a banner table that respondents pick more or less often than the totals predict.
  • ops: Find the site-by-fault cells that occur more or less often than the site and fault totals predict.
  • science: Find the arm-by-outcome cells that depart from independence, and in which direction.

Assumptions:

  • Cells must hold counts of independent rows (AGG_COUNT); Pulse runs it on any cell aggregator, but sums, averages or weighted counts make the test meaningless.
  • The null hypothesis is that row and column categories are independent; each residual is about standard normal under it, so beyond plus or minus 1.96 is unusual at the 5% level, and the p-value is two-sided.
  • The normal approximation needs expected counts of about 5 or more; a warning flags tables where some are lower, and a cell with an expected count of 0 gets no residual.
  • Every cell is a separate test, so with many cells some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Follow up with:

  • OVERLAY_CORRESPONDENCE when the table is large and you want the overall pattern of rows and columns on one map.

Glossary: chi-square, cross-tabulation, false-discovery-rate, family-wise-error, independence, margin, multiple-comparisons, normal-distribution, null-hypothesis, p-value, residual, two-tailed

Validated against:

  • R 4.6.1 chisq.test()$stdres — tolerance 1e-12 relative; internal/processing/overlay_std_residual_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-std-residual

OVERLAY_SYMMETRY

Test of symmetry on a before-by-after crosstab of the same units: are moves between two states as common one way as back?

Level: intermediate

Also known as: mcnemar test, bowker test, test of symmetry

Questions it answers:

  • Did more customers move up a tier than down between the two snapshots?
  • Did the same respondents switch toward the brand more often than away from it between waves?

Use cases by domain:

  • survey: Test whether a panel’s answers shifted between two waves, beyond respondents switching both ways equally.
  • ops: Test whether accounts moved between plan tiers in one direction more than the other between two snapshots.
  • science: Test whether patients’ status changed in one direction more than the other between baseline and follow-up.

Assumptions:

  • Cells must count units (AGG_COUNT); an AGG_SUM cell runs but does not count units, and any other cell aggregation is refused.
  • Rows are the earlier state and columns the later one, over the same set of states, and every unit is counted once: the two answers are paired.
  • The null hypothesis is that for every pair of states, moves one way are as common as moves back; staying put (the diagonal) does not enter the test.
  • The p-value comes from the chi-square approximation, which needs about 10 or more moves in each pair of states; a warning flags pairs with fewer, and a 2x2 table applies a continuity correction unless params.correct is false. With few moves set params.exact for an exact p-value.

Use something else:

  • OVERLAY_CHISQ_MATRIX when the rows and columns come from different units, or you want to know whether two fields are associated.
  • OVERLAY_MARKOV when you want where the flow leads over several periods, not a test.
  • TEST_PAIRED_T when you compare a numeric measure before and after on the same units.

Follow up with:

  • OVERLAY_MARKOV when the moves are lopsided and you want the switching probabilities and where they lead.
  • OVERLAY_SHARE_OF_ROW when you want each state’s share of its row to see which way people moved.

Glossary: chi-square, continuity-correction, cross-tabulation, degrees-of-freedom, discordant-odds-ratio, null-hypothesis, p-value, paired-data

Validated against:

  • R 4.6.1 mcnemar.test / Bowker — tolerance 1e-12 relative; internal/processing/overlay_symmetry_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-symmetry

OVERLAY_T_CELL

Welch t-test for every crosstab cell in a Compose request: does the target’s mean in that cell differ from the reference’s?

Level: advanced

Questions it answers:

  • Which segment-by-product cells changed in average rating since last wave?
  • Where does the new site’s average handling time differ from the old site’s?

Use cases by domain:

  • survey: Flag the mean ratings per segment and question that moved between two waves.
  • ops: Compare average cycle time per line and shift between two plants.
  • science: Compare mean outcomes per subgroup between a treatment and a control cohort.

Assumptions:

  • Cells should use AGG_WELFORD, which supplies each cell’s mean, variance and n; any cell aggregator whose components carry a mean and a variance serves too. Without one the test uses one variance and n per side for every cell (params variance_target / variance_ref / sample_size_target / sample_size_ref, or variance / sample_size for both sides, required: there is no default). Those p-values describe the values you supplied, not each cell’s own spread, and they change with the measure’s units.
  • Target and reference are separate, independent samples. Equal variances are not assumed, and each mean should be roughly normal.
  • The null hypothesis is equal means in the cell; the p-value is two-sided.
  • Every cell is a separate test, so with many cells some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: cross-tabulation, false-discovery-rate, family-wise-error, homogeneity-of-variance, independence, mean, multiple-comparisons, null-hypothesis, p-value, t-statistic, two-tailed, variance

Validated against:

  • R 4.6.1 t.test / pt — tolerance 1e-10 relative; internal/processing/overlay_t_cell_test.go
  • byte parity with TEST_WELCH on AGG_WELFORD cells, offsets to 1e12 included (so its R pins carry over) — tolerance bit-identical; internal/processing/overlay_t_cell_parity_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-t-cell

OVERLAY_T_VS_PRIOR

Welch t-test of each period against the period before it: did the average really change from the last wave, or is it noise?

Level: advanced

Questions it answers:

  • Did the average satisfaction score change significantly from last wave?
  • Which months’ mean order value moved more than chance from the month before?

Use cases by domain:

  • survey: Test the wave-on-wave change of a tracker’s mean rating.
  • ops: Test whether average handling time moved from one week to the next.
  • science: Test step-to-step change of a mean across independent batches.

Assumptions:

  • The measure must be AGG_WELFORD (or AGG_VARIANCE / AGG_STDDEV), which supplies each period’s mean, variance and n; another measure is refused.
  • The two periods must be separate, independent samples of people. When the same respondents answer in both periods (a panel), the test is wrong: their answers are linked, and the p-value is then usually too large. Pulse cannot detect this.
  • The periods must be ordered. The first period has no prior: it gets no statistic and no p-value. A period with no value is skipped and the next one is tested against the last period that had one, so a gap can span more than one period.
  • Equal variances are not assumed. Each period is a separate test; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: independence, mean, multiple-comparisons, null-hypothesis, p-value, t-statistic, two-tailed, variance

Validated against:

  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go
  • an independent re-implementation of the Welch t test — tolerance 1e-9 relative; internal/integration/overlay_vs_prior_test.go

See How Pulse is validated.

Skill: op-overlay-t-vs-prior

OVERLAY_T_VS_REF

Welch t-test for every group of a grouped result in a Compose request: does the target’s mean differ from the reference’s?

Level: advanced

Questions it answers:

  • Which regions’ average spend changed between this quarter and last?
  • In which age bands does the test cohort’s mean score differ from the control’s?

Use cases by domain:

  • survey: Flag the segments whose mean rating moved between two waves.
  • ops: Compare average resolution time per team between two periods.
  • science: Compare mean outcome per site between two cohorts.

Assumptions:

  • Group values should come from AGG_WELFORD, which supplies each group’s mean, variance and n; any measure whose components carry a mean and a variance serves too. Without one the test uses one variance and n per side for every group (params variance_target / variance_ref / sample_size_target / sample_size_ref, or variance / sample_size for both sides, required: there is no default); those p-values describe the values you supplied, not each group’s own spread, and they change with the measure’s units.
  • Target and reference are separate, independent samples. Equal variances are not assumed, and each mean should be roughly normal.
  • The null hypothesis is equal means in the group; the two-sided p-value is carried in summary.statistic.
  • Each group is a separate test, so with many groups some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: false-discovery-rate, family-wise-error, homogeneity-of-variance, independence, mean, multiple-comparisons, null-hypothesis, p-value, t-statistic, two-tailed, variance

Validated against:

  • R 4.6.1 t.test / pt — tolerance 1e-10 relative; internal/integration/overlay_welford_series_oracle_test.go
  • byte parity with TEST_WELCH on AGG_WELFORD cells, offsets to 1e12 included (so its R pins carry over) — tolerance bit-identical; internal/processing/overlay_t_cell_parity_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-t-vs-ref

OVERLAY_YOY

Each period of a date-grouped series as an index value against the same period one year earlier (x 100): year-over-year change.

Level: basic

Questions it answers:

  • How do this year’s monthly sales compare with the same months last year?
  • Is this quarter’s volume up or down on the same quarter last year?

Use cases by domain:

  • survey: Compare each quarter’s tracker score with the same quarter a year before.
  • ops: Compare monthly orders with the same month last year, removing seasonality.
  • science: Compare seasonal readings with the same season a year earlier.

Assumptions:

  • The host’s single grouper must be GROUP_DATE. For weekly and coarser periods the comparison steps back a fixed number of positions (12 for months), so the series must have no missing periods.
  • The first year has no value. A zero prior-year value gives no value and a warning, and 29 February has no counterpart in a non-leap year.

Use something else:

Glossary: baseline, index-value

Skill: op-overlay-yoy

OVERLAY_ZSCORE_VS_MARGIN

Each crosstab cell’s gap from its row, column or grand margin, in standard deviations of the cells in that slice: which cells stand out?

Level: intermediate

Questions it answers:

  • Which segment-by-question averages sit unusually far from the question’s overall average?
  • Which store-by-month cells stand out from their store’s typical month?

Use cases by domain:

  • survey: Highlight the stand-out cells of a table of mean ratings for a heatmap.
  • ops: Highlight the site-by-week averages that stand out from each site’s own average.
  • science: Highlight subgroup means far from the pooled mean on a common scale.

Assumptions:

  • It describes rather than tests: there is no p-value behind it, and a value of 2 or 3 is not a probability statement about the data.
  • The standard deviation is the spread of the cell values across the slice (dividing by the number of cells), not the sampling error of a cell; slices with few cells give unstable values.
  • The centre is the host’s margin figure, so it reads naturally when that is an overall average; for counts or sums the margin is a total and every cell sits far below it.

Use something else:

Glossary: cross-tabulation, margin, outlier, standard-deviation, z-score

Skill: op-overlay-zscore-vs-margin

OVERLAY_ZSCORE_VS_POP

Puts each category’s share gap with a comparison population on a z-score scale; for numeric bins it says nothing about the subset.

Level: intermediate

Questions it answers:

  • Which answers does this segment pick more or less often than the comparison population, relative to how much answer shares vary?
  • Which categories stand out in this region compared with the whole business?

Use cases by domain:

  • survey: Rank the answers a segment over- or under-picks, on one scale.
  • ops: Highlight the categories a region buys unusually often or rarely.
  • science: Highlight categories whose share in a cohort sits far from the population’s.

Assumptions:

  • It describes rather than tests: there is no p-value behind it, and a value of 2 or 3 is not a probability statement about the data.
  • For categories it divides each share gap by the spread of the population’s shares across categories, not by a standard error, so it does not shrink as the subset grows.
  • For a numeric field it standardizes each histogram bin’s centre against the population mean and standard deviation: the subset’s counts never enter it, so the values are the same for any subset. Use OVERLAY_KS_VS_POP to compare a numeric subset.

Use something else:

Glossary: baseline, standard-deviation, standard-error, z-score

Skill: op-overlay-zscore-vs-pop

OVERLAY_ZSCORE_VS_ROLLING

How many standard deviations each point sits from the rolling mean of the previous W points: a simple flag for unusual periods.

Level: intermediate

Questions it answers:

  • Which days had unusually high or low orders compared with the previous two weeks?
  • Which readings jumped far from their recent run?

Use cases by domain:

  • survey: Flag waves whose score is far from the last few waves.
  • ops: Flag days whose volume is far from the recent run.
  • science: Flag readings far from the preceding readings.

Assumptions:

  • It describes rather than tests: there is no p-value behind it, and a value of 2 or 3 is not a probability statement about the data.
  • The standard deviation is the sample spread of the window (dividing by n - 1); a short window gives a jumpy one, and a trend or seasonality makes many points look unusual.
  • The series must be ordered and params.window set (at least 2); a point gets no value until W earlier points are present (params.min_periods, at least 2, lowers that).

Use something else:

Glossary: outlier, rolling-mean, standard-deviation, z-score

Skill: op-overlay-zscore-vs-rolling

OVERLAY_ZSCORE_VS_TOTAL

How many standard deviations each group’s value sits from the average of all groups on a grouped result: which groups stand out?

Level: intermediate

Questions it answers:

  • Which stores’ sales are unusually high or low compared with the other stores?
  • Which regions stand out from the rest on average rating?

Use cases by domain:

  • survey: Highlight segments whose mean rating is far from the average segment.
  • ops: Flag sites whose volume is far from the typical site’s.
  • science: Put group means on a common scale before plotting.

Assumptions:

  • It describes rather than tests: there is no p-value behind it, and a value of 2 or 3 is not a probability statement about the data.
  • The standard deviation is the spread of the group values themselves (dividing by the number of groups), not the spread of rows within a group; with few groups the values are unstable.

Use something else:

Glossary: mean, outlier, standard-deviation, z-score

Skill: op-overlay-zscore-vs-total

OVERLAY_Z_CELL

Large-sample z-test for every crosstab cell in a Compose request: does the target’s mean in that cell differ from the reference’s?

Level: advanced

Questions it answers:

  • With large samples, which segment-by-question means moved since last wave?
  • Which store-by-category average baskets differ between two high-traffic regions?

Use cases by domain:

  • survey: Flag mean ratings that moved between two large survey waves.
  • ops: Compare average spend per category between two high-volume storefronts.
  • science: Compare subgroup means of two large cohorts where the t and normal tails agree.

Assumptions:

  • Cells should use AGG_WELFORD, which supplies each cell’s mean, variance and n; any cell aggregator whose components carry a mean and a variance serves too. Without one the test uses one variance and n per side for every cell (params variance_target / variance_ref / sample_size_target / sample_size_ref, or variance / sample_size for both sides, required: there is no default). Those p-values describe the values you supplied, not each cell’s own spread, and they change with the measure’s units.
  • Target and reference are separate, independent samples. It reads p from the normal curve, so with small cells the p-values come out too small.
  • The null hypothesis is equal means in the cell; the p-value is two-sided.
  • Every cell is a separate test, so with many cells some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: cross-tabulation, false-discovery-rate, family-wise-error, independence, mean, multiple-comparisons, normal-distribution, null-hypothesis, p-value, standard-error, two-tailed

Validated against:

  • R 4.6.1 pnorm on the Welch standard error — tolerance 1e-10 relative; internal/processing/overlay_z_cell_test.go
  • byte parity with TEST_Z_TWO_SAMPLE on AGG_WELFORD cells, offsets to 1e12 included (so its R pins carry over) — tolerance bit-identical; internal/processing/overlay_z_cell_parity_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-z-cell

OVERLAY_Z_VS_PRIOR

Large-sample z-test of each period’s mean against the period before it: did the average change from the last wave?

Level: advanced

Questions it answers:

  • With large waves, did the average spend per visit change from last quarter?
  • Which weeks’ mean basket differs from the week before beyond chance?

Use cases by domain:

  • survey: Test wave-on-wave mean change on large tracker waves.
  • ops: Test day-on-day change of a high-volume average.
  • science: Test change of a mean between large consecutive runs.

Assumptions:

  • The measure must be AGG_WELFORD (or AGG_VARIANCE / AGG_STDDEV), which supplies each period’s mean, variance and n; another measure is refused.
  • The two periods must be separate, independent samples of people. When the same respondents answer in both periods (a panel), the test is wrong: their answers are linked, and the p-value is then usually too large. Pulse cannot detect this.
  • The periods must be ordered. The first period has no prior: it gets no statistic and no p-value. A period with no value is skipped and the next one is tested against the last period that had one, so a gap can span more than one period.
  • The normal curve stands in for the t distribution, which is fair only when every period is large. Each period is a separate test; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: independence, mean, multiple-comparisons, normal-distribution, null-hypothesis, p-value, two-tailed, variance, z-score

Validated against:

  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go
  • an independent re-implementation of the Welch z test — tolerance 1e-9 relative; internal/integration/overlay_vs_prior_test.go

See How Pulse is validated.

Skill: op-overlay-z-vs-prior

OVERLAY_Z_VS_REF

Large-sample z-test for every group of a grouped result in a Compose request: does the target’s mean differ from the reference’s?

Level: advanced

Questions it answers:

  • With large samples, which regions’ average spend changed since last quarter?
  • Which high-volume channels’ average basket differs between the two periods?

Use cases by domain:

  • survey: Flag segment mean ratings that moved between two large waves.
  • ops: Compare average order value per channel between two high-traffic periods.
  • science: Compare per-site means of two large cohorts.

Assumptions:

  • Group values should come from AGG_WELFORD, which supplies each group’s mean, variance and n; any measure whose components carry a mean and a variance serves too. Without one the test uses one variance and n per side for every group (params variance_target / variance_ref / sample_size_target / sample_size_ref, or variance / sample_size for both sides, required: there is no default); those p-values describe the values you supplied, not each group’s own spread, and they change with the measure’s units.
  • Target and reference are separate, independent samples. It reads p from the normal curve, so with small groups the p-values come out too small.
  • The null hypothesis is equal means in the group; the two-sided p-value is carried in summary.statistic.
  • Each group is a separate test, so with many groups some small p-values turn up by luck; to adjust for multiple comparisons, set multiplicity on the overlay (holm or bonferroni hold the family-wise error, bh or by the false discovery rate) to add adjusted p-values beside the raw ones.

Use something else:

Glossary: false-discovery-rate, family-wise-error, independence, mean, multiple-comparisons, normal-distribution, null-hypothesis, p-value, standard-error, two-tailed

Validated against:

  • R 4.6.1 pnorm on the Welch standard error — tolerance 1e-10 relative; internal/integration/overlay_welford_series_oracle_test.go
  • byte parity with TEST_Z_TWO_SAMPLE on AGG_WELFORD cells, offsets to 1e12 included (so its R pins carry over) — tolerance bit-identical; internal/processing/overlay_z_cell_parity_test.go
  • R 4.6.1 on rep()-expanded rows (frequency weights); closed form with scipy 1.16.2 tails, cross-checked with statsmodels (probability weights) — tolerance 1e-12 relative; internal/service/weight_reference_values_test.go, internal/service/weight_reference_tests_test.go

See How Pulse is validated.

Skill: op-overlay-z-vs-ref