I, [Teng-De, Wang], confirm that the work presented in this assessment is my own. Where information has been derived from other sources, I confirm that this has been indicated in the work.
AI use: An AI assistant (Claude, Anthropic) was used to help structure the code and text of this practice response. All code was run, checked and edited by me, and the interpretation is based on my own results.
Background. An executed eviction is the final step of a housing court case, when a City Marshal removes a tenant. Eviction is linked to homelessness, poorer health and school disruption, and is concentrated in low-income renter neighbourhoods. New York introduced a universal Right to Counsel in housing court in 2017. In 2020, COVID-19 led New York State to suspend evictions from mid-March, and later laws (Tenant Safe Harbor Act, CEEFPA) kept most residential evictions on hold into 2022.
Variation of the question. I analyse 2020 as requested, but focus on residential evictions, because the brief is about people being evicted. Because of the moratorium, I treat 2020 mainly as a snapshot of the pre-pandemic weeks.
Research question. Where were residential evictions concentrated in NYC in 2020, are they spatially clustered across community districts, and are they associated with neighbourhood poverty and rent burden?
Datasets. Evictions (NYC Open Data): an administrative record of every executed eviction with date, type and coordinates. It records executions only (not filings or informal evictions), some coordinates are missing, and there may be duplicates. Community districts (NYC DCP): 59 planning units the city can act on, but large (MAUP), and the file includes non-residential park/airport areas.
Additional data. ACS 2016–2020 5-year estimates
(renter households, poverty, severe rent burden) by census tract via
tidycensus, aggregated to districts to calculate eviction
rates.
Wrangling. Filter to 2020 and residential, remove duplicates and missing coordinates, check and harmonise the CRS (EPSG:2263), and spatially join points to districts.
Analysis plan. Exploratory analysis → district density map → Global Moran’s I and LISA → regression of eviction rates on poverty and rent burden, with a residual spatial autocorrelation check.
Constraints. About ten effective weeks of data give small counts, and with only 59 districts the regression has low power. Associations are ecological, not causal.
library(tidyverse) # data wrangling and ggplot2
library(lubridate) # dates
library(sf) # vector spatial data
library(spdep) # spatial weights, Moran's I, LISA
library(units) # area unit conversion
# Helper: convert column names to snake_case
clean_names_simple <- function(df) {
names(df) <- names(df) %>%
str_replace_all("[^A-Za-z0-9]+", "_") %>%
str_remove_all("^_|_$") %>%
tolower()
df
}
dir.create("data", showWarnings = FALSE)
I download only 2020 records through the NYC Open Data API and save a local copy so the analysis is reproducible.
ev_file <- "data/evictions_2020.csv"
if (!file.exists(ev_file)) {
where <- "executed_date between '2020-01-01T00:00:00' and '2020-12-31T23:59:59'"
api_url <- paste0(
"https://data.cityofnewyork.us/resource/6z8x-wfk4.csv?",
"$where=", URLencode(where, reserved = TRUE),
"&$limit=100000"
)
download.file(api_url, ev_file, mode = "wb")
}
evictions_raw <- read_csv(ev_file, show_col_types = FALSE) %>%
clean_names_simple() %>%
rename(any_of(c(residential_commercial_ind = "residential_commercial")))
dim(evictions_raw)
## [1] 3422 20
glimpse(evictions_raw)
## Rows: 3,422
## Columns: 20
## $ court_index_number <chr> "76598/19-2", "63786/19", "70059/19", "6371…
## $ docket_number <chr> "063597", "25534", "102528", "100297", "117…
## $ eviction_address <chr> "105 EAST 32ND STREET", "99-20 27TH AVENUE"…
## $ eviction_apt_num <chr> NA, NA, "UNIT 5B", "5D", "3-B", NA, "2ND FL…
## $ executed_date <dttm> 2020-01-02, 2020-01-02, 2020-01-02, 2020-0…
## $ marshal_first_name <chr> "Howard", "Edward", "Justin", "Justin", "Da…
## $ marshal_last_name <chr> "Schain", "Guida", "Grossman", "Grossman", …
## $ residential_commercial_ind <chr> "Residential", "Residential", "Residential"…
## $ borough <chr> "BROOKLYN", "QUEENS", "MANHATTAN", "MANHATT…
## $ eviction_zip <dbl> 11226, 11369, 10002, 10031, 10035, 11369, 1…
## $ ejectment <chr> "Not an Ejectment", "Not an Ejectment", "No…
## $ eviction_possession <chr> "Possession", "Possession", "Possession", "…
## $ latitude <dbl> 40.64818, 40.76252, 40.71261, 40.82535, 40.…
## $ longitude <dbl> -73.94736, -73.86980, -73.99059, -73.95188,…
## $ community_board <dbl> 17, 3, 3, 9, 11, 3, 11, 12, 10, NA, 9, 12, …
## $ council_district <dbl> 45, 21, 1, 7, 8, 21, 15, 10, 13, NA, 40, 10…
## $ census_tract <dbl> 824, 367, 6, 229, 182, 367, 236, 283, 152, …
## $ bin <dbl> 3110135, 4033030, 1003250, 1062359, 1052311…
## $ bbl <dbl> 3049030066, 4013790014, 1002730017, 1020900…
## $ nta <chr> "Erasmus", "East Elmhurst", "Lower East Sid…
The shoreline-clipped shapefile is downloaded from NYC
Planning and unzipped into data/.
cd_path <- list.files("data", pattern = "^nycd\\.shp$",
recursive = TRUE, full.names = TRUE)[1]
if (is.na(cd_path)) stop("Put the unzipped community district shapefile (nycd.shp) in data/")
cd_all <- st_read(cd_path, quiet = TRUE)
cd_all
## Simple feature collection with 71 features and 3 fields
## Geometry type: MULTIPOLYGON
## Dimension: XY
## Bounding box: xmin: 913175.1 ymin: 120121.9 xmax: 1067383 ymax: 272844.3
## Projected CRS: NAD83 / New York Long Island (ftUS)
## First 10 features:
## BoroCD Shape_Leng Shape_Area geometry
## 1 101 74168.59 42689119 MULTIPOLYGON (((972081.8 19...
## 2 102 34130.60 37689206 MULTIPOLYGON (((985125.7 20...
## 3 103 30695.64 46879779 MULTIPOLYGON (((992073.5 20...
## 4 104 67623.67 49311715 MULTIPOLYGON (((985929.3 22...
## 5 105 35288.19 43790330 MULTIPOLYGON (((991725.2 21...
## 6 106 43387.54 38732664 MULTIPOLYGON (((994980.2 20...
## 7 107 39863.65 53152839 MULTIPOLYGON (((995422.2 23...
## 8 108 53926.90 55172419 MULTIPOLYGON (((1002096 220...
## 9 109 34958.98 41892204 MULTIPOLYGON (((1000815 241...
## 10 110 35825.05 39084608 MULTIPOLYGON (((1002388 243...
Before any spatial operation, both layers must share the same projected CRS. Distances and areas are only meaningful in projected units, not in degrees.
# CRS of the community district layer
st_crs(cd_all)$input
## [1] "NAD83 / New York Long Island (ftUS)"
st_crs(cd_all)$epsg
## [1] 2263
# The eviction data stores coordinates as plain latitude/longitude columns.
# Check the range is plausible for NYC (lat ~40.5-40.9, lon ~-74.26 to -73.70)
# and count missing values.
evictions_raw %>%
summarise(across(c(latitude, longitude),
list(min = ~ min(.x, na.rm = TRUE),
max = ~ max(.x, na.rm = TRUE),
n_missing = ~ sum(is.na(.x)))))
## # A tibble: 1 × 6
## latitude_min latitude_max latitude_n_missing longitude_min longitude_max
## <dbl> <dbl> <int> <dbl> <dbl>
## 1 40.5 40.9 313 -74.2 -73.7
## # ℹ 1 more variable: longitude_n_missing <int>
All coordinates fall within NYC’s extent, with no zero or out-of-range values. However, 313 records (9.1%) have no coordinates and cannot be mapped.
The community district layer is already in EPSG:2263
(NAD83 / New York Long Island, US feet), the standard projected CRS used
by New York City agencies. The eviction coordinates are in decimal
degrees, so they are WGS84 (EPSG:4326). I convert them
to sf points in EPSG:4326 and then transform them to
EPSG:2263, so that both layers match and areas can be calculated in real
units.
# Make sure the district layer is in EPSG:2263
cd_all <- st_transform(cd_all, 2263)
# Keep only the 59 residential community districts.
# Codes ending 26 or above are joint interest areas such as parks and
# airports (e.g. 164 Central Park), which have few or no residents.
cd <- cd_all %>%
filter(BoroCD %% 100 <= 18) %>%
mutate(
borough = case_when(
BoroCD %/% 100 == 1 ~ "Manhattan",
BoroCD %/% 100 == 2 ~ "Bronx",
BoroCD %/% 100 == 3 ~ "Brooklyn",
BoroCD %/% 100 == 4 ~ "Queens",
BoroCD %/% 100 == 5 ~ "Staten Island"
),
area_km2 = as.numeric(set_units(st_area(geometry), km^2))
)
cat("Districts in file:", nrow(cd_all), "| residential districts kept:", nrow(cd), "\n")
## Districts in file: 71 | residential districts kept: 59
# Removed joint interest areas
cd_all %>% st_drop_geometry() %>% filter(BoroCD %% 100 > 18) %>% pull(BoroCD)
## [1] 164 226 227 228 355 356 480 481 482 483 484 595
I filter to residential evictions, remove duplicates and records without coordinates, then convert the remaining records to spatial points. Each step is recorded so it is clear how many records are excluded and why.
evictions <- evictions_raw %>%
mutate(
executed_date = as_date(executed_date),
residential_commercial_ind = str_to_title(residential_commercial_ind),
borough = str_to_title(borough)
) %>%
filter(year(executed_date) == 2020)
res <- evictions %>% filter(residential_commercial_ind == "Residential")
res_dedup <- res %>% distinct() # exact duplicates
res_geo <- res_dedup %>% filter(!is.na(latitude), !is.na(longitude))
# Convert to sf in WGS84, transform to EPSG:2263, keep points inside a district
res_sf <- res_geo %>%
st_as_sf(coords = c("longitude", "latitude"), crs = 4326, remove = FALSE) %>%
st_transform(2263) %>%
st_join(cd %>% select(BoroCD), join = st_within) %>%
filter(!is.na(BoroCD))
# Confirm both layers now share the same CRS
st_crs(res_sf) == st_crs(cd)
## [1] TRUE
tibble(
step = c("All 2020 records", "Residential only", "After removing duplicates",
"After removing missing coordinates", "Inside residential districts"),
records = c(nrow(evictions), nrow(res), nrow(res_dedup), nrow(res_geo), nrow(res_sf))
) %>%
knitr::kable(caption = "Cleaning audit trail")
| step | records |
|---|---|
| All 2020 records | 3422 |
| Residential only | 3064 |
| After removing duplicates | 3028 |
| After removing missing coordinates | 2823 |
| Inside residential districts | 2823 |
Are the records without coordinates spread evenly, or concentrated in one borough? If they are uneven, the maps will undercount some areas.
res_dedup %>%
group_by(borough) %>%
summarise(records = n(),
missing_coords = sum(is.na(latitude)),
pct_missing = round(100 * missing_coords / records, 1)) %>%
arrange(desc(pct_missing)) %>%
knitr::kable(caption = "Missing coordinates by borough (residential)")
| borough | records | missing_coords | pct_missing |
|---|---|---|---|
| Staten Island | 103 | 25 | 24.3 |
| Queens | 618 | 63 | 10.2 |
| Manhattan | 406 | 24 | 5.9 |
| Brooklyn | 899 | 50 | 5.6 |
| Bronx | 1002 | 43 | 4.3 |
Of the 3,422 evictions executed in 2020, 3,064 (89.5%) were residential, which supports the focus on residential evictions. After removing 36 exact duplicates and 205 records without coordinates, 2,823 residential evictions remain for spatial analysis, and all of them fall inside a residential community district.
Missing coordinates are not evenly distributed. Almost a quarter of Staten Island records (24.3%) and 10.2% of Queens records cannot be located, compared with 4–6% in the other boroughs. The maps that follow therefore undercount evictions in Staten Island and Queens, and this should be kept in mind when interpreting them. In absolute terms, the Bronx (1,002) and Brooklyn (899) account for almost two thirds of residential evictions.
moratorium <- as_date("2020-03-17")
weekly <- res_dedup %>%
count(week = floor_date(executed_date, "week", week_start = 1)) %>%
complete(week = seq(floor_date(as_date("2020-01-01"), "week", week_start = 1),
as_date("2020-12-28"), by = "week"),
fill = list(n = 0))
ggplot(weekly, aes(week, n)) +
geom_col(fill = "#2c7fb8") +
geom_vline(xintercept = moratorium, linetype = "dashed", colour = "firebrick") +
annotate("text", x = moratorium + 7, y = max(weekly$n) * 0.95, hjust = 0,
label = "State eviction moratorium\n(17 March 2020)",
colour = "firebrick", size = 3.5) +
scale_x_date(date_breaks = "1 month", date_labels = "%b") +
labs(title = "Residential evictions executed per week, NYC 2020",
x = NULL, y = "Evictions",
caption = "Source: NYC Open Data, Evictions") +
theme_minimal()
pre_share <- mean(res_dedup$executed_date < moratorium)
n_after <- sum(res_dedup$executed_date >= moratorium)
pre_share
## [1] 0.9970277
n_after
## [1] 9
99.7% of 2020 residential evictions were executed before the moratorium on 17 March, and only 9 afterwards. Evictions ran at roughly 230–300 per week from January until mid-March, then stopped completely. 2020 is therefore effectively a snapshot of about eleven pre-pandemic weeks, and the spatial patterns below describe where evictions were happening just before COVID-19, not a full year.
pts_xy <- res_sf %>%
mutate(x = st_coordinates(.)[, 1], y = st_coordinates(.)[, 2])
ggplot() +
geom_sf(data = cd, fill = "grey95", colour = NA) +
stat_density_2d_filled(data = pts_xy, aes(x, y), alpha = 0.7,
contour_var = "ndensity",
breaks = seq(0.2, 1, by = 0.2)) + # drop the lowest band
geom_sf(data = res_sf, size = 0.2, alpha = 0.3) +
geom_sf(data = cd, fill = NA, colour = "grey50", linewidth = 0.2) +
scale_fill_brewer(palette = "YlOrRd", name = "Relative density") +
coord_sf(crs = 2263, datum = NA) +
labs(title = "Residential evictions, NYC 2020: points and kernel density",
caption = "Sources: NYC Open Data; NYC Department of City Planning (20D)") +
theme_void()
The points are clearly not evenly spread. The kernel density surface
shows the strongest concentration in the west and centre of the Bronx, a
second concentration in central Brooklyn, and smaller ones in northern
Manhattan and south-east Queens. Most of Staten Island and eastern
Queens show few evictions, although these are also the boroughs with the
most missing coordinates. Because the kernel surface does not depend on
administrative boundaries, it is a useful check on the district-level
maps in the next section (MAUP). The result depends on bandwidth: here
it is the default normal reference rule.
I aggregate the points to community districts because these are the units the city plans and delivers services through. I use density (evictions per km²) so that large districts do not look worse simply because they are bigger.
cd <- cd %>%
left_join(res_sf %>% st_drop_geometry() %>% count(BoroCD, name = "evictions"),
by = "BoroCD") %>%
mutate(evictions = replace_na(evictions, 0),
density_km2 = evictions / area_km2)
ggplot(cd) +
geom_sf(aes(fill = density_km2), colour = "white", linewidth = 0.2) +
scale_fill_viridis_c(option = "magma", direction = -1, name = "Evictions\nper km²") +
labs(title = "Residential eviction density by community district, NYC 2020",
caption = "Sources: NYC Open Data; NYC Department of City Planning (20D)") +
theme_void()
cd %>% st_drop_geometry() %>%
arrange(desc(density_km2)) %>%
slice_head(n = 10) %>%
select(BoroCD, borough, evictions, area_km2, density_km2) %>%
knitr::kable(digits = 2, caption = "Ten districts with the highest eviction density")
| BoroCD | borough | evictions | area_km2 | density_km2 |
|---|---|---|---|---|
| 205 | Bronx | 131 | 3.56 | 36.80 |
| 203 | Bronx | 98 | 4.16 | 23.54 |
| 204 | Bronx | 120 | 5.16 | 23.26 |
| 207 | Bronx | 110 | 4.95 | 22.21 |
| 206 | Bronx | 79 | 3.96 | 19.93 |
| 309 | Brooklyn | 67 | 4.21 | 15.91 |
| 110 | Manhattan | 56 | 3.63 | 15.42 |
| 317 | Brooklyn | 121 | 8.72 | 13.88 |
| 316 | Brooklyn | 60 | 4.81 | 12.48 |
| 112 | Manhattan | 85 | 7.24 | 11.73 |
Eviction density is highly uneven. The five densest districts are all in the Bronx (205, 203, 204, 207, 206: broadly Fordham/University Heights, Morrisania, Highbridge/Concourse, Bedford Park and Belmont), and district 205 (36.8 evictions per km²) has more than twice the density of any district outside the Bronx. The next group is in central and eastern Brooklyn (309 Crown Heights South, 317 East Flatbush, 316 Brownsville) and northern Manhattan (110 Central Harlem, 112 Washington Heights/Inwood). High-density districts appear to sit next to each other, which Section 6 tests formally.
Density does not account for how many renters live in each district, so a dense district may simply have more renter households. Section 7 addresses this by calculating eviction rates per 1,000 renter households.
The density map suggests that high-eviction districts sit next to each other. I test this formally with Moran’s I.
Moran’s I needs a definition of which districts are neighbours. Boroughs are separated by rivers, so queen contiguity (shared borders) would leave Staten Island and the Rockaways weakly or not connected. I therefore use k-nearest neighbours (k = 4), based on each district’s interior point, with row-standardised weights.
coords <- st_coordinates(st_point_on_surface(st_geometry(cd)))
knn_nb <- knn2nb(knearneigh(coords, k = 4))
lw <- nb2listw(knn_nb, style = "W")
# Visual check of the neighbour network
plot(st_geometry(cd), border = "grey70")
plot(knn_nb, coords, add = TRUE, col = "firebrick", lwd = 0.8)
Every district has four neighbours, and Staten Island and the Rockaways
are connected to the rest of the city, which confirms that k-nearest
neighbours is a suitable choice here.
H0: eviction density is randomly distributed across districts. I use a permutation test (999 simulations), which does not assume normality.
set.seed(2020)
moran_density <- moran.mc(cd$density_km2, lw, nsim = 999)
moran_density
##
## Monte-Carlo simulation of Moran I
##
## data: cd$density_km2
## weights: lw
## number of simulations + 1: 1000
##
## statistic = 0.68437, observed rank = 1000, p-value = 0.001
## alternative hypothesis: greater
Global Moran’s I is 0.684 (permutation p = 0.001), indicating strong positive spatial autocorrelation. The observed value is higher than all 999 random permutations, so I reject H0: districts with high eviction density tend to be next to other high-density districts.
Global Moran’s I says whether evictions are clustered. Local Moran’s I shows where the clusters are.
lisa <- localmoran(cd$density_km2, lw)
cd <- cd %>%
mutate(lisa_p = lisa[, "Pr(z != E(Ii))"],
lisa_cluster = if_else(lisa_p < 0.05,
as.character(attr(lisa, "quadr")$mean),
"Not significant"))
ggplot(cd) +
geom_sf(aes(fill = lisa_cluster), colour = "white", linewidth = 0.2) +
scale_fill_manual(values = c("High-High" = "#d7191c", "Low-Low" = "#2c7bb6",
"High-Low" = "#fdae61", "Low-High" = "#abd9e9",
"Not significant" = "grey90"),
name = "LISA cluster (p < 0.05)") +
labs(title = "Local clusters of residential eviction density, NYC 2020",
subtitle = "Local Moran's I, k = 4 nearest neighbours",
caption = "p-values not adjusted for multiple testing") +
theme_void()
cd %>% st_drop_geometry() %>%
count(lisa_cluster) %>%
knitr::kable(caption = "Number of districts in each LISA category")
| lisa_cluster | n |
|---|---|
| High-High | 8 |
| Low-High | 2 |
| Not significant | 49 |
cd %>% st_drop_geometry() %>%
filter(lisa_cluster %in% c("High-High", "Low-Low")) %>%
arrange(lisa_cluster, desc(density_km2)) %>%
select(BoroCD, borough, lisa_cluster, evictions, density_km2, lisa_p) %>%
knitr::kable(digits = 3, caption = "Significant hot spots (High-High) and cold spots (Low-Low)")
| BoroCD | borough | lisa_cluster | evictions | density_km2 | lisa_p |
|---|---|---|---|---|---|
| 205 | Bronx | High-High | 131 | 36.800 | 0.000 |
| 203 | Bronx | High-High | 98 | 23.538 | 0.000 |
| 204 | Bronx | High-High | 120 | 23.259 | 0.000 |
| 207 | Bronx | High-High | 110 | 22.209 | 0.001 |
| 206 | Bronx | High-High | 79 | 19.931 | 0.000 |
| 112 | Manhattan | High-High | 85 | 11.735 | 0.000 |
| 209 | Bronx | High-High | 95 | 8.949 | 0.042 |
| 109 | Manhattan | High-High | 28 | 7.194 | 0.030 |
LISA identifies eight High-High districts, forming one continuous cluster from northern Manhattan (109 Morningside/Hamilton Heights, 112 Washington Heights/Inwood) across the Harlem River into the west and centre of the Bronx (203, 204, 205, 206, 207, 209). Two Low-High districts sit on the edge of this cluster. No significant Low-Low clusters were found.
Central Brooklyn also has high densities (Section 5) but is not a significant cluster. Its values are lower than the Bronx, and its neighbours are more mixed. The Bronx–northern Manhattan corridor is therefore the only statistically significant concentration of evictions in 2020, and the clearest target for prevention resources. With 59 tests at p < 0.05 and no correction for multiple testing, around three districts could be significant by chance, but the High-High districts here have very small p-values and form one connected area, which makes a chance result unlikely.
Sections 5 and 6 show where evictions concentrate, but not why. To address the brief’s question about related factors, I add census data. Using renter households as the denominator also turns counts into a rate, which reflects eviction risk rather than how many renters live in an area.
I use ACS 2016–2020 5-year estimates by census tract, downloaded with
tidycensus and saved to data/ for
reproducibility:
acs_file <- "data/acs_tracts_2020.gpkg"
if (!file.exists(acs_file)) {
library(tidycensus)
acs_tracts <- get_acs(
geography = "tract", state = "NY",
county = c("New York", "Bronx", "Kings", "Queens", "Richmond"),
variables = c(occ_hh = "B25003_001", # occupied housing units
renter_hh = "B25003_003", # renter-occupied
pov_univ = "B17001_001", # poverty status determined
pov_below = "B17001_002", # below poverty level
rb_univ = "B25070_001", # renter households (rent as % of income)
rb_50plus = "B25070_010"), # paying 50%+ of income on rent
year = 2020, survey = "acs5", output = "wide", geometry = TRUE
)
st_write(acs_tracts, acs_file, quiet = TRUE)
}
acs_tracts <- st_read(acs_file, quiet = TRUE)
# ACS geometry is in NAD83 (EPSG:4269): transform to match the districts
st_crs(acs_tracts)$epsg
## [1] 4269
acs_tracts <- st_transform(acs_tracts, 2263)
st_crs(acs_tracts) == st_crs(cd)
## [1] TRUE
nrow(acs_tracts)
## [1] 2327
Census tracts nest almost perfectly inside community districts, so I assign each tract to the district containing its interior point and sum the counts.
acs_cd <- acs_tracts %>%
st_point_on_surface() %>%
st_join(cd %>% select(BoroCD), join = st_within) %>%
st_drop_geometry() %>%
filter(!is.na(BoroCD)) %>%
group_by(BoroCD) %>%
summarise(across(c(occ_hhE, renter_hhE, pov_univE, pov_belowE, rb_univE, rb_50plusE),
~ sum(.x, na.rm = TRUE)))
cd <- cd %>%
left_join(acs_cd, by = "BoroCD") %>%
mutate(rate_per_1000_renters = 1000 * evictions / renter_hhE,
pct_renter = 100 * renter_hhE / occ_hhE,
pct_poverty = 100 * pov_belowE / pov_univE,
pct_rb50 = 100 * rb_50plusE / rb_univE)
ggplot(cd) +
geom_sf(aes(fill = rate_per_1000_renters), colour = "white", linewidth = 0.2) +
scale_fill_viridis_c(option = "magma", direction = -1,
name = "Evictions per\n1,000 renter\nhouseholds") +
labs(title = "Residential eviction rate by community district, NYC 2020",
caption = "Sources: NYC Open Data; NYC DCP (20D); ACS 2016-20 5-year") +
theme_void()
cd %>% st_drop_geometry() %>%
arrange(desc(rate_per_1000_renters)) %>%
slice_head(n = 10) %>%
select(BoroCD, borough, evictions, renter_hhE, rate_per_1000_renters,
pct_poverty, pct_rb50) %>%
knitr::kable(digits = 1, caption = "Ten districts with the highest eviction rate")
| BoroCD | borough | evictions | renter_hhE | rate_per_1000_renters | pct_poverty | pct_rb50 |
|---|---|---|---|---|---|---|
| 413 | Queens | 61 | 16313 | 3.7 | 7.7 | 26.3 |
| 203 | Bronx | 98 | 27567 | 3.6 | 36.1 | 30.9 |
| 212 | Bronx | 111 | 34831 | 3.2 | 17.6 | 31.2 |
| 412 | Queens | 114 | 37451 | 3.0 | 11.0 | 27.6 |
| 205 | Bronx | 131 | 43282 | 3.0 | 34.7 | 34.1 |
| 317 | Brooklyn | 121 | 40098 | 3.0 | 14.3 | 30.9 |
| 206 | Bronx | 79 | 26580 | 3.0 | 40.3 | 37.9 |
| 414 | Queens | 72 | 27128 | 2.7 | 17.0 | 24.0 |
| 207 | Bronx | 110 | 44966 | 2.4 | 27.8 | 35.1 |
| 204 | Bronx | 120 | 49755 | 2.4 | 33.6 | 34.9 |
The rate map tells a different story from the density map. Using renter households as the denominator, the highest rate is in south-east Queens (413, 3.7 per 1,000 renter households), followed by districts in the west Bronx (203, 205, 206), the north-east Bronx (212), Jamaica (412), East Flatbush (317) and the Rockaways (414). The north shore of Staten Island also has an elevated rate, while most of Manhattan below Harlem has the lowest rates in the city.
The outer-borough districts have fewer renters, so a moderate number of evictions produces a high rate. The west Bronx stands out on both measures: it has the most evictions and the highest risk per renter. Two patterns suggest which factors matter. District 413 has the highest rate but a poverty rate of only 7.7%, so poverty alone does not explain eviction. However, severe rent burden is consistently high (24–38%) across all ten highest-rate districts. Two caveats apply: Queens and Staten Island have the most missing coordinates, so their true rates may be higher still, and rates based on small renter populations are less stable.
cd %>%
st_drop_geometry() %>%
pivot_longer(c(pct_poverty, pct_rb50, pct_renter),
names_to = "variable", values_to = "value") %>%
mutate(variable = recode(variable,
pct_poverty = "% in poverty",
pct_rb50 = "% renters paying 50%+ on rent",
pct_renter = "% households renting")) %>%
ggplot(aes(value, rate_per_1000_renters)) +
geom_point(aes(colour = borough)) +
geom_smooth(method = "lm", colour = "black", linewidth = 0.5) +
facet_wrap(~ variable, scales = "free_x") +
labs(x = NULL, y = "Evictions per 1,000 renter households", colour = NULL,
title = "Eviction rate against neighbourhood conditions (59 districts)") +
theme_minimal() +
theme(legend.position = "bottom")
cd %>% st_drop_geometry() %>%
select(rate_per_1000_renters, pct_poverty, pct_rb50, pct_renter) %>%
cor(method = "spearman", use = "complete.obs") %>%
round(2) %>%
knitr::kable(caption = "Spearman correlations (robust to skew with n = 59)")
| rate_per_1000_renters | pct_poverty | pct_rb50 | pct_renter | |
|---|---|---|---|---|
| rate_per_1000_renters | 1.00 | 0.49 | 0.56 | 0.19 |
| pct_poverty | 0.49 | 1.00 | 0.65 | 0.75 |
| pct_rb50 | 0.56 | 0.65 | 1.00 | 0.21 |
| pct_renter | 0.19 | 0.75 | 0.21 | 1.00 |
Eviction rates rise with severe rent burden (Spearman ρ = 0.56) and poverty (ρ = 0.49), but have little relationship with the share of households renting (ρ = 0.19). Poverty and rent burden are themselves correlated (ρ = 0.65), so they partly measure the same disadvantage. The scatterplots also show that the Bronx districts sit at the top of both relationships, while several Queens districts have high rates despite low poverty.
set.seed(2020)
moran_rate <- moran.mc(cd$rate_per_1000_renters, lw, nsim = 999)
moran_rate
##
## Monte-Carlo simulation of Moran I
##
## data: cd$rate_per_1000_renters
## weights: lw
## number of simulations + 1: 1000
##
## statistic = 0.54418, observed rank = 1000, p-value = 0.001
## alternative hypothesis: greater
The eviction rate is also strongly clustered (Moran’s I = 0.544, p = 0.001), so the clustering found in Section 6 is not just an effect of where renters live.
I model the eviction rate on poverty and severe rent burden. Because Section 6 shows strong spatial clustering, I then test whether the OLS residuals are spatially autocorrelated. If they are, OLS assumes independence wrongly, and I fit a spatial error model.
ols <- lm(rate_per_1000_renters ~ pct_poverty + pct_rb50, data = cd)
summary(ols)
##
## Call:
## lm(formula = rate_per_1000_renters ~ pct_poverty + pct_rb50,
## data = cd)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.5589 -0.4416 -0.1628 0.3357 2.5146
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -0.66421 0.52471 -1.266 0.21080
## pct_poverty 0.01571 0.01448 1.085 0.28258
## pct_rb50 0.06724 0.02405 2.796 0.00708 **
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.7752 on 56 degrees of freedom
## Multiple R-squared: 0.2858, Adjusted R-squared: 0.2603
## F-statistic: 11.2 on 2 and 56 DF, p-value: 8.077e-05
# Are the residuals spatially autocorrelated?
ols_resid_test <- lm.morantest(ols, lw)
ols_resid_test
##
## Global Moran I for regression residuals
##
## data:
## model: lm(formula = rate_per_1000_renters ~ pct_poverty + pct_rb50,
## data = cd)
## weights: lw
##
## Moran I statistic standard deviate = 4.8159, p-value = 7.325e-07
## alternative hypothesis: greater
## sample estimates:
## Observed Moran I Expectation Variance
## 0.337458980 -0.038719271 0.006101343
In the OLS model, severe rent burden is the only significant predictor (β = 0.067, p = 0.007): a 10 percentage-point higher share of severely rent-burdened renters is associated with about 0.67 more evictions per 1,000 renter households. Once rent burden is controlled for, poverty is not significant (p = 0.28). Together the two variables explain about 29% of the variation (R² = 0.286).
However, the OLS residuals are strongly spatially autocorrelated (Moran’s I = 0.337, p < 0.001). This breaks the OLS assumption of independent errors and means that something spatially structured is missing from the model.
library(spatialreg)
sem <- errorsarlm(rate_per_1000_renters ~ pct_poverty + pct_rb50,
data = cd, listw = lw)
summary(sem)
##
## Call:errorsarlm(formula = rate_per_1000_renters ~ pct_poverty + pct_rb50,
## data = cd, listw = lw)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.92316 -0.44747 -0.10646 0.20533 2.23411
##
## Type: error
## Coefficients: (asymptotic standard errors)
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) -0.0044786 0.5867658 -0.0076 0.99391
## pct_poverty 0.0118146 0.0169017 0.6990 0.48454
## pct_rb50 0.0448894 0.0265852 1.6885 0.09131
##
## Lambda: 0.60167, LR test value: 15.039, p-value: 0.00010533
## Asymptotic standard error: 0.11701
## z-value: 5.1421, p-value: 2.717e-07
## Wald statistic: 26.441, p-value: 2.717e-07
##
## Log likelihood: -59.63151 for error model
## ML residual variance (sigma squared): 0.40525, (sigma: 0.63659)
## Number of observations: 59
## Number of parameters estimated: 5
## AIC: 129.26, (AIC for lm: 142.3)
The spatial error model fits better than OLS (AIC 129.3 vs 142.3), and the spatial error term is large and highly significant (λ = 0.60, p < 0.001). Once spatially structured unobserved factors are allowed for, the rent burden coefficient falls to 0.045 and is only significant at the 10% level (p = 0.091). Poverty remains non-significant.
So severe rent burden is the most consistent factor associated with evictions, but much of the geography of eviction is shared between neighbouring districts and is not explained by poverty or rent burden alone. Plausible missing factors include the mix of rent-stabilised and market-rate housing, the practices of particular landlords, and the ZIP-code rollout of Right to Counsel. With only 59 districts, the models also have limited statistical power.
Where were evictions concentrated? In 2020, 2,823 mappable residential evictions were executed, almost all before the moratorium on 17 March. They were concentrated in the west and centre of the Bronx, central and eastern Brooklyn and northern Manhattan. The five densest districts were all in the Bronx. Measured as a rate per renter household, south-east Queens, the north-east Bronx and the Rockaways also stand out, while the west Bronx is high on both measures.
Are they spatially clustered? Yes. Eviction density is strongly clustered (Moran’s I = 0.684, p = 0.001), and so is the eviction rate (Moran’s I = 0.544, p = 0.001). LISA identifies one significant hot spot of eight districts, running from northern Manhattan across the Harlem River into the west and centre of the Bronx. H0 is rejected.
What factors are associated with them? Severe rent burden is the factor most consistently associated with eviction rates. It is significant in OLS and remains positive, but weaker, once spatial dependence is modelled. Poverty is not significant once rent burden is controlled for, which suggests that housing cost pressure matters more than income alone. The strong spatial error term shows that other, unmeasured, spatially clustered factors also shape where evictions happen. H1 is therefore only partly supported.
tidycensus.