OCA.DEV
arrow_back ALL PROJECTSTÜM PROJELER

smart-city-traffic-analysis

38,310,226 ROWS

38.3 million New York taxi trips modelled as a single graph to find where the city's traffic actually bottlenecks. PageRank ranks the critical zones, Louvain finds the communities, and a node-removal simulation measures what breaks when they close. 38,3 milyon New York taksi yolculuğu tek bir graph olarak modellenip şehrin trafiğinin gerçekte nerede tıkandığı bulunuyor. PageRank kritik bölgeleri sıralıyor, Louvain toplulukları çıkarıyor, düğüm silme simülasyonu da bunlar kapandığında neyin bozulduğunu ölçüyor.

38,310,226 raw records ham kayıt
97.63% survived cleaning temizlikten geçti
258 / 9,990 nodes / edges düğüm / kenar
40.7 s full run, t3.xlarge tam koşu, t3.xlarge
Geographic map of the New York taxi network coloured by community, with JFK Airport as an outlying hub

Three communities Louvain found, drawn on their real coordinates. JFK sits far out on its own and still pulls long edges into the Manhattan core — which is exactly why removing it does so much damage. Louvain'in bulduğu üç topluluk, gerçek koordinatlarına çizilmiş. JFK tek başına uzakta duruyor ve buna rağmen Manhattan çekirdeğine uzun kenarlar çekiyor — çıkarılınca bu kadar hasar vermesinin sebebi tam olarak bu.

Walk the network yourselfAğda kendin dolaş

258 ZONES ON THEIR REAL COORDINATES

Every circle is a taxi zone, sized by PageRank and coloured by the community Louvain found; the lines are the 299 heaviest flows between them. Click a zone for its numbers. Then step through the removal simulation and watch what happens at step four. Her daire bir taksi bölgesi — büyüklüğü PageRank'e, rengi Louvain'in bulduğu topluluğa göre; çizgiler aralarındaki en ağır 299 akış. Sayıları için bir bölgeye tıkla. Sonra silme simülasyonunu adım adım ilerlet ve dördüncü adımda ne olduğuna bak.

OUTER · 182 SOUTH · 44 CORE · 32
Loading 258 zones…

The simulation removes zones in order of criticality and recomputes the graph each time. Steps one to three cost flow but leave the network whole. Step four is JFK, and the component count goes from one to sixteen — the same finding the static figures below report. Simülasyon bölgeleri kritiklik sırasıyla çıkarıp çizgeyi her seferinde yeniden hesaplıyor. Birinci ve üçüncü adımlar akışa mal oluyor ama ağı bütün bırakıyor. Dördüncü adım JFK ve bileşen sayısı birden on altıya çıkıyor — aşağıdaki durağan figürlerin raporladığı bulgunun aynısı.

Three findingsÜç bulgu

1 → 16 COMPONENTS AFTER REMOVING JFK

Closing one airport does not slow the network down, it cuts it apart. The graph stops being one connected piece and becomes sixteen. Bir havalimanını kapatmak ağı yavaşlatmıyor, kesip ayırıyor. Graph tek bağlı parça olmaktan çıkıp on altıya bölünüyor.

34.1% FLOW LOST TO THE TOP FIVE ZONES

Removing the five most critical zones one at a time costs just over a third of the flow between them. En kritik beş bölgeyi teker teker çıkarmak, aralarındaki akışın üçte birinden fazlasına mal oluyor.

17th EAST HARLEM SOUTH ON PAGERANK

It has the highest betweenness of any zone at 1.00 while ranking 17th on PageRank. It is a bridge, not a destination — and only one of the two measures sees it. 1,00 ile en yüksek arasındalığa sahip ama PageRank'te 17. sırada. Bir varış noktası değil köprü — ve bunu iki ölçütten yalnızca biri görüyor.

The analysisAnaliz

NYC TLC 2023
Four-panel dashboard: top zones by PageRank, the removal simulation, PageRank against betweenness, and the community split
The whole analysis on one sheet Upper East Side North leads on PageRank at 0.02573. The scatter in the lower left is where the two centrality measures disagree, and that disagreement is the interesting part. PageRank'te başı Upper East Side North çekiyor: 0,02573. Sol alttaki dağılım iki merkezilik ölçütünün ayrıştığı yer ve asıl ilginç kısım o ayrışma.
Flow remaining in the network as the most critical zones are removed one at a time
Closing zones one at a time Each step removes the next most critical zone and re-measures. The curve falls steadily rather than off a cliff, which says the network has redundancy — right up until JFK goes. Her adım bir sonraki en kritik bölgeyi çıkarıp yeniden ölçüyor. Eğri uçurumdan düşmüyor, düzenli iniyor; bu da ağda yedeklilik olduğunu söylüyor — JFK gidene kadar.

Laptop scale and cluster scale, same code path Dizüstü ölçeği ve küme ölçeği, aynı kod yolu

Mode Engine Data size Where it runs
Local demo Pandas + NetworkX < 10M rows Laptop / PC
Cloud production PySpark + GraphFrames 10M+ rows AWS EMR / Google Dataproc

Read furtherDevamını oku