Location x COVID interaction on noise complaints - #16
Open
alexstorer wants to merge 1 commit into
Open
Conversation
Tests whether the +81% lockdown noise surge (issue #15) is spatially uniform or moderated by neighborhood. It is strongly moderated: the Apr-Jun 2020-vs-2019 change ranges from -65% to +313% across 27 neighborhoods. Every residential area rose (+100-300%); the only neighborhoods that FELL are the commercial/ office/transient cores that emptied out -- Financial District/South Beach -55%, Mission Bay -65%, Chinatown -27% -- consistent with a shelter-at-home mechanism. Formal test is a difference-in-differences Poisson GLM (calls ~ neighborhood * covid, log-days offset). The counts are overdispersed (phi ~ 3.2), so the naive Poisson LR test (p~1e-56) is far too liberal; the quasi-Poisson F-test gives F(26,108)=4.07, p~1.3e-7, and a negative-binomial cross-check agrees (p~3e-11). Adds a supervisor-district cross-check, which attenuates to borderline (p~0.09) because districts blend residential and commercial blocks -- the signal lives at neighborhood scale. Validation asserts a balanced panel and reconciled totals. Closes #15. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follows up the noise finding (the +81% Apr–Jun 2020 lockdown surge) by asking whether that surge is spatially uniform or moderated by location. Adds
scripts/noise_location_covid.py, two processed tables, a figure, and a README section.Result: the surge is strongly spatial
The Apr–Jun 2020-vs-2019 change ranges from −65% to +313% across 27 neighborhoods:
Every residential area rose; the only neighborhoods that fell are the commercial/office/transient cores (Financial District/South Beach, Mission Bay, Chinatown) — exactly the places that emptied out when offices and tourism shut down. That's a clean shelter-at-home signature.
Formal test (with an overdispersion correction)
Difference-in-differences Poisson GLM,
calls ~ neighborhood × covidwith a log-days offset. The counts are overdispersed (φ ≈ 3.2), so the naïve Poisson LR test (p≈1e-56) is far too liberal — I report the quasi-Poisson F-test instead:Caveats (in the README too)
Closes #15
🤖 Generated with Claude Code.