Data & methodsBack to pipeline/dataSource archive (sign-in required)
File and checksum

pipeline/data/denominator_correction.md

SHA-256: a1977e52932d07eb8d110b459acd8260f5650fdac5c9ec1609f6a16fb2f16046

Denominator and calendar corrections — November 24, 2026

The raw headline counts did not change. Two implementation errors affected percentages and model estimates. Both were corrected before publication.

Zero-match months belong in the denominator

The topic rollup is sparse: an outlet-month with no title or theme match has no row. Queries that started with this rollup omitted its article count from the denominator and its zero share from the regression. Queries now start with the corpus rollup and join topic counts onto it, substituting zero for absent matches. Missing corpus observations are not converted into zeros. Missing tone remains missing; zero-match months do not acquire neutral tone scores.

The read-only audit compared all 7,257 original panel rows with the current corpus and topic rollups. Article denominators and the four integer topic/tone counts agreed exactly wherever an original row existed. No omitted row had a nonzero topic count. The corrected panel retains every original field value and adds 156 zero-match rows:

Topic Added outlet-month rows Article records restored to its denominator
Inflation 76 27,864
Immigration 41 2,625
War / foreign policy 39 4,243

These topic-specific totals overlap; do not add them as unique articles. The committed corpus universe contains 2,471 mapped outlet-month rows. Each of the three topics now has that same universe: 7,413 panel rows in total.

For example, the left group’s January 2022 inflation count is still 204. Its denominator rises from 28,220 to 29,121 because 901 Daily Kos articles with zero matches belong in it. The share falls from about 0.723% to 0.701%. This is the largest correction to the pooled inflation share: about 0.0224 percentage points. CPI, headline counts and original pooled tone are preserved. The per-outlet tone sums have different stored precision from the original pooled tone export, so the latter is not reconstructed for this correction.

The corpus snapshot was read on November 24, 2026, without database writes. The original JSON audit hashes are recorded here; the portable reproduction input is corpus_monthly_by_outlet.csv:

Snapshot SHA-256
sources.json 92ca45aa19e68f94f38f97c3ae56806fde6bed1e034e9ed5f67d1c12460e105b
corpus_monthly.json 888d61894e1476718365f4330beae264a69b7f90ac199fcbfe025dd9adcae5e6
topic_monthly.json c23c618e5cf3f00fe8ff22f799211e8de65a9fcdaed7872e699edbf39736b9a8

python -m mc2.analysis.complete_panel checks existing panel rows against that corpus file and fills absent topic rows. It preserves original values and is idempotent. Tests execute the analysis and website queries on a fixture where one outlet has matches and another has none. They also verify the committed panel against the full corpus universe.

The regression must use the dates stated in the methods

The descriptive pooled comparisons already used the specified windows. The regressions instead used a contiguous February-to-January window that included inauguration January and omitted the preceding January. Corrected windows are:

Handover Before After Excluded
2021 Jan–Dec 2020 Feb 2021–Jan 2022 Jan 2021
2025 Jan–Dec 2024 Feb 2025–Jan 2026 Jan 2025

The same calendar helper now serves the primary inference and CPI sensitivity window check. The legacy regression follows those dates too. Tests enumerate the actual 24 included months rather than checking only row counts.

Effect on the book

The current robustness report reruns all three outlet groupings, permutation tests, window and leave-one-out checks, balanced panels, multiple-comparison adjustment, CPI sensitivity, and both immigration anchors. It preserves the original seeds and repetition counts. The previous report is labeled historical.

The material qualification is inflation in 2021. Its full-panel result remains clear across outlet groupings, but the balanced-panel two-sided bootstrap p values are now 0.0661–0.0821, above 0.05. The book no longer says that it survives every check. The competing CPI explanation remains. Immigration in 2021 remains the strongest result; neither war handover nor immigration’s predicted 2025 reversal receives robust confirmation.

These are corrections after observing the data, not newly registered hypotheses or independent human validation. The proposed broader headline definition remains a separate, unfinished comparison and is not substituted for the published counts here.