Machine Learning · Urban

Manhattan Residential Clustering

An interactive map that classifies Manhattan's residential buildings from eleven NYC datasets, using weighted K-means to reveal socio-spatial, architectural, evolutionary, and economic patterns.

Methods

Weighted K-means clustering · Geospatial analysis · Data visualization

Data

Eleven NYC building & street-block datasets

Tools & Stack

Python (pandas, GeoPandas, scikit-learn) · Rhino + Grasshopper · Mapbox GL JS

Overview

Manhattan's residential buildings can be described by characteristics such as construction year, height, and transit access. Eleven building- and street-block-level datasets were combined, merged at the building level using the BIN (Building Identification Number) as the key, so each building can be reasoned about across form, value, and access at once.
The scope is Manhattan's residential stock: Tax Class 1 (mostly residential property of up to three units) and all other primarily residential property outside Class 1.

Data ingestion

The dataset was assembled from several public sources and merged at the building level on the BIN. Records provided at the tax-lot level were expanded to individual buildings, and building attributes were joined to street blocks for neighborhood-scale context. Subway travel time was computed separately in Rhino + Grasshopper as a shortest-path analysis to the nearest station.
The eleven variables, their sources, and headline statistics are summarized below.
VariableSourceKey statistic
Building storiesDOF Property ValuationMedian 5 · Max 71
Construction yearOTI BuildingMedian 1910 · 1795–2025
Building heightOTI BuildingMedian 61.5 ft · up to 900 ft
Time to subwayRhino + GrasshopperMedian 4.93 min
Average valueDOF Property ValuationMedian $441,500
Value per sqftDOF Property ValuationMedian $261
Value change 2024–25DOF Property ValuationMedian +3.6% (-23% to +64%)
Building classDOF Property ValuationMostly elevator / mixed-use
Elevator accessDOB elevator permits38.1% with · 61.9% without
Residential areaDOF Property ValuationMedian 1,995 sqft
Residential shareDOF Property ValuationMedian 91%
Sources: NYC OpenData. Department of Finance (DOF), Office of Technology and Innovation (OTI), Department of Buildings (DOB).

Explore the building data

Each layer is a building-footprint map of one variable, aligned to Manhattan on the basemap below. Switch layers to see how form, value, and access vary across the island.

Method: weighted K-means

K-means clustering was applied to the assembled features. Variables were normalized and given custom weights so that the most relevant factors drove each grouping. Four weighting schemes were run, each emphasizing a different lens, and the resulting groups were interpreted qualitatively and given descriptive, context-specific names.

Clustering results

Four clustering lenses each tell a different story about the same building stock. Switch between them to compare how the weighting changes which patterns emerge.
Selected clustering of Manhattan residential buildings