Skip to content

Add commute OD traffic analysis (pendeln)#2

Draft
tanmay7264 wants to merge 5 commits intomainfrom
claude/analyze-commute-od-traffic-lTcl9
Draft

Add commute OD traffic analysis (pendeln)#2
tanmay7264 wants to merge 5 commits intomainfrom
claude/analyze-commute-od-traffic-lTcl9

Conversation

@tanmay7264
Copy link
Copy Markdown
Owner

Summary

  • Adds analyze_commute_od.py: a gravity-model Origin-Destination analysis for commuting (Pendeln) flows across 10 city zones
  • Reports top 10 busiest corridors, zone-level departure/arrival balance, distance-band distribution (short/medium/long), and directional asymmetry between pairs
  • Uses a reproducible synthetic dataset (gravity model + controlled noise) representative of real urban commute patterns

Key findings from the analysis

  • Mitte is the dominant destination zone (+1,370 net arrivals), acting as the main employment hub
  • Kreuzberg → Mitte is the busiest corridor (580 trips)
  • 55.6% of commutes fall in the 3–6 km medium-distance band; only 10.8% are long-distance (> 6 km)
  • Outer zones (Neukölln, Schöneberg, Weissensee) show strong asymmetric outflow toward the centre

Test plan

  • Run python3 analyze_commute_od.py and verify output prints without errors
  • Check zone summary totals are internally consistent (sum of net flows ≈ 0)
  • Verify top corridor rankings make geographic sense given zone centroids

https://claude.ai/code/session_01RJPMyUXVqzcyxfwEcw6jYF

tanmay7264 and others added 5 commits August 22, 2021 21:13
Implements a gravity-model-based Origin-Destination analysis for
commuting flows across 10 city zones. Reports top corridors, zone
departure/arrival balance, distance-band distribution, and directional
asymmetry between zone pairs.

https://claude.ai/code/session_01RJPMyUXVqzcyxfwEcw6jYF
Dark-themed dashboard rendering all analysis sections (KPI cards,
top corridors, zone balance, distance bands, directional asymmetry)
as styled tables and bar charts with no external dependencies.

https://claude.ai/code/session_01RJPMyUXVqzcyxfwEcw6jYF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants