Project 02
Calgary has over 200 communities, each with distinct crime patterns shaped by demographics and location. This project classifies communities by crime risk level using 77K+ crime records and census data, helping city planners and residents make informed decisions about safety and resource allocation.
Interactive app
Dataset summary with crime categories, community counts, and risk level distributions
Interactive map of Calgary communities color-coded by predicted risk classification
Temporal crime trends, category breakdowns, and per-capita rate analysis across communities
Predict crime risk level for any community based on demographic and geographic features
Performance
Approach
Fetched crime statistics and civic census data from Calgary Open Data via the Socrata API. Aggregated crime counts at the community level with per-capita rates and category breakdowns. Created risk labels using percentile-based thresholds. Trained and compared Logistic Regression, Decision Tree, Random Forest, and Gradient Boosting classifiers, evaluating with accuracy and F1 scores.