Link

Analysis of Crime in Sanctuary vs Non-Sanctuary Cities

UC Berkeley, LEGALST 123 - Data, Prediction and Law (Spring 2020)

Claire Black, Hunter Bjazevich, Anna Gueorguieva, Alyssa Lau

Introduction to Research Question and Dataset:

Donald Trump has been on record saying that we must “end the sanctuary cities that have resulted in so many needless deaths. Cities that refuse to cooperate with federal authorities will not receive taxpayer dollars, and we will work with Congress to pass legislation to protect those jurisdictions that do assist federal authorities” (Trump Immigration speech, Pheonix AZ, August 2016).

Our goal is to test the claim that sanctuary cities cause “so many needless deaths” and whether President Trump’s proposal to freeze federal funding to these cities holds any merit by investigating whether sanctuary cities tend to have higher violent crime rates than non-sanctuary cities.

Our preliminary analysis serves the purpose to help us form a hypothesis and begins with looking at a single city and investigating violent crime rates both before and after that city received their sanctuary status. For this, we chose to analyze violent crime rates in Los Angeles, California, which became a sanctuary city after the passing of California Senate Bill 54 declared the state of California as a sanctuary state in 2017.

The importance of understanding and sorting different types of crime:

An analysis of crime rate changes using all types of crime may become convoluted and fail to provide a useable conclusion. In order to create conclusions with the most impact, we must first understand which types of crime are most relevant to our analysis.

By creating data frames that sort the top crimes pre-sanctuary city policy vs post-sanctuary city policy, we better understand the dataset and the human contexts from which it arose. These human contexts must be remembered throughout the analysis of data, as our social structure will impact that data we see. Some crimes are historically more reported than others due to social factors. For example, our data includes intimate partner rape. This is more likely to go unreported than forcible rape from a non-intimate partner due to different contexts in which the crime occurs, and is something we should take into account when forming a conclusion.

Below is the first five rows of a table representing crime in LA from 2010-2019. It includes many features such as: the date the crime was reported, the data occurred, which neighborhood, what type of crime, information about the victim, and exact coordinate locations of the crime.

DR_NODate RptdDATE OCCTIME OCCAREAAREA NAMERpt Dist NoPart 1-2Crm CdCrm Cd DescMocodesVict AgeVict SexVict DescentPremis CdPremis DescWeapon Used CdWeapon DescStatusStatus DescCrm Cd 1Crm Cd 2Crm Cd 3Crm Cd 4LOCATIONCross StreetLATLON
0130735502/20/2010 12:00:00 AM02/20/2010 12:00:00 AM135013Newton13852900VIOLATION OF COURT ORDER0913 1814 200048MH501.0SINGLE FAMILY DWELLINGNaNNaNAAAdult Arrest900.0NaNNaNNaN300 E GAGE AVNaN33.9825-118.2695
11140130309/13/2010 12:00:00 AM09/12/2010 12:00:00 AM4514Pacific14852740VANDALISM - FELONY ($400 & OVER, ALL CHURCH VA...03290MW101.0STREETNaNNaNICInvest Cont740.0NaNNaNNaNSEPULVEDA BLMANCHESTER AV33.9599-118.3962
27030962908/09/2010 12:00:00 AM08/09/2010 12:00:00 AM151513Newton13242946OTHER MISCELLANEOUS CRIME03440MH103.0ALLEYNaNNaNICInvest Cont946.0NaNNaNNaN1300 E 21ST STNaN34.0224-118.2524
39063121501/05/2010 12:00:00 AM01/05/2010 12:00:00 AM1506Hollywood6462900VIOLATION OF COURT ORDER1100 0400 140247FW101.0STREET102.0HAND GUNICInvest Cont900.0998.0NaNNaNCAHUENGA BLHOLLYWOOD BL34.1016-118.3295
410010050101/03/2010 12:00:00 AM01/02/2010 12:00:00 AM21001Central1761122RAPE, ATTEMPTED040047FH103.0ALLEY400.0STRONG-ARM (HANDS, FIST, FEET OR BODILY FORCE)ICInvest Cont122.0NaNNaNNaN8TH STSAN PEDRO ST34.0387-118.2488

Some of the data needs to be cleaned. Since we are investigating crime rates before and after the passing of California SB 54, there are a number of features we do not need to include (like victim sex), especially if some columns may pose problems if left as is. Also, we have to appropriately replace NaNs and 0s.

Some columns have NaNs or 0s, and depending on the column, we will imputate them with either a 0 or the column average. For example, victim ages listed as 0 will be replaced with the column average, and columns like ‘Weapon Used Cd’ will be replaced by a 0, which we will interpret as a weapon not being used.

Below is a cleaned version of crime in LA which allows for easier data manipulation and analysis.

Date RptdDATE OCCYearTIME OCCAREAAREA NAMECrm CdCrm Cd DescVict AgeVict DescentPremis CdWeapon Used CdWeapon DescStatusStatus DescCrm Cd 1LATLON
02010-02-202010-02-202010135013Newton900VIOLATION OF COURT ORDER48.000000H501.00.00AAAdult Arrest900.033.9825-118.2695
12010-09-132010-09-1220104514Pacific740VANDALISM - FELONY ($400 & OVER, ALL CHURCH VA...31.765902W101.00.00ICInvest Cont740.033.9599-118.3962
22010-08-092010-08-092010151513Newton946OTHER MISCELLANEOUS CRIME31.765902H103.00.00ICInvest Cont946.034.0224-118.2524
32010-01-052010-01-0520101506Hollywood900VIOLATION OF COURT ORDER47.000000W101.0102.0HAND GUNICInvest Cont900.034.1016-118.3295
42010-01-032010-01-02201021001Central122RAPE, ATTEMPTED47.000000H103.0400.0STRONG-ARM (HANDS, FIST, FEET OR BODILY FORCE)ICInvest Cont122.034.0387-118.2488
.........................................................
21140862019-03-282019-03-2820194006Hollywood648ARSON31.765902X706.0506.0FIREICInvest Cont648.034.0962-118.3490
21140872019-08-152019-08-14201918107Wilshire331THEFT FROM MOTOR VEHICLE - GRAND ($400 AND OVER)40.000000W101.00.00ICInvest Cont331.034.0871-118.3732
21140882019-01-062019-01-062019210020Olympic930CRIMINAL THREATS - NO WEAPON DISPLAYED46.000000B102.0400.0STRONG-ARM (HANDS, FIST, FEET OR BODILY FORCE)ICInvest Cont930.034.0637-118.2870
21140892019-10-172019-10-162019180017Devonshire420THEFT FROM MOTOR VEHICLE - PETTY ($950 & UNDER)31.7659020101.00.00ICInvest Cont420.034.2266-118.5085
21140902019-02-012019-02-01201916158West LA330BURGLARY FROM VEHICLE33.000000W707.00.00ICInvest Cont330.034.0420-118.4531

2114091 rows × 18 columns

1. Trends in violent crime in LA from 2010 to 2019:

President Trump posits that violent crime rates are inflated under systems of sanctuary cities. Because of this, we will focus on violent crime rates, and not all instances of crime because for this analysis certain crimes, such as embezzlement, are irrelevant.

LA times lists “violent crime” as homicide, rape, assault, robbery. According to the FBI, nationally, the top violent crimes are aggravated assaults (62.5% of crime), robbery (29.5%), forcible rape (6.8%), and murder (1.2%). So, I will isolate these four categories to form a data frame for violent crime.

Source: https://ucr.fbi.gov/crime-in-the-u.s/2010/crime-in-the-u.s.-2010/violent-crime

AREA
Year
201012270
201111285
201210293
20139073
20149356
201510605
201611955
201712455
201811825
201910851

The ‘violent_df’ dataframe above gives the counts of violent crimes per year from 2010 to 2019. Looking at the violent crime counts in a vacuum, there does not seem to be any discernible difference in the number of violent crimes as the counts look relatively uniform.

Below we have plotted several crime trends. The first plot gives a sense of crime trends from 2010 to 2019, while the second plot hones in on the crime rates from 2016 to 2019, two years before and two years after the passage of California SB 54 declared California as a sanctuary state.

png

png

It does appear that if we group the number of crimes per year that the total number of violent crimes decreased substantially between 2017 and 2019, which was immediately after California became a sanctuary state. This could be for a variety of reasons, but if we were to look at this in a vacuum, we see that crime rates actually decreased with the passing of this bill in Los Angeles. This does not disprove President Trump’s proposition, but does serve to prove that sanctuary cities do not have a statistically significant effect on violent crime rates.

2. Finding Top 5 Crimes of Pre and Post Senate Bill

The first table below represent the top 5 crimes occuring in LA in 2016 & 2017 (pre-sanctuary bill) and the second table represents the top 5 crimes occuring in LA in 2018 & 2019 (post-sanctuary bill). Counts in the post-sanctuary bill table do seem to decrease in comparison to the first table, however there are many other factors that could have impacted this change and thus we cannot make any direct conclusions yet.

Count Pre-Sanct
Crime Type
ROBBERY18576
ATTEMPTED ROBBERY2558
RAPE, FORCIBLE2466
CRIMINAL HOMICIDE576
RAPE, ATTEMPTED234
Count Post-Sanct
Crime Type
ROBBERY17397
ATTEMPTED ROBBERY2555
RAPE, FORCIBLE2040
CRIMINAL HOMICIDE513
RAPE, ATTEMPTED171

Hypothesis:

Our data frame illustrates that the top 5 crimes have not changed, nor has the relative frequency for which the top 5 crimes occur. Based on the preliminary comparisons between the ‘Count’ column of pre-sanctuary policy crimes and post-santuary policy crimes, there was a decrease in violent crime following the implementation of sanctuary policies in Los Angeles. This is not to say that sanctuary declaration was responsible for decrease in violent crime rates since there are numerous things that can contribute to this, but is indicative of the lack of evidence for sanctuary cities increasing crime rates. Using our above analysis of Los Angeles, we hypothesize that santuary city policies do not have any significant effect on violent crime rates, and thus believe President Trump’s proposition to withhold federal funding from sanctuary cities and states is misguided. Further in-depth analysis of this data, along with additional data can provide evidence for this hypothesis.

Machine Learning Experiment

If sanctuary cities are actually an indicator of increased crime rates in a given city, theoretically one would be able to predict with accuracy whether or not a given city is a sanctuary city based on their violent crime rates. To investigate this, we are going to create several classification models to predict whether a city is either a sanctuary city (1) or a non-sanctuary city (0).

We have compiled a long list of cities and their rates of violent crime spanning from 2010-2015. This data was consolidated by the Marshall Project using the Uniform Crime Reporting Statistics, an organization under the umbrella of the United States Department of Justice.

We classified cities as sanctuary cities according to their sanctuary status listed by the Center For Immigration Studies. If a city was listed in a sanctuary state or sanctuary county, that city would also be listed as a sanctuary city. If a city was first declared a sanctuary city sometime in between 2010-2015, the sanctuary status feature is coded as 0 for the years before the declaration and as 1 for the years after. The violent crime statstics we are using as features include total violent crime rate, homicide rate, rape rate, and aggravated assault rate. We chose to use violent crime rates, rather than total violent crime instances, to account for the variance in population size for cities.

The data in the csv file below has already been cleaned.

department_nameyearSanctuary Statustotal_popviolent_per_100khoms_per_100krape_per_100krob_per_100kagg_ass_per_100k
0Albuquerque20100545852786.1105217.69439361.921546172.207851544.286730
1Albuquerque20110551961762.7350486.88454447.829466180.809876527.211162
2Albuquerque20120553684749.7056087.40494650.209145197.224410494.867108
3Albuquerque20130558165774.8604806.62886478.650578187.399783502.181255
4Albuquerque20141558874882.8465815.36793671.930346247.103998558.444300
..............................
398Wichita20110384796770.0183996.49694963.670101127.340201572.511149
399Wichita20120386409749.4649455.95224262.627941128.361399552.523363
400Wichita20130386486794.0779233.88112464.685396120.832320604.679083
401Wichita20140387493758.4653145.41945362.710810128.002312562.332739
402Wichita20150389824984.8033986.92620389.527582188.033574700.316040

403 rows × 9 columns

For our classification models, we will need to split the data into training, validation, and test sets. 80% of the data will go into training and 20% into testing. From there, 25% of the training data will be used as a validation set to test our models before applying them to the final test set.

Discussion of Classification models - Linear SVM Classifier

The first classification model we will be using is a Linear SVM classifier like the one we saw in a guest lecture to reverse engineer the COMPAS algorithm, as well as in lab. If violent crime rates are truly predictive of whether or not a city is a sanctuary city, then our model, trained with features related to violent crime rates, should be able to accurately classify cities into “Sanctuary” and “Non-Sanctuary.”

There are certain advantages and disadvantages of using Linear SVM to classify our cities as either a sanctuary city or non-sanctuary city. The first advantage, and also the reason we chose to start with Linear SVM, is that the method is fairly simple for two-group classification problems like the one we are investigating. This essentially creates a linear decision boundary when working in two-dimensional space. Anything falling on one side of the line will serve as one classification, and the other side will serve as another classification. With SVM, if there is not a clear linear decision boundary, one could add additional dimensions until there is a clear boundary. However, in our case we will only be working with Linear SVM.

The obvious disadvantage is that this method may oversimplify classification problems. There may not always be separable data where one set of actual data is separated from the opposite classification. Because of this, the model may not accurately classify correctly or perform well when applied to new data. Another disadvantage stems from potentially long training time when first training the model. We did not experience a problem from this, but if we begin working with larger datasets, especially those where SVM requires more than two dimensions, problems could arise because of computing time.

However, we find that Linear SVM is a good model to begin with for this specific problem. Below is the confusion matrix created by Linear SVM. This confusion matrix shows that 86% of the data was correctly predicted to be non-sanctuary (true-negatives) and 14% of the data was predicted to be non-sanctuary but was actually sanctuary (false-negatives).

png

Naive Bayes Classifier

The second model we will use is the Naive Bayes classifier, which assumes that all of the features are independent of each other and that each feature contributes equally to the outcome. This classifier uses Bayes Theorem to predict membership probabilities of piece of data.

Like Linear SVM, there are a number of advantages and disadvantages to using Naive Bayes classifiers. One advantage of using the Naive Bayes classifer is that, unlike SVM, this technique works quite well with larger datasets and generally is much faster than SVM. Additionally, if working with multi-group classification problems, this classifier also performs well.

A disadvantage of using Naive Bayes is that, as I have said above, the classifier assumes that all features are independent of one another. This is not the case most of the time and in datasets where features overlap or are dependent on one another, the model may perform poorly.

Naive Bayes requires less training data, yet it is stilly a highly scalable algorithm. With the size of our current dataset, we applied this Naive Bayes classifier to investigate how it relates to the simpler method of Linear SVM.

The Naive Bayes confusion matrix shows 54 true-negatives, 3 true-positives, 8 false-negatives and 16 false-positives (where a sanctuary city is represented to be a positive and a non-sanctuary city is a negative).

png

Multinomial Logistic Regression

The final model we will use is multinomial logistic regression. We will follow the same steps as the two previous classifiers. Logistic regression investigates the relationship between dependent and independent variables.

The advantages of using a logistic regression classifier is that the model is very simple and time effective when working with larger datasets. In the case of having linearly separable data, such as our training data, the logistic regression classifier can potentially be highly effective. Like Linear SVM, this leads to the disadvantage of oversimplifying the classifier and leaving it to work poorly when working with non-linear relationships and when working in more than two dimensions.

We are using this technique largely to see how it compares to SVM and Naive Bayes.

Our final model, a multinomial linear regression gives us 43 true-negatives, 5 false-negatives, 6 true-positives, and 27 false-positives.

png

Overall, the SVM classifier resulted in the highest mean accuracy on the validation sets, but we figured that this is because of a class imbalance due to sanctuary cities being much less common than non-sanctuary cities in our data. To remedy this, we put 4x weight on the sanctuary city data in our since non sanctuary cities were roughly 4x more common than sanctuary cities, but the results largely stayed the same. Linear SVM was still the most accurate, so decided to run the test set on that model. The confusion matrix below shows the result of running Linear SVM on our test set.

png

ROC Curve and AUC

Creating a ROC curve of our results and finding the area under the curve can allow us to measure how well our classifier has performed. A ROC curve (Receiver Operating Characteristic curve) is useful in determining thresholds in binary classifiers, as well as providing a measurement of performace of predictive power by finding the Area Under the Curve (AUC). The ROC plots the true positive rate (True Positives / (True Positives + False Negatives)) on the y-axis and the false positive rate (False Positives / (False Positives + True Negatives))on x-axis. The ideal graph would be a line which creates a 90 degree angle by closely traveling up the y-axis and then making a sharp turn to the right to follow the x-axis at the top of the graph. The closer the line goes to a 45 degree angle, the worse your model may be performing. A straight diagonal line of x = y would show no performance skill.

Since our thresholds have already been determined and all tests ran, we will be using AUC to measure predictive power. The higher the AUC, the more likely our classifier is performing well and classifying correctly. By applying scikit-learn functions we can create a ROC plot and find the AUC.

Below is the ROC curve for our linear SVM model. The AUC is 0.5.

png

The second ROC curve is for multinomial logistic regression. It has an AUC of 0.64.

png

The final ROC curve is for our naive bayes model. It has an AUC of 0.65.

png

This ROC/AUC analysis shows that the Linear SVM model, despite being the best performing classifier in terms of accuracy, could not effectively predict whether a city is a sanctuary city based on their crime rates, providing more evidence of our hypothesis that sanctuary status plays no significant role in determining violent crime rates.

Naive Bayes and Logistic Regression classifiers performed more effectively in this analysis, but it is also worth nothing that overall these models didn’t predict status very accurately.

Nonetheless, all of the above analyses illustrate the lack of sufficient evidence that sanctuary cities are more dangerous than non-sanctuary cities.

Conclusion / Summary & Write Up

Research Question we sought out to answer:

Are sanctuary cities generally more dangerous than non-sanctuary cities? Can we predict whether a city is a sanctuary city or a non-sanctuary city based on an investigation of their violent crime rates?

Many of our nation’s leaders place unfounded blame on various members of our society, especially immigrants. Various cities around the country have declared themselves as sanctuary cities, meaning that they limit their cooperation with the Federal government’s immigration policies. Many people argue that giving “sanctuary” to undocumented immigrants will increase violent crime in their neighborhoods and cities. Government leaders, most notably President Trump, have used this argument to end sanctuary cities by threatening to withhold federal funding, citing that they necessitate violent crimes and cause many needless deaths. Our purpose was to investigate President Trump’s claim that sanctuary cities are generally more dangerous than non-sanctuary cities and whether his threat to withhold federal aid was justified or misguided.

The data we used:

The data we used to form our hypothesis was gathered from the Los Angeles Police Department and consists of the years 2010 to 2019. According to the LA Times in 2018 when the bill came into effect, local police departments stopped engaging in joint operations with the U.S Immigration and Customs Enforcement (ICE) and no longer transfers immigrants with minor offenses to ice custody.

In order to test our hypothesize we used data that was gathered by the Marshall Project from the Uniform Crime Reporting Statistics. This is a database under the U.S. Department of Justice. The data consists of a long list of cities, many of which are sanctuary cities and many of which are not, as well as their violent crime rates. We added a column of binary values where the number 1 represented a sanctuary city and 0 represented a non sanctuary city.

Our hypothesis and how we formed it:

In order to form a hypothesis, we found it necessary to first investigate a city and its crime rates before and after it declared itself as a sanctuary city. We chose Los Angeles to be this city because it became a sanctuary city in 2017 with the passing of California Senate Bill 54, giving us available crime data prior to 2017, as well as after 2017 when police departments began to not cooperate with ICE. Through filtering the crime statistics to only display instances of violent crime, we found that instances of violent crime in Los Angeles did not increase, but actually decreased between 2017 and 2019. Because this was only one city’s data, we did not find it justified to hypothesize that sanctuary cities decrease violent crime rates, but we felt like this analysis was enough to help us hypothesize that sanctuary city status does not have any significant effect on rates of violent crime.

Testing our Hypothesis:

To test the hypothesis that sanctuary city status has no discernible effect on violent crime rates in a given city, we decided to use the machine learning techniques from class to make a classification model that predicts whether a city is a sanctuary city (1) or a non-sanctuary city (0). If we were able to predict whether a city was a sanctuary city solely based on their violent crime rates with higher than expected accuracy as well as with reasonable False Positive Rates, we would reject our hypothesis. If we found that we could not effectively predict a city’s sanctuary status based on their violent crime rates we would approve our hypothesis.

We made three separate classification models: Linear SVM, Naive Bayes, and Logistic Regression. Because of the class imbalance due to more cities being non-sanctuary cities, we changed the ‘class_weight’ attribute within the sklearn functions to place more weight on sanctuary cities.

Explanation of our findings

On the test set using our best performing model, the Linear SVM classifier, we were able to predict with about 84% accuracy whether a city will be a sanctuary city or a non-sanctuary city using Linear SVM.

Regardless of this fairly high success rate in predicting whether a city is classified as a sanctuary city or a non-sanctuary city, there are some caveats to the results from our Linear SVM model. This model predicted 100% of the time that a city would be a non-sanctuary city, despite us putting a larger class weight on sanctuary cities. This likely means that we were able to predict with this accuracy based on a city being much more likely to be a non-sanctuary city than they are to be a sanctuary city. Looking at the entire dataset, there are 330 instances of a non-sanctuary city and 73 instances of a sanctuary city, implying that about 82% of the cities are listed as non-sanctuary. Given the minimal disparity between this percentage and our predictions, we are concluding from these models that there is no statistically significant difference between crime rates in sanctuary cities vs non-sanctuary cities.

Additionally, the AUC and ROC show that our Linear SVM model does not have much predictive power. This is to be expected, as our data itself leans heavily towards the (0) classification regardless of the class_weights parameter, making it hard to classify correctly when the majority of the data will be trained to classify as (0). This lack in predictive power may help to further prove that there is no significant difference between crime rates in sanctuary cities vs non-sanctuary cities, as the amount of violent crimes does not seem to be a good indicator when classifying cities.

Because of the poor predictive power found from the ROC/AUC analysis on our Linear SVM model, we found it necessary to also apply this analysis to our other classifiers. We determined that Naive Bayes and Logistic Regression have more predictive power than the SVM model, but this should be taken with a grain of salt because these models were generally also much less accurate.

Conclusion:

No, it does not appear that President Trump’s claim that sanctuary cities are generally more dangerous than non-sanctuary cities holds merit, and his threat to withhold federal funding to these cities looks to be misguided.

If we perform our preliminary analysis on other large cities other than Los Angeles, we expect crime rates largely to remain uniform. If for some reason violent crime rates within a city have increased after declaring a sanctuary status, we believe this to be the result of confounding variables and not a direct effect of becoming a sanctuary city.

Sanctuary cities, as we have concluded, as a class are not more dangerous than non-sanctuary cities. This is not to say that a city classified as a sanctuary city cannot have higher violent crime rates, but these higher crime rates are most likely a result of an outside factor, and not a result of the sanctuary status.

Acknowledgment of Ethical, Social and Legal Complexities

Data as a tool to understand society:

Data does not exist in a vaccuum independent of varying legal, economic and social factors. Our analysis project is not a showcase of python functions, matrices and graphs – it is an evaluation and contribution to current discussions being held in our society through the perspective of data. Our society relies on data and our data relies on society. We make claims to be verified through data, just as we may create a claim after discovering interesting patterns in data.

Trump’s claim that sanctuary cities have increased violent crime could have serious legal and social implications. Public policies would most likely shift if Trump promoted a removal of sanctuary cities and social tensions might rise. Thus, does Trump’s claim have enough evidence to support all these changes? That is what our group attempts to answer. We have shown that violent crime rates are not a good indicator of whether or not a city is a sanctuary city. This brings into question: are the legal actions Trump wishes to take in order to weaken sanctuary policies worth it, if there actually seems to be no difference in crime? This question illustrates the interconnection between law and data. Without data, we cannot understand the impacts of certain laws on society. And while we must take data seriously, we cannot put blind faith into what it tells us. Data could have many pitfalls: it holds implicit bias, it could have been collected poorly, it could have a skewed representation for certain groups, etc. For example, one city may have a better system for detection and prevention of violent crime than another city - independent of whether or not it is sanctuary. There are endless possibilities for where data may not provide an accurate representation of what we aim to describe. Thus, we put our faith into the data we are using, but should not close off discussion of potential changes or pitfalls. Due to all these variabilities, we cannot with certainty say that Trump is wrong because of one data analysis project; this would discredit necessary social debate and policy discussion. Rather, we can provide our perspective into the pool of knowledge and hope that it provides evidence for the legal choice that creates the most positive change. Data and law should support one another in discussions of social change, without overpowering each other. Trump should use data in order to validate his claim, but data should also continue to consider outside social factors that may not be represented within the dataset.

Potential risks of using ML in the legal realm:

Our project creates a model which uses features of violent crime to predict whether a city is santuary or not. All cities in the data set have a clear answer at the end - they are legally sanctuary or they are not. This allows for a clear cut comparison of how our classifier performs - it either predicted correctly or it did not. However, if we were to attempt to classify on some other arbitrary value such as ‘dangerous city’ or ‘not dangerous city’ we may run into more issues. The definition of a ‘dangerous city’ is arbitrary and problematic. It brings up ethical issues of representation and power. Who has the power to claim a city to be dangerous? Politicians? Data scientists? Citizens of that city? If a data scientist labels a city ‘dangerous’ in an analysis, this creates a representation of that city that the citizens might not want nor agree with. As data analysts, we must be careful of how we choose to manipulate the data and be aware of the consequences it may have on the groups that the data comes from. Our analysis attempts to remove arbitrary definitions that may be potentially harmful by using a cities own choice of representation (sanctuary or not). But, we are aware that this project could easily shift into an ethically sticky situation where data analysists hold power over how a city will be represented by creating our own classification bins.

Data is a two-edged sword. It can open up discussions of fairness and social good through the exposure of unfair practices / biases that arise explicity in data. However, it can also create conclusions that harm individuals or groups when all necessary social factors are not properly accounted for. Our legal institutions rely heavily on statistics and data in order to create laws and policies. We must be aware that our analysis does not exist independently from laws that have direct social implications. We must approach data analysis with empathy and awareness of the power it holds while using it to the best of our abilities in order create positive social/legal changes.