SlideShare a Scribd company logo
1 of 11
Download to read offline
San Francisco Crime Analysis – Report
-By Rohit Dandona and Sameer Darekar
Introduction:
From 1934 to 1963, San Francisco was infamous for housing some of the world's most notorious criminals
on the inescapable island of Alcatraz. Today, the city is known more for its tech scene than its criminal
past. But, with rising wealth inequality, housing shortages, and a proliferation of expensive digital toys
riding BART to work, there is no scarcity of crime in the city by the bay. This project examines the San
Francisco Police Department crime records between January 1st 2003 and May 13st 2015. It visualizes the
trends of major crimes and drugs in the city across time and locations. This analysis has been carried out
to facilitate law enforcement officers to enhance their strategies based on time and location.
R and Tableau have been used for data processing and visualizations.
Dataset:
This dataset contains incidents derived from SFPD Crime Incident Reporting system. The data ranges from
1/1/2003 to 5/13/2015.
Data fields:
 Dates - timestamp of the crime incident
 Category - category of the crime incident
 Descript - detailed description of the crime incident
 DayOfWeek - the day of the week
 PdDistrict - name of the Police Department District
 Resolution - how the crime incident was resolved
 Address - the approximate street address of the crime incident
 X – Longitude
 Y - Latitude
Data-Preprocessing:
The date field in the dataset is a timestamp present in the “MM/dd/yyyy hh:mm:ss” format and is not of
much utility if used as such.
Tableau provides the facility of parsing through a timestamp through a utility called “DATEPART ” and
extract specific segments of the timestamp. For example:
DATEPART('hour',[Dates])
A part of the analysis required representing the data by five separate parts of the day. The following
construct was used to derive a column in Tableau:
IF DAY([Dates]) >= 4 AND DAY([Dates]) <= 8 THEN 'EARLY MORNING(4 AM to 8 AM)'
ELSEIF DAY([Dates]) > 8 AND DAY([Dates]) < 12 THEN 'MORNING(8 AM to 12 PM)'
ELSEIF DAY([Dates]) >= 12 AND DAY([Dates]) < 17 THEN 'AFTERNOON(12 PM to 5 PM)'
ELSEIF DAY([Dates]) >= 17 AND DAY([Dates]) <= 21 THEN 'EVENING (5 PM to 9 PM)'
ELSE 'NIGHT(9 PM to 4 AM)' END
The address data is of the following form
1. 1500 Block of LOMBARD ST
2. OAK ST / LAGUNA ST
The first one is actually a location on the street but the second one is the intersection of two streets, we
extracted the streets from both of them for plotting the bubble chart shown in analysis section. The rest
of the columns are clean and no further processing was required.
Analysis of Crime
 Trends:
There are 39 categories of crime report incidents available in the dataset including “Other offenses”
and “Non-criminal”.
Larceny and theft was the most common crime in San Francisco between January 1st 2003 and May
13th 2015, with a total of 174,900 reported incidents. The next two highest crime categories, “Other
offenses” (98,281 reported incidents) and “Non-criminal” (98,172 reported incidents), are omitted
from discussion in the analyses. Instead, the key focus is on the following high crime categories:
larceny and theft, assault (76,876 reported incidents), drugs (53,971 reported incidents), vehicle theft
(53,781 reported incidents), vandalism (44,725 reported incidents), drugs (21,910 reported incidents)
and burglary (19,226 reported incidents).
 Month wise distribution:
Since the crime incidents recorded in 2015 are only till May, those records have been removed
for this analysis. The month of February is the safest and is observed to have the least crime
incidents reported. October is the least safe with the maximum number of reported crime
incidents.
 Region wise distribution:
A contour plot to represent the region wise density of crime leveraging the available
latitude/longitude information of the reported crime, is as follows:
A giant hotspot can be observed in the Southern and Tenderloin region with relatively less dense
plots in the surrounding neighborhoods. Majority of the crime seems to be concentrated in these
and surrounding regions.
Plotting a line graph to represent crime in each region on each day of a week uncovers some
interesting trends:
Crime rate by day of the week:
Clearly, the Southern region is the most notorious with the maximum number of crimes reported
followed by the Northern region. Richmond is the safest place to be in San Francisco.
The rate of crime is observed to increase over the weekend. The number of reported incidents
seems to be the maximum on Fridays with a total number of 133,743 reported incidents. For
almost all regions, the same trend can be observed. Tenderloin, however, is an exception as the
crime rate in this region decreases over the weekend and is the highest on Wednesdays.
Wednesday, Friday and Saturday are the most crime prominent days. Interestingly, the least
amount of incidents were reported on Mondays (116,707 reported incidents) followed by
Sundays. In the Southern, Northern, Central and Mission districts, the number of crimes increased
sharply on Friday and Saturday, then declined for rest of the week.
 Specific crime trends
We examine the crime trends of a hand full of crimes (Kidnapping, Fraud, Robbery, Missing
Person, Burglary, Vandalism, Vehicle Theft, Drug/Narcotics, Assault and Larceny/Theft). The
following trends are observed:
Interestingly, Drug/Narcotic related crimes decrease over the weekend (unlike other categories).
The related reported incidents are the maximum on a Friday.
Among the high crime categories, larceny and theft tend to occur on Friday and Saturday. On the
other hand, the occurrences of assault steadily increased from Thursday to Sunday, while burglary
generally occurred more often during the weekdays than the weekends. Drug crimes were most
commonly reported on Wednesday and least reported during the weekends, and robberies
happened by approximately the same frequency every day.
 Hourly Crime Analysis
The overall hourly crime trends are as follows:
Hourly trend analysis for specific crimes:
The hourly trends unravel some interesting crime facts:
 5 am is the safest part of a day with 8,637 reported incidents and 6 pm is the most
dangerous hour with 55,104 reported incidents.
 Surprisingly, 12 pm is the second most dangerous hour during a day and in fact is the hour
where incidents reported under some crime categories is maximum.
 Kidnapping and stolen property incidents take place uniformly throughout the day
Violent Crimes in San Francisco: Assault, Robbery and Sex Offences (forcible)
Distribution:
Violent crime density (each) by parts of day:
 Assault:
Part of Day
Time
Frame
Early
Morning
4am to
8am
Morning
8am to
12pm
Afternoon
12pm to
5 pm
Evening
5pm to
9pm
Night
9pm to
4am
Distribution of Assault crimes is more or less the same at different times of the day.
 Robbery:
A slight shift in epicenter of the crime can be observed over different parts of the day.
 Sex Offences(forcible):
Different Patterns can be observed at different time with increase in density at night.
 Larceny and Theft:
Crime is spread across multiple regions early in the mornings and at night. It is concentrated on a
single region in the afternoon.
Food for thought
 The following shows a bar graph representing the percentage of incidents which have been
investigated by law enforcement agencies vs the ones that haven’t been.
Surprisingly, for 61.02% of the reported incidents no conclusive action has been taken.
 The following graph shows the top three streets where the maximum crime incidents were
reported [Bryant Street, Market Street, Mission Street]:
The police commission office is located on 850 Bryant Street which is just near the 800 Bryant
Street which has the most crime rate in terms of streets.
Market Street, with the second highest number of crime incidents reported, has a police station
0.5 miles away from it:
Conclusion
 Tenderloin and Southern are the PD districts needing special attention
 Famous Neighborhoods have more crime rate
 Violent crime seems to be concentrated around Tenderloin.
 Assault is most common violent crime.
 Crime rate is highest at 6 pm and lowest at 5 am with a spike at 12 in afternoon that means
whenever there are people on the streets the crime rate is higher.
 Pattern observed for each crime should be followed while deploying police personnel
 SFPD needs to work more proactively as the 61% of cases are still not resolved
 Also the crime rate near the police station needs to be decreased the SFPD needs to create terror
in the minds of criminals.
 Need to find out why the months February has the lowest and October has the highest crime
commited
 The second part of the Kaggle competetion that is predicting the classes of the crime has also
been completed and in process for further improvement, the current rank is 672 out of 1886[4].
References
[1] https://www.kaggle.com/c/sf-crime/data for Dataset
[2] http://www.r-bloggers.com/google-maps-and-ggmap/ for google maps and using ggmap in R.
[3] http://blog.dominodatalab.com/geographic-visualization-with-rs-ggmaps/ creating clusters
and heatmaps in R
[4] https://www.kaggle.com/c/sf-crime/leaderboard?submissionId=2963937 Kaggle competition
submission

More Related Content

What's hot

Concepts of Intelligence Led Policing
Concepts of Intelligence Led PolicingConcepts of Intelligence Led Policing
Concepts of Intelligence Led Policinggroundskeeper20
 
Lecture pnp operations manual presentation
Lecture   pnp operations manual presentationLecture   pnp operations manual presentation
Lecture pnp operations manual presentationMcypp Ncmf
 
Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...
Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...
Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...Associate Professor in VSB Coimbatore
 
Community Relations and Policing
Community Relations and Policing Community Relations and Policing
Community Relations and Policing Donald Stuckey
 
Criminal Justice 3: Prepare to Write a Report
Criminal Justice 3: Prepare to Write a ReportCriminal Justice 3: Prepare to Write a Report
Criminal Justice 3: Prepare to Write a ReportJean Reynolds
 
Regiones policiales
Regiones policialesRegiones policiales
Regiones policialesronaldsms1
 
Improving police-community-relations-through-community-policing
Improving police-community-relations-through-community-policingImproving police-community-relations-through-community-policing
Improving police-community-relations-through-community-policingLyrma Cajegas
 
Writing Better Police Reports: Probable Cause
Writing Better Police Reports: Probable CauseWriting Better Police Reports: Probable Cause
Writing Better Police Reports: Probable CauseJean Reynolds
 
United Nations Convention Against Transnational Organized Crime.
United Nations Convention Against Transnational Organized Crime.United Nations Convention Against Transnational Organized Crime.
United Nations Convention Against Transnational Organized Crime.Minakshi Das
 
Philippine National Police Criminal Investigation Manual
Philippine National Police Criminal Investigation ManualPhilippine National Police Criminal Investigation Manual
Philippine National Police Criminal Investigation ManualHarve Abella
 
Criminal investigation manual
Criminal investigation manualCriminal investigation manual
Criminal investigation manualLord Gonzaga
 
Phil Criminal Justice Process (Presentation)
Phil Criminal Justice Process (Presentation)Phil Criminal Justice Process (Presentation)
Phil Criminal Justice Process (Presentation)probation
 
Fundamentalsof Crime Mapping 1
Fundamentalsof Crime Mapping 1Fundamentalsof Crime Mapping 1
Fundamentalsof Crime Mapping 1Osokop
 

What's hot (20)

Concepts of Intelligence Led Policing
Concepts of Intelligence Led PolicingConcepts of Intelligence Led Policing
Concepts of Intelligence Led Policing
 
Lecture pnp operations manual presentation
Lecture   pnp operations manual presentationLecture   pnp operations manual presentation
Lecture pnp operations manual presentation
 
Police patrol
Police patrolPolice patrol
Police patrol
 
36 IP rights.pptx
36 IP rights.pptx36 IP rights.pptx
36 IP rights.pptx
 
Arrest
ArrestArrest
Arrest
 
Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...
Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...
Level of Effectiveness of the Barangay Peacekeeping Action Team in Relation t...
 
Community Relations and Policing
Community Relations and Policing Community Relations and Policing
Community Relations and Policing
 
Criminal Justice 3: Prepare to Write a Report
Criminal Justice 3: Prepare to Write a ReportCriminal Justice 3: Prepare to Write a Report
Criminal Justice 3: Prepare to Write a Report
 
Regiones policiales
Regiones policialesRegiones policiales
Regiones policiales
 
Improving police-community-relations-through-community-policing
Improving police-community-relations-through-community-policingImproving police-community-relations-through-community-policing
Improving police-community-relations-through-community-policing
 
Writing Better Police Reports: Probable Cause
Writing Better Police Reports: Probable CauseWriting Better Police Reports: Probable Cause
Writing Better Police Reports: Probable Cause
 
United Nations Convention Against Transnational Organized Crime.
United Nations Convention Against Transnational Organized Crime.United Nations Convention Against Transnational Organized Crime.
United Nations Convention Against Transnational Organized Crime.
 
CDI Exam
CDI ExamCDI Exam
CDI Exam
 
Philippine National Police Criminal Investigation Manual
Philippine National Police Criminal Investigation ManualPhilippine National Police Criminal Investigation Manual
Philippine National Police Criminal Investigation Manual
 
Criminal investigation manual
Criminal investigation manualCriminal investigation manual
Criminal investigation manual
 
Phil Criminal Justice Process (Presentation)
Phil Criminal Justice Process (Presentation)Phil Criminal Justice Process (Presentation)
Phil Criminal Justice Process (Presentation)
 
Criminalistica de Campo
Criminalistica de CampoCriminalistica de Campo
Criminalistica de Campo
 
Fundamentalsof Crime Mapping 1
Fundamentalsof Crime Mapping 1Fundamentalsof Crime Mapping 1
Fundamentalsof Crime Mapping 1
 
Servicio de policia comunal
Servicio de policia comunalServicio de policia comunal
Servicio de policia comunal
 
Predictive Policing
Predictive PolicingPredictive Policing
Predictive Policing
 

Viewers also liked

San Francisco Crime Infographics
San Francisco Crime InfographicsSan Francisco Crime Infographics
San Francisco Crime InfographicsRohit Dandona
 
San Francisco Crime Prediction Report
San Francisco Crime Prediction ReportSan Francisco Crime Prediction Report
San Francisco Crime Prediction ReportRohit Dandona
 
La redacción juridica_IAFJSR
La redacción juridica_IAFJSRLa redacción juridica_IAFJSR
La redacción juridica_IAFJSRMauri Rojas
 
Nas letras das músicas *º ano A e B 2017
Nas letras das músicas *º ano A e B 2017Nas letras das músicas *º ano A e B 2017
Nas letras das músicas *º ano A e B 2017Rosângela Ferreira Luz
 
San Francisco Crime Analysis Classification Kaggle contest
San Francisco Crime Analysis Classification Kaggle contestSan Francisco Crime Analysis Classification Kaggle contest
San Francisco Crime Analysis Classification Kaggle contestSameer Darekar
 
San Francisco crime analysis
San Francisco crime analysisSan Francisco crime analysis
San Francisco crime analysisSameer Darekar
 
3Com SL-3055 (5 NEW IN BO
3Com SL-3055 (5 NEW IN BO3Com SL-3055 (5 NEW IN BO
3Com SL-3055 (5 NEW IN BOsavomir
 
Geschäftspräsentation Synergy 2017
Geschäftspräsentation Synergy 2017Geschäftspräsentation Synergy 2017
Geschäftspräsentation Synergy 2017Haggi1
 
Tieu chuan thiet ke nut giao thong
Tieu chuan thiet ke nut giao thongTieu chuan thiet ke nut giao thong
Tieu chuan thiet ke nut giao thongGoogles Chrome
 
SERIES MAS VISTAS EN NETFLIX
SERIES MAS VISTAS EN NETFLIXSERIES MAS VISTAS EN NETFLIX
SERIES MAS VISTAS EN NETFLIXMoni_gr
 
DEPARTAMENTO DE CORTES
DEPARTAMENTO DE CORTESDEPARTAMENTO DE CORTES
DEPARTAMENTO DE CORTESmaholi02
 
Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...
Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...
Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...cesar jimenez
 
Manual de Motocicletas
Manual de MotocicletasManual de Motocicletas
Manual de MotocicletasMarks03
 

Viewers also liked (20)

San Francisco Crime Infographics
San Francisco Crime InfographicsSan Francisco Crime Infographics
San Francisco Crime Infographics
 
San Francisco Crime Prediction Report
San Francisco Crime Prediction ReportSan Francisco Crime Prediction Report
San Francisco Crime Prediction Report
 
La redacción juridica_IAFJSR
La redacción juridica_IAFJSRLa redacción juridica_IAFJSR
La redacción juridica_IAFJSR
 
Gupo Aval
Gupo Aval Gupo Aval
Gupo Aval
 
Nas letras das músicas *º ano A e B 2017
Nas letras das músicas *º ano A e B 2017Nas letras das músicas *º ano A e B 2017
Nas letras das músicas *º ano A e B 2017
 
San Francisco Crime Analysis Classification Kaggle contest
San Francisco Crime Analysis Classification Kaggle contestSan Francisco Crime Analysis Classification Kaggle contest
San Francisco Crime Analysis Classification Kaggle contest
 
San Francisco crime analysis
San Francisco crime analysisSan Francisco crime analysis
San Francisco crime analysis
 
3Com SL-3055 (5 NEW IN BO
3Com SL-3055 (5 NEW IN BO3Com SL-3055 (5 NEW IN BO
3Com SL-3055 (5 NEW IN BO
 
sistemas
sistemassistemas
sistemas
 
Geschäftspräsentation Synergy 2017
Geschäftspräsentation Synergy 2017Geschäftspräsentation Synergy 2017
Geschäftspräsentation Synergy 2017
 
Tieu chuan thiet ke nut giao thong
Tieu chuan thiet ke nut giao thongTieu chuan thiet ke nut giao thong
Tieu chuan thiet ke nut giao thong
 
Como consultar el saldo en tu tarjeta
Como consultar el saldo en tu tarjetaComo consultar el saldo en tu tarjeta
Como consultar el saldo en tu tarjeta
 
Erasmus+ 2017 englishversion3
Erasmus+ 2017 englishversion3Erasmus+ 2017 englishversion3
Erasmus+ 2017 englishversion3
 
SERIES MAS VISTAS EN NETFLIX
SERIES MAS VISTAS EN NETFLIXSERIES MAS VISTAS EN NETFLIX
SERIES MAS VISTAS EN NETFLIX
 
Tarea7j ose
Tarea7j oseTarea7j ose
Tarea7j ose
 
Caderno questoes 5o_ano
Caderno questoes 5o_anoCaderno questoes 5o_ano
Caderno questoes 5o_ano
 
Toma de decisiones
Toma de decisionesToma de decisiones
Toma de decisiones
 
DEPARTAMENTO DE CORTES
DEPARTAMENTO DE CORTESDEPARTAMENTO DE CORTES
DEPARTAMENTO DE CORTES
 
Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...
Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...
Accidentes de trabajo causas, efectos y prevención. cesar eduardo jiménez cas...
 
Manual de Motocicletas
Manual de MotocicletasManual de Motocicletas
Manual de Motocicletas
 

Similar to San Francisco Crime Analysis

Units 4, 5, 24, 31 task 4 secondary evidence (3)
Units 4, 5, 24, 31   task 4 secondary evidence (3)Units 4, 5, 24, 31   task 4 secondary evidence (3)
Units 4, 5, 24, 31 task 4 secondary evidence (3)bentheman21
 
Units 4, 5, 24, 31 task 4 secondary evidence
Units 4, 5, 24, 31   task 4 secondary evidenceUnits 4, 5, 24, 31   task 4 secondary evidence
Units 4, 5, 24, 31 task 4 secondary evidencelrosenfeld1
 
Secondary evidence task 4
Secondary evidence task 4Secondary evidence task 4
Secondary evidence task 4nikonmedia
 
Secondary evidence
Secondary evidenceSecondary evidence
Secondary evidencekarrass1
 
Units 4, 5, 24, 31 task 4 secondary evidence (1)
Units 4, 5, 24, 31   task 4 secondary evidence (1)Units 4, 5, 24, 31   task 4 secondary evidence (1)
Units 4, 5, 24, 31 task 4 secondary evidence (1)lrosenfeld1
 
Police Minister Bheki Cele's speaking notes on the Crime Statistics
Police Minister Bheki Cele's speaking notes on the Crime StatisticsPolice Minister Bheki Cele's speaking notes on the Crime Statistics
Police Minister Bheki Cele's speaking notes on the Crime StatisticsSABC News
 
San Francisco Crime Classification with Tableau 10.4
San Francisco Crime Classification with Tableau 10.4San Francisco Crime Classification with Tableau 10.4
San Francisco Crime Classification with Tableau 10.4RAHUL SINGH
 
M.Gallagher Exam2
M.Gallagher Exam2M.Gallagher Exam2
M.Gallagher Exam2mgalla22
 
Crimes Project - Data Mining & Analytics
Crimes Project - Data Mining & AnalyticsCrimes Project - Data Mining & Analytics
Crimes Project - Data Mining & AnalyticsTeri Grossheim
 
FBI report compared to crimes in Sweden
FBI report compared to crimes in SwedenFBI report compared to crimes in Sweden
FBI report compared to crimes in SwedenADVICEDERNBACK
 
An Intelligence Analysis of Crime Data for Law Enforcement Using Data Mining
An Intelligence Analysis of Crime Data for Law Enforcement Using Data MiningAn Intelligence Analysis of Crime Data for Law Enforcement Using Data Mining
An Intelligence Analysis of Crime Data for Law Enforcement Using Data MiningWaqas Tariq
 
Crime Analysis at Chicago
Crime Analysis at ChicagoCrime Analysis at Chicago
Crime Analysis at ChicagoRoshik Ganesan
 
Student #1 I have chosen to write about the history of data anal.docx
Student #1 I have chosen to write about the history of data anal.docxStudent #1 I have chosen to write about the history of data anal.docx
Student #1 I have chosen to write about the history of data anal.docxjohniemcm5zt
 
Building an urban theft map by analyzing newspaper - SMAP 2018
Building an urban theft map by analyzing newspaper - SMAP 2018Building an urban theft map by analyzing newspaper - SMAP 2018
Building an urban theft map by analyzing newspaper - SMAP 2018Laura Po
 
Untold story of karachi
Untold story of karachiUntold story of karachi
Untold story of karachiRobin Patras
 
Analyzing the Spatial Distribution of Crime in Annapolis County
Analyzing the Spatial Distribution of Crime in Annapolis CountyAnalyzing the Spatial Distribution of Crime in Annapolis County
Analyzing the Spatial Distribution of Crime in Annapolis CountyCOGS Presentations
 
georgia-tech-atlanta
georgia-tech-atlantageorgia-tech-atlanta
georgia-tech-atlantaPeter Kim
 
Stategic_Crime_Report_Crime_Analyses_340[1]
Stategic_Crime_Report_Crime_Analyses_340[1]Stategic_Crime_Report_Crime_Analyses_340[1]
Stategic_Crime_Report_Crime_Analyses_340[1]Erasmo Skylar Ruiz
 
Unit 8 project identifying crime patterns e hall
Unit 8 project identifying  crime patterns e hallUnit 8 project identifying  crime patterns e hall
Unit 8 project identifying crime patterns e hallElizabeth Hall
 

Similar to San Francisco Crime Analysis (20)

Units 4, 5, 24, 31 task 4 secondary evidence (3)
Units 4, 5, 24, 31   task 4 secondary evidence (3)Units 4, 5, 24, 31   task 4 secondary evidence (3)
Units 4, 5, 24, 31 task 4 secondary evidence (3)
 
Units 4, 5, 24, 31 task 4 secondary evidence
Units 4, 5, 24, 31   task 4 secondary evidenceUnits 4, 5, 24, 31   task 4 secondary evidence
Units 4, 5, 24, 31 task 4 secondary evidence
 
Secondary evidence task 4
Secondary evidence task 4Secondary evidence task 4
Secondary evidence task 4
 
Secondary evidence
Secondary evidenceSecondary evidence
Secondary evidence
 
Units 4, 5, 24, 31 task 4 secondary evidence (1)
Units 4, 5, 24, 31   task 4 secondary evidence (1)Units 4, 5, 24, 31   task 4 secondary evidence (1)
Units 4, 5, 24, 31 task 4 secondary evidence (1)
 
Secondary Evidence
Secondary EvidenceSecondary Evidence
Secondary Evidence
 
Police Minister Bheki Cele's speaking notes on the Crime Statistics
Police Minister Bheki Cele's speaking notes on the Crime StatisticsPolice Minister Bheki Cele's speaking notes on the Crime Statistics
Police Minister Bheki Cele's speaking notes on the Crime Statistics
 
San Francisco Crime Classification with Tableau 10.4
San Francisco Crime Classification with Tableau 10.4San Francisco Crime Classification with Tableau 10.4
San Francisco Crime Classification with Tableau 10.4
 
M.Gallagher Exam2
M.Gallagher Exam2M.Gallagher Exam2
M.Gallagher Exam2
 
Crimes Project - Data Mining & Analytics
Crimes Project - Data Mining & AnalyticsCrimes Project - Data Mining & Analytics
Crimes Project - Data Mining & Analytics
 
FBI report compared to crimes in Sweden
FBI report compared to crimes in SwedenFBI report compared to crimes in Sweden
FBI report compared to crimes in Sweden
 
An Intelligence Analysis of Crime Data for Law Enforcement Using Data Mining
An Intelligence Analysis of Crime Data for Law Enforcement Using Data MiningAn Intelligence Analysis of Crime Data for Law Enforcement Using Data Mining
An Intelligence Analysis of Crime Data for Law Enforcement Using Data Mining
 
Crime Analysis at Chicago
Crime Analysis at ChicagoCrime Analysis at Chicago
Crime Analysis at Chicago
 
Student #1 I have chosen to write about the history of data anal.docx
Student #1 I have chosen to write about the history of data anal.docxStudent #1 I have chosen to write about the history of data anal.docx
Student #1 I have chosen to write about the history of data anal.docx
 
Building an urban theft map by analyzing newspaper - SMAP 2018
Building an urban theft map by analyzing newspaper - SMAP 2018Building an urban theft map by analyzing newspaper - SMAP 2018
Building an urban theft map by analyzing newspaper - SMAP 2018
 
Untold story of karachi
Untold story of karachiUntold story of karachi
Untold story of karachi
 
Analyzing the Spatial Distribution of Crime in Annapolis County
Analyzing the Spatial Distribution of Crime in Annapolis CountyAnalyzing the Spatial Distribution of Crime in Annapolis County
Analyzing the Spatial Distribution of Crime in Annapolis County
 
georgia-tech-atlanta
georgia-tech-atlantageorgia-tech-atlanta
georgia-tech-atlanta
 
Stategic_Crime_Report_Crime_Analyses_340[1]
Stategic_Crime_Report_Crime_Analyses_340[1]Stategic_Crime_Report_Crime_Analyses_340[1]
Stategic_Crime_Report_Crime_Analyses_340[1]
 
Unit 8 project identifying crime patterns e hall
Unit 8 project identifying  crime patterns e hallUnit 8 project identifying  crime patterns e hall
Unit 8 project identifying crime patterns e hall
 

Recently uploaded

B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 

Recently uploaded (20)

B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 

San Francisco Crime Analysis

  • 1. San Francisco Crime Analysis – Report -By Rohit Dandona and Sameer Darekar Introduction: From 1934 to 1963, San Francisco was infamous for housing some of the world's most notorious criminals on the inescapable island of Alcatraz. Today, the city is known more for its tech scene than its criminal past. But, with rising wealth inequality, housing shortages, and a proliferation of expensive digital toys riding BART to work, there is no scarcity of crime in the city by the bay. This project examines the San Francisco Police Department crime records between January 1st 2003 and May 13st 2015. It visualizes the trends of major crimes and drugs in the city across time and locations. This analysis has been carried out to facilitate law enforcement officers to enhance their strategies based on time and location. R and Tableau have been used for data processing and visualizations. Dataset: This dataset contains incidents derived from SFPD Crime Incident Reporting system. The data ranges from 1/1/2003 to 5/13/2015. Data fields:  Dates - timestamp of the crime incident  Category - category of the crime incident  Descript - detailed description of the crime incident  DayOfWeek - the day of the week  PdDistrict - name of the Police Department District  Resolution - how the crime incident was resolved  Address - the approximate street address of the crime incident  X – Longitude  Y - Latitude Data-Preprocessing: The date field in the dataset is a timestamp present in the “MM/dd/yyyy hh:mm:ss” format and is not of much utility if used as such. Tableau provides the facility of parsing through a timestamp through a utility called “DATEPART ” and extract specific segments of the timestamp. For example: DATEPART('hour',[Dates])
  • 2. A part of the analysis required representing the data by five separate parts of the day. The following construct was used to derive a column in Tableau: IF DAY([Dates]) >= 4 AND DAY([Dates]) <= 8 THEN 'EARLY MORNING(4 AM to 8 AM)' ELSEIF DAY([Dates]) > 8 AND DAY([Dates]) < 12 THEN 'MORNING(8 AM to 12 PM)' ELSEIF DAY([Dates]) >= 12 AND DAY([Dates]) < 17 THEN 'AFTERNOON(12 PM to 5 PM)' ELSEIF DAY([Dates]) >= 17 AND DAY([Dates]) <= 21 THEN 'EVENING (5 PM to 9 PM)' ELSE 'NIGHT(9 PM to 4 AM)' END The address data is of the following form 1. 1500 Block of LOMBARD ST 2. OAK ST / LAGUNA ST The first one is actually a location on the street but the second one is the intersection of two streets, we extracted the streets from both of them for plotting the bubble chart shown in analysis section. The rest of the columns are clean and no further processing was required. Analysis of Crime  Trends: There are 39 categories of crime report incidents available in the dataset including “Other offenses” and “Non-criminal”. Larceny and theft was the most common crime in San Francisco between January 1st 2003 and May 13th 2015, with a total of 174,900 reported incidents. The next two highest crime categories, “Other offenses” (98,281 reported incidents) and “Non-criminal” (98,172 reported incidents), are omitted from discussion in the analyses. Instead, the key focus is on the following high crime categories: larceny and theft, assault (76,876 reported incidents), drugs (53,971 reported incidents), vehicle theft (53,781 reported incidents), vandalism (44,725 reported incidents), drugs (21,910 reported incidents) and burglary (19,226 reported incidents).
  • 3.  Month wise distribution: Since the crime incidents recorded in 2015 are only till May, those records have been removed for this analysis. The month of February is the safest and is observed to have the least crime incidents reported. October is the least safe with the maximum number of reported crime incidents.  Region wise distribution: A contour plot to represent the region wise density of crime leveraging the available latitude/longitude information of the reported crime, is as follows:
  • 4. A giant hotspot can be observed in the Southern and Tenderloin region with relatively less dense plots in the surrounding neighborhoods. Majority of the crime seems to be concentrated in these and surrounding regions. Plotting a line graph to represent crime in each region on each day of a week uncovers some interesting trends: Crime rate by day of the week:
  • 5. Clearly, the Southern region is the most notorious with the maximum number of crimes reported followed by the Northern region. Richmond is the safest place to be in San Francisco. The rate of crime is observed to increase over the weekend. The number of reported incidents seems to be the maximum on Fridays with a total number of 133,743 reported incidents. For almost all regions, the same trend can be observed. Tenderloin, however, is an exception as the crime rate in this region decreases over the weekend and is the highest on Wednesdays. Wednesday, Friday and Saturday are the most crime prominent days. Interestingly, the least amount of incidents were reported on Mondays (116,707 reported incidents) followed by Sundays. In the Southern, Northern, Central and Mission districts, the number of crimes increased sharply on Friday and Saturday, then declined for rest of the week.  Specific crime trends We examine the crime trends of a hand full of crimes (Kidnapping, Fraud, Robbery, Missing Person, Burglary, Vandalism, Vehicle Theft, Drug/Narcotics, Assault and Larceny/Theft). The following trends are observed: Interestingly, Drug/Narcotic related crimes decrease over the weekend (unlike other categories). The related reported incidents are the maximum on a Friday. Among the high crime categories, larceny and theft tend to occur on Friday and Saturday. On the other hand, the occurrences of assault steadily increased from Thursday to Sunday, while burglary generally occurred more often during the weekdays than the weekends. Drug crimes were most
  • 6. commonly reported on Wednesday and least reported during the weekends, and robberies happened by approximately the same frequency every day.  Hourly Crime Analysis The overall hourly crime trends are as follows: Hourly trend analysis for specific crimes:
  • 7. The hourly trends unravel some interesting crime facts:  5 am is the safest part of a day with 8,637 reported incidents and 6 pm is the most dangerous hour with 55,104 reported incidents.  Surprisingly, 12 pm is the second most dangerous hour during a day and in fact is the hour where incidents reported under some crime categories is maximum.  Kidnapping and stolen property incidents take place uniformly throughout the day Violent Crimes in San Francisco: Assault, Robbery and Sex Offences (forcible) Distribution: Violent crime density (each) by parts of day:  Assault: Part of Day Time Frame Early Morning 4am to 8am Morning 8am to 12pm Afternoon 12pm to 5 pm Evening 5pm to 9pm Night 9pm to 4am
  • 8. Distribution of Assault crimes is more or less the same at different times of the day.  Robbery: A slight shift in epicenter of the crime can be observed over different parts of the day.  Sex Offences(forcible): Different Patterns can be observed at different time with increase in density at night.
  • 9.  Larceny and Theft: Crime is spread across multiple regions early in the mornings and at night. It is concentrated on a single region in the afternoon. Food for thought  The following shows a bar graph representing the percentage of incidents which have been investigated by law enforcement agencies vs the ones that haven’t been. Surprisingly, for 61.02% of the reported incidents no conclusive action has been taken.
  • 10.  The following graph shows the top three streets where the maximum crime incidents were reported [Bryant Street, Market Street, Mission Street]: The police commission office is located on 850 Bryant Street which is just near the 800 Bryant Street which has the most crime rate in terms of streets. Market Street, with the second highest number of crime incidents reported, has a police station 0.5 miles away from it:
  • 11. Conclusion  Tenderloin and Southern are the PD districts needing special attention  Famous Neighborhoods have more crime rate  Violent crime seems to be concentrated around Tenderloin.  Assault is most common violent crime.  Crime rate is highest at 6 pm and lowest at 5 am with a spike at 12 in afternoon that means whenever there are people on the streets the crime rate is higher.  Pattern observed for each crime should be followed while deploying police personnel  SFPD needs to work more proactively as the 61% of cases are still not resolved  Also the crime rate near the police station needs to be decreased the SFPD needs to create terror in the minds of criminals.  Need to find out why the months February has the lowest and October has the highest crime commited  The second part of the Kaggle competetion that is predicting the classes of the crime has also been completed and in process for further improvement, the current rank is 672 out of 1886[4]. References [1] https://www.kaggle.com/c/sf-crime/data for Dataset [2] http://www.r-bloggers.com/google-maps-and-ggmap/ for google maps and using ggmap in R. [3] http://blog.dominodatalab.com/geographic-visualization-with-rs-ggmaps/ creating clusters and heatmaps in R [4] https://www.kaggle.com/c/sf-crime/leaderboard?submissionId=2963937 Kaggle competition submission