ECON 323 FINAL TERM PROJECT

An Investigation in to Criminal Situation and in Vancouver and Montreal

Dec/21/2021 Shihao Tong

Introduction

The Covid-19 pandemic has been around for almost three year. Large amount of economic studies have shown the tremendous effect it has on every aspect of life and how it transforming the fundamental operation of economic. This project gives a somewhat 'micro' point of view from two largest cities, Vancouver B.C. and Montreal Q.C. in terms of the criminal situation.

This project utilize data from two sources with very nice features. First two are from kaggle which primarily collected from police department in two cites and the second one is from stat Canada. The first two sets contains the specific geo information (i.e longitude and latitude of where the crime happens). The second one contains the total number of crimes in different categories. Both of them are very up to date having a time coverage till at least May 2021 which allows us to investigate the post Covid criminal situation and make comparison with before.

We will first get into the data set to gain a brief understand of overall situation. We will do a map visual of criminal cases in Montreal (i.e the cases for Van is already did by some people on Kaggle). Next, we will analysis the situation before and after covid for both city respectively and also compare two cites in various aspect of crime.

1. Data Investigation

Data Cleaning and restructured

Distribution Illustration

In the next several illustration, we added the following information as reference event to see whether the trend of crime committed can potentially be eased by government subsidy program.

The number of criminal reported in different category can be since starting from 2019 for Montreal is

It can be seen that in Vancouver, since pandemic begins, the calling for services increases dramatically especially for welfare check. The welfare check from police is "an in-person visit from one or more law enforcement officers, especially in response to a request from a friend or family member who is concerned about the person's mental health" (Wikipedia). This type of call raises, which is not crime, during pandemic can be related to the long time ban from social activities and gathering. The data for Montreal is not available but it can be expected to increases as well. However, if we take into consideration of the subsidy, it seems does not help in eliminating the mental pressure. The calling for welfare check is still increasing. Then we remove those non-criminal data and have a look at real crime.

Observation: The crime of Motor Vehicle Thief get boosted since 2021 with very strong upward trending. In Vancouver, there's no obvious increases cases in any crime categories that we expected due to less income and job loses, while some type of jobs like assault against peace, shoplifting even decreases. This can results from the sharp reduction in social activities but still weird. For financial support from government, it is clear that in Vancouver the total breading and entering and shoplifting crime drops dramatically after the EI program declared and keeps its decreasing trend since then. Notice the level of this crime become even lower than before pandemic starts. Think about the reason: Breaking and entering is highly risky in both been arrested by police or even been shoot on spot. Only those who are desperate and in a extremely bad situation will chose to do so. So when these type of people get subsidies -- even just a little bit, they will stop committed such kind of crime but may shift to other crimes.

2. Map Exploration for Montreal Crime Occurrence

Utlize the dataset Mont_kaggle to explore the geoposition where the crime committed. We first try a static polt for the accumulated crime commited throughout the year and then we split the time line to have a comprision of the pre and post covid conditions.

NOTICE: Do not try to run the code in the next bolck. It will take you about 30mins to get the plot

Then let's have a look at these crimes' geo position before and after the covid

So it can be seen that the post and after covid data set is extremely unblanced. In order to make a relatively sensiable comparision, let's take random sample of the same size from the before_covid dataset.

Then let's compare the distribution of the two dataset on the map. The points will pop-up relevent information is you click on each of the point.

Next, we plot the stacked bar for each neigbourhood where the same legend is defined for the previous graph

Observation: It can be seen that most of the crimes are concentrated in downtown Montreal where has a higher density of points, nomatter before or after the pandamic started. Within all those neighbourhoods, the most unsafe, in terms of number of crime reported, is Pleauto Mont-Royal and it also has the highest number of home invision cases. The good thing is across all neighbourhood, the least amount of offences results in death. Another interesting thing from the map is that most of the Mischief happens along the main streets in Montreal such as René Lévesque Boulevard, boulevard cremazie etc.

Conclusion & Summary

Throughout this project, we gain a both macro and micro grasp of the criminal situation of Vancouver and Montreal. Comparing with the situation before Covid happened, Motor theif crime increase and still keeps the trend while the overall trend in Vanoucer does not change to much and have a much lower total crime cases than Montreal. This ploting and illustation may lead to further research in time series prediction in criminal rate and alos utlizing the geo graphing to do distance analysis w.r.t crime categories.

Reference

https://www.kaggle.com/stevieknox/montreal-crime-data

https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=3510016901&pickMembers%5B0%5D=1.15&cubeTimeFrame.startMonth=01&cubeTimeFrame.startYear=2019&cubeTimeFrame.endMonth=09&cubeTimeFrame.endYear=2021&referencePeriods=20190101%2C20210901

https://geoffboeing.com/2016/11/osmnx-python-street-networks/

https://osmnx.readthedocs.io/en/stable/search.html?q=legend&check_keywords=yes&area=default#

https://python-visualization.github.io/folium/quickstart.html