Nonlinear Dynamics of Crime and Violence in Urban Settings

We perform analysis of data on crime and violence for 5,660 U.S. cities over the period of 2005-2009 and uncover the following trends: 1) The proportion of law enforcement officers required to maintain a steady low level of criminal activity increases with the size of the population of the city; 2) The number of criminal/violent events per 1,000 inhabitants of a city shows non-monotonic behavior with size of the population. We construct a dynamical model allowing for system-level, mechanistic understanding of these trends. In our model the level of rational behavior of individuals in the population is encoded into each citizen's perceived risk function. We find strong dependence on size of the population, which leads to partially irrational behavior on the part of citizens. The nature of violence changes from global outbursts of criminal/violent activity in small cities to spatio-temporally distributed, decentralized outbursts of activity in large cities, indicating that in order to maintain peace, bigger cities need larger ratio of law enforcement officers than smaller cities. We also observe existence of tipping points for communities of all sizes in the model: reducing the number of law enforcement officers below a critical level can rapidly increase the incidence of criminal/violent activity. Though surprising, these trends are in agreement with the data.

Crime and violence are pervasive features of modern life, especially in diverse urban environments.Despite its pervasiveness, however, the causes of crime remain hotly contested.Disagreements stem, in part, from the sheer array of potential causal factors.These range from unique individual characteristics of offenders to differences in local community norms as well as broad structural constraints of social and economic systems.The disagreements also reflect the magnitude of the stakes involved.Countries spend billions of U.S. dollars each year on law enforcement as well as the combined costs of in health care and lost productivity resulting directly and indirectly from crime.There is increasing evidence that specially designed and carefully implemented interventions can prevent or reduce violence (Braga 2008;Ratcliffe 2004;Eck 2005).
It is thus important to develop tools for system-level understanding of crime and violence prevention mechanisms.
1.2Here we use an agent-based model to bridge the gap between two different domains of criminological theory relevant to understanding the spread and persistence of crime.On the one hand, we look to the routine activities theory of crime (Cohen 1979) and situational crime prevention perspectives (Clarke 1995) for proximate causal mechanisms underlying crime events in space and time.Routine activities theory posits that crimes can only occur where motivated offenders encounter suitable victims in the absence of capable guardians that would otherwise deter a criminal act.In this conceptualization, crimes are generated by the physical process by which offenders move and mix with their potential targets.Generally, these interactions are extremely local in nature.For example, it is well-known that the vast majority of offenders do not travel far from their home, or other key anchor points in their routine activity space, to select targets for victimization (Tita 2005;Rengert 1999).Local, situational factors are thus incredibly important to the generation of crime and comprise one critical component of our model.

1.3
On the other hand, situation factors may tell us little about what motivates offenders, makes some victims suitable, or some guardians capable.Among the many ideas put forward to describe offender motivation, general strain theory (Agnew 1992; Agnew 2001) posits that crime is one possible response to blocked social, economic, political and even spiritual opportunities imposed on individuals (and groups) by the external social environment.Crime is more likely to be seen as a viable response to such "strain" if that strain: (1) is seen as unjust; (2) is of high magnitude; or (3) occurs in a situation where formal or informal sources of social control can do little to mitigate the impact.For example, policies that are seen to favor the economic advancement of some ethnic groups over others are often cited as a basis for social unrest and associated crime and violence.In general, the state and its formal and informal institutions lose legitimacy in the eyes of the population and it is this lack of legitimacy specifically that is seen as a spur to violence (Killcullen 2009).This more global factor of legitimacy comprises the second critical component of our model.

1.4
Using an agent-based model built around these model components we seek to explain some surprising trends in crime and law enforcement data.Analysis of FBI data [1] , [2] on violent crimes in 5,660 U.S. cities over the period of [2005][2006][2007][2008][2009] shows that the proportion of law enforcement officers (LEOs) grows nonlinearly (super-linearly) with population size, as also observed in Bettencourt (2010).For example, using FBI data [1] , [2]   http://jasss.soc.surrey.ac.uk/15/1/2.html 1 12/10/2015 with the fixed average number of crimes per 1,000 citizens equal to 6, we find that cities with 10,000 people generally have 2.4 LEOs per 1,000 citizens, whereas cities of 1 million people have 3.7 LEOs per 1,000 citizens.These ratios are in agreement with the recommended ones [3] .The implication is that a non-linear scaling of LEOs with population size is necessary to maintain crime levels below some common target.Intuition would hold that the number of LEOs needed to keep the criminal and violent activity below a certain level would grow proportionally to the size of the population in a city, provided the population density is kept constant.However, the data which we present in detail later show that an increase in the proportion of LEOs is necessary for larger cities.Explaining this relationship between numbers of law enforcement and population size may point to new approaches to crime prevention.
Literature Review and Behavioural Motivation for the Model The simulations in (Rauhut 2009) are used to investigate the effect of increasing punishments on criminal activities from the game theory approach.In (Sampson 1997), the influence of collective efficacy on the number of violent crimes is studied on the example of neighborhoods in Chicago, Illinois.In (Bingenheimer 2005), the relationship between exposure to firearm violence and subsequent perpetration of serious violence is studied.In (Lim 2007) problems related to global pattern formation and violence on the boundaries between regions are addressed, and the proposed model is applied to former Yugoslavia and India.In (Short 2008) an agent-based statistical model of criminal behavior is applied to explain the phenomenon of crime hotspots.The main focus of this paper is on residential burglary.The discrete two-dimensional lattice model is presented where every site corresponds to a target house and criminal agents move from site to site according to specific rules.The continuum crime model is also described and exhibits similar features with the discrete one for large number of criminals and lattice sizes.In (Malleson 2009) agent-based modeling is used for developing crime prevention strategies.In (Bosse 2010) agent-based modeling is used to understand the connection between hot spots and reputation.In (Groff 2007) an agent-based model is presented to model individual behavior within a real environment.The model is applied to the crime of street robbery.In (Liu2008) the extensive research on the simulation role in criminology is presented.Here we concentrate on extending models developed by (Epstein 2002;Epstein 2006) to study civil violence / criminal activity.

2.2
Epstein was concerned with the relationship between the legitimacy of a centralized authority and outbreaks of decentralized violence.In one of two models he develops, he considers the situation in which a central authority actively seeks to suppress a rebellion.One key aspect of the model is a citizen's perceived net risk, which in (Epstein 2002;Epstein 2006) is a function of the ratio between the local (neighborhood) number of LEOs and the number of active (rebelling) citizens.Net risk increases monotonically with that ratio.We introduce functionally different, nonmonotonic types of risk perception within the population, and show that encoding for irrational behavior allows for an interpretation of trends in crime and violence statistics in real cities.

2.3
While the model we describe below is broadly situated within two strands of criminological theory, it is also important to emphasize that each model variable finds detailed justification in the literature on violent crime and insurgencies.The present model assumes that suitable targets of crime are ubiquitous in the environment (Felson 1998).Despite the ubiquity of targets, however, it is well known that criminals search for and victimize targets in primarily in the local areas surrounding anchor points in their daily routines (e.g., home or work) (Block 2007, Rengert 1999, Rossmo 2000).While law enforcement may have access to more "global" information (Ratcliffe 2008), their actions are often constrained to be local by jurisdictional boundaries and deployment requirements.Overall, the framing of the model around spatially localized information (vision) and search (movement) is consistent with data.Local search and encounter is sufficient to generate most crime opportunities.

2.4
We also assume that offender motivation arises out of a combination of individual hardship (H), risk aversion (K) and perceived legitimacy of the authority (L).Hardship is thought to play an important role in the emergence of some types of collective violence (Kilcullen 2009), but group violence may also be deployed to further other types of social and economic goals (e.g., narco-or gang violence) (Tita 2007).The role of risk aversion is equally, if not more important, however.Individuals are known to vary in their ability to regulate their own behavior, and that variability in "self-control" is inversely correlated with both risk-taking and the propensity to commit crime (Wilson 1985, Gottfredson 1990, Pratt 2000).Individuals and groups are also responsive the perceived legitimacy or effectiveness of law enforcement (Murphy 2008).In the context of violent insurgencies, the lack of legitimacy of a state-level of authority contributes to people's willingness to actively support insurgent violence (Kilcullen 2009, Galula 1964).Within urban street culture, a perceived illegitimacy or ineffectiveness of law enforcement leads individuals to turn to "street justice" to solve problems (Jacobs 2006).

2.5
The combined result of mixing motivated offenders, suitable targets and victims with limited security measures is that populations are going to naturally consist of some individuals who will always engage in crime and violence -the hardened criminals -some who will never engage in crime and violence, and a large majority who will commit crimes and violence when the conditions are ripe.Thus we feel justified in our approach below of modeling populations of citizens that include a small fraction that is always criminally active (R), a fraction who are never active (G), and a much larger fraction that is conditionally active.
An Agent-Based Model of Civil Violence / Criminal Activity Yellow cells show Moore neighborhood for an agent.During a move, an agent picks a random cell in his/her neighborhood and if the selected cell is unoccupied, he/she moves there, otherwise the agent stays put.Pink cells show a vision of radius 4 for the LEO (black cell).The LEO arrests the nearest active citizen in its field of vision.Green cells show vision of radius 4 for the citizen (blue cell).The citizens calculate their state depending on conditions on the lattice within their field of vision.

3.2
The agent-based model described in (Epstein 2002) was used as a starting point in developing the model described below.Each citizen is assigned the hardship H drawn from the uniform distribution U(0,1).The hardship is heterogeneous across citizens, but constant for any one citizen.The perceived legitimacy L of the law enforcement authority is equal across citizens and can be between 0 and 1.The hardship and the legitimacy are used to define citizen's grievance E = H(1-L).The citizen's grievance decreases with the increase of the legitimacy.If legitimacy is high, then even big hardship does not produce grievance.If hardship is high, then low legitimacy can produce high grievance.

3.3
Some citizens are more willing to pursue criminal activity than others, encoded by the risk aversion K.Each individual's risk aversion is drawn from U(0,1) and is constant for each citizen.The citizen's vision v is a circle of radius v that comprises lattice positions that the citizen is able to inspect.It is equal across citizens.The citizen's perceived net risk N is defined as follows: N = KP, where P is a function of the ratio of LEOs to active citizens in the citizen's vision.

3.4
In contrast to (Epstein 2002;Epstein 2006), in our model the net perceived risk of a citizen does not increase monotonically with the local ratio of LEOs to active citizens.In one of the two functional forms we use, perceived risk is zero up to a threshold value, after which it increases monotonically (see Fig. Â 2), thus giving sigmoidal shape.The sigmoidal functional form encodes a level of irrational behavior by citizens, where the perceived risk of being incarcerated is diminished by the proportion of others locally observed to be in the same situation.Law enforcement operates through the rule that a LEO agent arrests the nearest active citizen, randomly choosing among citizens if there are two or more that are equally close by.This rule leads to dynamics in which local crime hotspots attract police action, thus reflecting modern problem-oriented policing law enforcement strategies (Braga 2008).For comparison, in Fig. Â 2 we show a monotonically increasing curve, representing "rational" behavior.This type of functional form does not lead to good fit with data.The linear dependence of the citizen's perceived risk on the the LEOs-to-actives ratio also does not lead to good comparison with data.The "rational" function corresponds to the case when citizen's perceived risk increases monotonically with x.

3.5
The citizen's perceived risk function P of type "step" is defined as: while function P of "sigmoidal" type is defined as: and function P of type "rational" is defined as: and function P of type "linear" is defined as: where A is the number of active citizens (including self) within citizen's vision, C is the number of LEOs within citizen's vision, constant k = 9.2104 is found from the condition that P (1/4) = 0.9, constant k ′ = 62.6716 is found from the condition that P(1/4) = 0.5.Value 0.9 for the perceived risk is considered to be a plausible estimate for the situation.The citizen's perceived risk function P of type step (red curve in Fig. 2) is chosen to be zero up to the value of 0.9 of the rational curve (black curve in Fig. 2) what gives us the point of LEOs-to-actives ratio equal to 1/4.The citizen's perceived risk function P of sigmoidal type (blue curve in Fig. 2) is a smoothed version of the step function and is equal to 0.5 at the center, i.e.P (1/4) = 0.5.

3.6
For a law-abiding citizen, if the difference E -N exceeds T, where T is some threshold, then the citizen becomes criminally active.For an active citizen, if the difference E -N exceeds T, then the citizen stays active.Otherwise, he/she becomes law-abiding.In summary, the citizen's rule for being active or quiescent is the following: If E -N > T be active; otherwise, be quiescent.The LEO's vision w is a circle of radius w that comprises lattice positions that the LEO is able to inspect.It is equal across LEOs.The LEO's rule is the following: Inspect all sites within w and arrest the nearest active citizen.Jail terms for arrested actives are assigned randomly from U(0,J max ), where J max is the maximum jail term.Citizens and LEOs move on the lattice by using the following movement rule: Pick a random neighboring location on the lattice (from Moore neighborhood), if that location is unoccupied -move there, if the location is occupied -stay put.
3.7 A citizen's state is a function of hardship and risk aversion which differ for each individual citizen as well as the perceived legitimacy of the authority (L), which is constant across all citizens.Citizens become active or quiescent depending on their perceived risk, which changes based on local conditions within the field of vision of a citizen (Fig. Â 2).In general, citizens are less likely to engage in violence as the local ratio between number of LEOs and active citizens increases, due to the fear of being identified and incarcerated.A threshold value T determines the situation in which all citizens are inactive.In particular, in the case where T > 1 -L, all citizens are always quiescent regardless of the lattice situation; we call these citizens "never active" and denote their fraction in the population as G.In the case where T < -1, all citizens are "always active", and we denote their fraction in the population as R. When -1 < T < 0, G = 0, all citizens are either "always active" or "conditionally active" http://jasss.soc.surrey.ac.uk/15/1/2.html 4 12/10/2015 (active or quiescent depending on the lattice situation).The case where 0 < T < 1 -L is the most realistic in that all three types of citizen present in the population.In practice, the threshold T and legitimacy L for the model run can be found using statistical data on R and G in the population: (1) (2) 3.8 The procedure of a run is the following.A citizen or a LEO is selected at random.The probability of selecting a LEO is higher according to the number of moves a LEO can make per day.If the selected person is a non-jailed citizen, then he/she moves according to the movement rule; if the citizen is in jail, then the days at jail are calculated and if the number of days at jail is equal to the assigned jail term the released citizen is put on a random unoccupied site on the lattice.After that the state of the citizen is calculated depending on the current lattice situation.If the selected person is a LEO, then he/she inspects all sites within the vision, arrests the nearest active citizen (if any) and jumps to the location of the arrested by him citizen.The jailed citizens are placed outside the lattice.Then the LEO moves under the movement rule.The pseudocode for the simulation can be found in the Appendix.The model iterates this procedure until the simulation time is reached.Some simulations of the model can be seen at the web-site Model simulations.
Number of LEO's and Tipping Points as a Function of City Size 4.1 In the following we compare the results of our model of crime and violence in cities with FBI data [1], [2] on violent crimes in 5,660 U.S. cities over the period of 2005-2009.For comparison with the statistical data we assume that one "citizen agent" in our model represents Ac = 9 real citizens.
Our model is then used to understand the origin of violent crime in cities with different population sizes.Tipping points for communities of all sizes are observed in the model: reducing the number of LEOs below a critical level rapidly increases the incidence of criminal/violent activity.The results obtained using step and sigmoidal types of net perceived risk functions are very similar and demonstrate the robustness of the model.For both step and sigmoidal types the net perceived risk is zero for small ratios of LEOs to actives, while it's not zero for the "rational" and linear types.Dependences with zero risk for small LEO-to-actives ratios give similar results what proves the robustness of the model.As expected, when the number of LEOs in a city is increased, the number of active citizens decreases.In a surprising outcome of the modeling, we observe that for cities with larger population, the fraction of LEOs in a city has to be increased in order to keep the same level of activity of citizens.

4.2
Figure 3 shows the dependence of the number of active citizens per day (in percent) on the number of LEOs per 1,000 citizens for citizen's perceived risk functions of sigmoidal type (blue solid line), step type (red dashed line) and linear type (green solid line).Six lattices sizes (100x100, 200x200, 300x300, 400x400, 500x500, 600x600) were considered with the corresponding real population ofÂ 63,000; 252,000; 567,000; 1,008,000; 1,575,000; 2,268,000.We consider that citizen density is 0.7*Ac; citizen vision is 14; LEO vision is 14; LEO speed is 4 (i.e.LEOs move 4 times per day); maximum jail term is 120 days; fraction of "always active" citizens R = 0.025; fraction of "never active" citizens G = 0.5; fraction of "conditionally active" citizens is 0.475.Threshold T and legitimacy L can be calculated by using formulas (1) and ( 2), respectively, and are as follows: T = 0.1, L = 0.8.The chosen parameters describe the typical city.All "always active" citizens are initially in jail.1,000 days on the lattice were computed for each simulation.Each experiment was repeated at least 80 times.The model was implemented in Visual Studio C++ with the GUI graphical interface.The validation of the model will be presented later in the paper.Parameter ranges for the number of LEOs per 1,000 citizens are chosen to encompass those observed in real-world setting [3] .The number of active citizens is unconstrained, but always represents a small fraction of the total population at any one time.For example, the City of Los Angeles is estimated to have nearly 40,000 gang members and a total population of approximately 4 million, representing at most 1% of the population.Only a fraction of these gang members are actively engaged in crime at any moment in time.It is easy to see that for the larger lattices (the cities with larger population), the fraction of LEOs in a city has to be increased in order to keep the same level of activity of citizens.
Figure 3. Dependence of the number of active citizens per day (in percent) on the number of LEOs per 1,000 citizens for population corresponding to lattices from 100x100 to 600x600 (real population sizes from 63,000 to 2,268,000) for citizen's perceived risk functions of sigmoidal type (blue solid line), step type (red dashed line) and linear type (green solid line).Six lines of each type correspond to populations 63,000; 252,000; 567,000; 1,008,000; 1,575,000; 2,268,000, from left to right, respectively.The values of the number of active citizens per day (in percent) for the linear perceived risk function are decreasing from 0.0181% for 1.1 LEOs per 1,000 citizens to 0.001% for 2.7 LEOs per 1,000 citizens for the lattice size of 100x100 and from 0.0223% for 1.1 LEOs per 1,000 citizens to 0.0011% for 2.7 LEOs per 1,000 citizens for the lattice size of 600x600.Other model parameters are as follows: citizen density is 0.7*Ac; citizen vision is 14; LEO vision is 14; LEO speed is 4; maximum jail term is 120 days; fraction of "always active" citizens R = 0.025; fraction of "never active" citizens G = 0.5; fraction of "conditionally active" citizens is 0.475.The plot represents simulation results.

4.3
FigureÂ 4 shows the dependence of the number of LEOs per 1,000 citizens on population needed to keep a below-threshold fixed level of violent and/or criminal activity of citizens.0.2% level of active citizens per day is considered an acceptable level.All parameter settings are the same as for Fig. 3.For both step and sigmoidal net perceived risk functional dependencies, the ratio of LEOs in the population increases logarithmically with the population size.The same situation is observed in the real life what is suggested by the International Association of Chiefs of Police [3] .It can be also seen that the number of LEOs per 1,000 citizens needed to maintain a certain level of activity is a decelerating function of the population size.This suggests that growth from small cities to medium cities requires a much greater increase in the relative density of LEOs to citizens compared with growth from medium to large cities.

4.4
To understand the robustness of the obtained results as well as stochastic nature of the agent-based model we generate 10,000 samples in the 3-dimensional space of citizen density, number of LEOs per 1,000 citizens, and population size.For each sample, the model is evaluated and then an analytical model is learned based on all samples (support vector regression is used for learning).Citizen density was drawn from the uniform distribution on Ac*[0.2;0.8],number of LEOs per 1,000 citizens was drawn from the uniform distribution on [0.55;3.89],population size was drawn from the uniform distribution on [9000; 900000].The other parameters are as following: LEO speed is 5, maximum jail term is 175 days, "always actives" fraction is 0.025, "never actives" fraction is 0.45, "conditionally active" fraction is 0.525.The number of the nearest neighbors Nc for each citizen is fixed and is equal to 2124 citizens (236 agents).The citizen vision is calculated as follows: . LEO vision is equal to citizen vision.The lattice size is calculated as follows: . All "always active" citizens are initially in jail.The sigmoidal type of the risk perception function was used.2,000 days on the lattice were computed for each simulation.In the case of the fixed population and the fixed number of the nearest neighbors for each citizen, the parameter defining citizen density can be considered the agent daily relative diffusivity.The small diffusivity corresponds to small diffusion of LEOs per day, the big diffusivity corresponds to large diffusion of LEOs per day.The agent daily relative diffusivity is inversely proportional to the lattice area.

4.5
In the following we define the rate of violence as the average number of citizens active at the end of the day or jailed during the day per 1,000 citizens.The difference between the rate of violence and the number of active citizens per day (in percent) is that the number of citizens jailed during the day is also included in the rate of violence.In Fig. Â 5 the dependence of the rate of violence on the number of LEOs per 1,000 citizens is presented.It can be seen not only that the effect of the number of LEOs per 1,000 citizens on the rate of violence is non-linear, within a population of fixed size and fixed citizen density, but also that a higher number of LEOs per 1,000 citizens is needed for larger populations to maintain the same rate of violence.The 2.3 LEOs per 1,000 citizens is the tipping point for this set of parameters.When the number of LEOs per 1,000 citizens is bigger than 2.3, the rate of violence is very small, citizens stay quiescent because of the high probability to be arrested.For the number of LEOs per 1,000 citizens less than 2.3 and bigger than 1.9, there is a sharp increase in the rate of violence, which slows down for the number of LEOs per 1,000 citizens from 1.4 to 1.9.Â For the number of LEOs per 1,000 citizens from 1.4 to 1.9 the activity somewhat stabilizes because a lot of population is in the jail.For the number of LEOs per 1,000 citizens less than 1.4 the jail can no longer contain all actives and the rate of violence starts to increase.citizen density was drawn from the uniform distribution on Ac*[0.2;0.8],number of LEOs per 1,000 citizens was drawn from the uniform distribution on [0.55;3.89],population size was drawn from the uniform distribution on [9000; 900000], LEO speed is 5, maximum jail term is 175 days, "always actives" fraction is 0.025, "never actives" fraction is 0.45, "conditionally active" fraction is 0.525.The number of the nearest neighbors Nc for each citizen is fixed and is equal to 2124 citizens.The citizen vision is calculated as follows: . LEO vision is equal to citizen vision.The plot represents simulation results.

4.6
FigureÂ 6 conveys a similar situation.Shown is the dependence of the number of LEOs per 1,000 citizens on population size and on rate of violence.In this case number of LEOs per 1,000 citizens was drawn from the uniform distribution on [1.67;2.78],population size was drawn from the uniform distribution on [9000; 3600000].All other parameters are the same as for Fig. 5.The black dashed line represents a rate of violence equal to 2. To keep the same rate of violence for different population sizes, the number of LEOs per 1,000 citizens has to increase super-linearly with the increase in population.In the following we show that this is because of strong dependence of the number of violent outbursts on the number of LEOs per 1,000 citizens in cities with large population.Number of crimes per 1,000 citizens is proportional to population size to the power of 0.1678, which can be calculated as the slope of the green line in the small plot in log scale in Fig. 9.
Figure 9.The number of crimes per 1,000 citizens as a function of the population size.The plot is a smooth fit of FBI data.Blue dots represent 5,660 U.S. cities.

6.2
To provide an explanation for the peculiar dependence on cities' population, we will look at the population dependence of the number of violent outbursts in our model.We define the number of violent outbursts per year to be inversely proportional to the waiting time between two largescale outbursts.

6.5
In our model, a citizen's vision reflects both the level of information he/she possesses as well as population density.The level of information is linked to the average number of neighbors for each citizen.The number of neighbors can be calculated by using the following formula: . If citizens have the same level of information for different population densities, then the citizen vision is inversely proportional to the square root of population density.Fig. Â 13 shows the dependence of the rate of violence on the citizen vision (LEO vision is fixed).The rate of violence is lowest when citizen vision is slightly less than LEO's vision.When citizen vision becomes very small or when it is approximately equal to LEO's vision, the rate of violence rapidly increases.The increase in violence with small vision can be called as an "ignorance of risk" effect, while the increase in violence when citizen vision is greater than LEO vision can be called as a "bravado" effect.In view of this, the rate of violent crimes could be reduced in cities with small population density by increasing the awareness of LEO presence while in cities with large population density, information level of LEOs has to be increased appropriately, so that they can anticipate and respond to the next violent outburst will occur.Â Figure 13.The rate of violence per 1,000 citizens as a function of the citizen vision for population of 567,000.The dependence on citizen vision is very similar for all population sizes.Model parameters are as follows: citizen density is 0.7*Ac; LEO speed is 4; maximum jail term is 120 days; fraction of "always active" citizens is 0.025; fraction of "never active" citizens is 0.5; fraction of "conditionally active" citizens is 0.475. http://jasss.soc.surrey.ac.uk/15/1/2.html models of crime and violence are growing in popularity both because they are able to capture features of actors and the environment that are consistent with empirical description and allow representation of large-scale interacting systems.Recent examples of agentbased modeling of crime include (Makowsky 2006) who investigates the interrelationships among urban crime, mortality, and intergenerational effects.

Figure 1 .
Figure 1.Sketch of the model.Currently quiescent (active) citizens are represented by blue (red) cells, LEOs are represented by black cells.Yellow cells show Moore neighborhood for an agent.During a move, an agent picks a random cell in his/her neighborhood and if the selected cell is unoccupied, he/she moves there, otherwise the agent stays put.Pink cells show a vision of radius 4 for the LEO (black cell).The LEO arrests the nearest active citizen in its field of vision.Green cells show vision of radius 4 for the citizen (blue cell).The citizens calculate their state depending on conditions on the lattice within their field of vision.

Figure 2 .
Figure 2. Citizen's perceived risk functions depending on the ratio x of the number of LEOs to the number of active citizens in the citizen's vision.The "rational" function corresponds to the case when citizen's perceived risk increases monotonically with x.

Figure 4 .
Figure 4. Dependence of the number of LEOs per 1,000 citizens on the population size needed to keep a 0.2% level of active citizens per day for citizen's perceived risk functions of sigmoidal type (blue line) and step type (red line).All model parameters are the same as for Fig. 3.The plot represents simulation results.

Figure 5 .
Figure 5. Dependence of the rate of violence on the number of LEOs per 1,000 citizens.Green points represent 10,000 sampling points.Fitting lines are shown for population of 2.2 * 10 5 Â and 6.7 * 10 5 citizens and citizen density of 0.3*Ac and 0.7*Ac.Model parameters are as follows:citizen density was drawn from the uniform distribution on Ac*[0.2;0.8],number of LEOs per 1,000 citizens was drawn from the uniform distribution on [0.55;3.89],population size was drawn from the uniform distribution on [9000; 900000], LEO speed is 5, maximum jail term is 175 days, "always actives" fraction is 0.025, "never actives" fraction is 0.45, "conditionally active" fraction is 0.525.The number of the nearest neighbors Nc for each citizen is fixed and is equal to 2124 citizens.The citizen vision is calculated as follows:

Figure 6 .
Figure 6.Dependence of the number of LEOs per 1,000 citizens on the population size and the rate of violence.The number of LEOs per 1,000 citizens was drawn from the uniform distribution on [1.67;2.78],population size was drawn from the uniform distribution on [9000; 3600000].All other parameters are the same as for Fig. 5.The plot represents simulation results.4.7 FigureÂ 7 shows a smooth fit of FBI data on the number of LEOs per 1,000 citizens as a function of violent crime rate and population size.White dots represent 5,660 U.S. cities.The color bar to the right indicates the number of LEOs per 1,000 citizens that corresponds to the color band where the specific white dot is plotted.The number of LEOs per 1,000 citizens for experimental data is not displayed here because of the data being noisy.Only the value of the smooth fit is displayed.As our model predicts, the fraction of LEOs in the U.S. cities increases with population.Having established this fact, we assume in the following that the number of LEOs in cities is chosen to keep the same low level of violent activity of citizens.This means that we will use the number of LEOs per 1,000 citizens from Fig.Â 4 when varying the size of the lattice.The assumption that the number of LEOs per 1,000 citizens is chosen in such a way to keep below 0.2% level of violent activity makes our model consistent with the FBI data and makes our model very robust with respect to all model parameters.

Figure 7 .
Figure 7.The number of LEOs per 1,000 citizens as a function of the number of violent crimes per 1,000 citizens and the population size.The plot is a smooth fit of FBI data.White dots represent 5,660 U.S. cities.The color bar to the right indicates the number of LEOs per 1,000 citizens that corresponds to the color band where the specific white dot is plotted.

Figure 8 .
Figure8.A) The number of active citizens (in percent) as a function of time for 100x100 and 600x600 lattices.Horizontal dashed line shows 5% threshold for large-scale outbursts.The sigmoidal type of the citizen's perceived risk function is used.Model parameters are as follows: citizen density is 0.7*Ac; citizen vision is 14; LEO vision is 14; LEO speed is 4; maximum jail term is 120 days; fraction of "always active" citizens R = 0.025; fraction of "never active" citizens G = 0.5; fraction of "conditionally active" citizens is 0.475.Number of LEOs per 1,000 citizens for each case is taken from Fig.4and is equal to 1.51 and 2.02 for lattices of size 100x100 and 600x600, respectively.B) The lattice situation at day 540 (left pane), at day 545 (middle pane) and at day 550 (right pane) for the lattice of size 100x100.Red points represent active citizens; blue points represent quiescent citizens who can become active; black points represent LEOs, empty cells represent non-occupied places and "never active" citizens.C) The lattice situation at day 893 (left pane), at day 905 (middle pane) and at day 917 (right pane) for the lattice of size 600x600.The plot represents simulation results.
Figure 10.Dependence of the number of violent outbursts per year on the population and the number of LEOs per 1,000 citizens.All model parameters are the same as for Fig. 6.The plot represents simulation results.6.3 We see from Fig.Â 11 that for the fixed number of LEOs per 1,000 citizens the rate of violence increases significantly with population.With the smart selection of the number of LEOs per 1,000 citizens the rate of violence is, indeed, the highest for intermediate lattice sizes.This phenomenon does not depend on the perceived net risk function (Fig.Â 2), as long as it is sigmoidal.

Figure 11 .
Figure 11.Number of violent outbursts per year in dependence on the population size.Band shows variation in outburst threshold from 4% to 5%.All model parameters are the same as for Fig. 6.The plot represents simulation results.6.4 Why are the mid-sized cities more prone to violence?In Fig.Â 8 we saw that the outbursts of activity become more frequent, but more localized as the size of the lattice increases.At the same time, the peak number of active citizens decreases with the lattice size (Fig.Â 12).Since the police force is instructed to keep the overall frequency of violent events below a threshold the number of violent outbursts starts to decrease with lattice size for large lattices.