This project uses SQL for data analysis and Tableau for visualization to identify patterns in vehicle theft. By examining temporal, geographic, and vehicle-specific
data, this project aims to uncover key insights that can help inform crime prevention strategies. The dashboard provides an interactive experience for exploring theft
trends by location, time, and vehicle characteristics, assisting stakeholders to make data-driven decisions.
Database Name: stolen_vehicles_db
Tables:
-
locations
: Stores information about regions, countries, population, and density. -
make_details
: Contains information on vehicle make and type. -
stolen_vehicles
: Records vehicle theft data, including date, location, vehicle type, and color.
-
Database Setup: SQL queries were designed to extract insights by joining data from the
locations
,make_details
, andstolen_vehicles
tables. -
SQL Analysis Goals:
- Temporal Analysis: Identify theft trends by year, month, and day of the week.
- Spatial Analysis: Examine regions with high theft rates relative to population.
- Vehicle Characteristics: Identify which vehicle makes, models, and colors are frequently stolen.
- Calculated Insights: Compute theft density, theft rate per population, and vehicle age at theft.
-
Key Visualizations:
-
Theft Trends by Month and Day: Line and bar charts showing the most active periods for vehicle theft.
-
Regional Theft Rates: Geographic maps displaying theft rates per 1000 people by region.
-
Vehicle Theft by Make, Model, and Color: Horizontal bar charts revealing the most stolen makes, models, and colors.
-
Vehicle Age at Theft: Histogram showing the age distribution of stolen vehicles.
-
-
Dashboard Interactivity:
-
Filters: Enable filtering by region, vehicle type, make, and color.
-
Highlight Actions: Allow users to click on a specific field (e.g., region) and view related information in other charts.
-
Tooltips: Display detailed theft statistics and insights in each chart.
-
-
Temporal Analysis of Thefts: Analyzes patterns of theft over time, broken down by year, month, and day of the week.
-
High-Risk Regions Analysis: Determines regions with high theft rates per 1000 people to highlight geographic hotspots.
-
Top Stolen Vehicle Types and Colors: Identifies the most commonly stolen vehicle makes, models, and colors.
-
Vehicle Age at Theft: Calculates the average age of vehicles at the time of theft, providing insights into possible vulnerabilities.
-
Visuals: Charts on temporal patterns, geographic hotspots, vehicle make analysis and vehicle age distribution.
-
Filters: Allow exploration of data by region, make, vehicle type, color, and more.
-
Highlights & Tooltips: Interact with specific data points to reveal deeper insights.
Key findings that can inform future theft prevention:
-
Temporal Trends: Peak months, specific days, and high-risk times for theft.
-
Regional Risks: Areas with high theft rates per population, helping target regional preventive measures.
-
Vehicle Vulnerability: Makes, models, and colors that are frequently stolen.
-
Vehicle Age: Insights into whether older or newer vehicles are more vulnerable.
-
Data Refresh Automation: Set up a process for regularly updating the database with new records.
-
Predictive Modeling: Implement machine learning models in Python to forecast future thefts based on historical data.
-
Advanced Filtering and Alerts: Create custom filters and alerts for unusual theft patterns.
-
Additional Data Sources: Integrate related data such as local crime rates or economic status to broaden context.
-
SQL Database Setup:
-
Load tables into a SQL environment (MySQL)
-
Run SQL queries to generate initial insights.
-
-
Tableau Dashboard:
-
Import SQL data into Tableau.
-
Set up the described visualizations, filters, and interactions.
-
Customize tooltips, actions, and dashboard layout.
-
The Stolen Vehicle Analysis Dashboard offers a comprehensive view of vehicle theft patterns through SQL analysis and Tableau visualization. This dashboard can be a
valuable tool for identifying high-risk regions, vehicle types, and trends, supporting efforts to reduce theft and improve security.