Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Hotspots

The concentration findings describe one column at a time: a dominant level, a near-constant. A combination of columns can concentrate where neither column does — one city × channel cell holding far more rows than its two marginals predict, in a table where both marginals look unremarkable. The hotspots detector reports those cells as concentration findings of type hotspot.

The independence baseline

The scan runs over the shared encoded matrix — nominal columns level-coded, numeric columns in the encoder’s quantile bins — for every pair of eligible features, and for triples at the deep budget. For each cell it compares the observed row count with the count expected under independence: the product of the cell’s marginal shares times the number of scanned rows. A cell is reported when its standardized residual clears a Bonferroni threshold over all cells examined at family α = 0.01, and it also clears absolute bars on expected count, ratio, observed count, and share of scanned rows.

Counting examined cells matters. A wide pair space contains thousands of cells; at an unadjusted bar, chance alone fills the report with the luckiest of them. The Bonferroni denominator is the number of cells actually counted, and the evidence states it.

planted cell: 1 hotspot findings
   cell (city = 'a1', channel = 'b1') holds 1000 of 10000 scanned rows (10.0%) against 100.0 expected under independence of city, channel — 10.0x the baseline (z = 90.0, bar 3.5 over 25 cells examined)
   evidence: {'cell': {'channel': 'b1', 'city': 'a1'}, 'cells_examined': 25, 'columns': ['city', 'channel'], 'expected_rows': 100.0, 'method': "observed cell count vs the independence baseline from the combination's margins over complete rows of the encoded sample; a cell reports only past absolute bars (expected >= 10, ratio >= 2, observed >= 20, share > 0.5%) and a Bonferroni z bar over all examined cells at family alpha 0.01", 'observed_rows': 1000, 'ratio': 10.0, 'rows_scanned': 10000, 'share': 0.1, 'z': 90.0, 'z_bar': 3.540083795298288}
same marginals, independent: 0 hotspot findings

Reading the evidence

cell names the level (or bin) of each column in the combination. observed_rows and expected_rows are counts over the encoded row sample — the scan works on the sample the encoder produced, and rows_scanned states its size. ratio is observed over expected. cells_examined is the Bonferroni denominator: every cell of every eligible combination counted in the scan, reported so the bar can be re-derived.

What the detector does not report

  • Single-column concentration. A dominant level in one column is a value_concentration finding. Hotspots require a combination whose joint count exceeds what the marginals already explain — the independent frame in the example, with the same marginals as the planted frame, produces no finding.

  • Triples at the standard budget. Three-column cells are scanned only at the deep budget; at standard the scan is pairs.

  • Combinations over the cell caps. A pair or triple whose level combinations exceed the scan’s cell caps is skipped rather than sampled down to fit.