Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A Schelling model with adaptive tolerance

  • Linda Urselmans ,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Resources, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    linda@lurselmans.me

    Affiliation University of Essex, Colchester, United Kingdom

  • Steve Phelps

    Roles Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Supervision, Writing – review & editing

    Affiliation King’s College London, London, United Kingdom

Abstract

We introduce a Schelling model in which people are modelled as agents following simple behavioural rules which dictate their tolerance to others, their corresponding preference for particular locations, and in turn their movement through a geographic or social space. Our innovation over previous work is to allow agents to adapt their tolerance to others in response to their local environment, in line with contemporary theories from social psychology. We show that adaptive tolerance leads to a polarization in tolerance levels, with distinct modes at either extreme of the distribution. Moreover, agents self-organize into communities of like-tolerance, just as they congregate with those of same colour. Our results are robust not only to variations in free parameters, but also experimental treatments in which migrants are dynamically introduced into the native population. We argue that this model provides one possible parsimonious explanation of the political landscape circa 2016.

1 Introduction

In this paper we model the adaptation of tolerance in reaction to migration flows into an existing population by drawing on related work from social psychology and political science. International migration is becoming an increasingly defining feature of Western countries, and a key question is what the social implications of large-scale migration and increasing ethnic diversity are. As societies grow more diverse and immigration increases as the world becomes increasingly globalised, concerns about immigration in Europe are high [1].

In social psychology, immigrants and citizens of host societies can be understood as two different groups that lend identity to its members. To native-born people, immigrants thus form an ‘outgroup’. Intergroup threat theory describes the perceptions of threat that people perceive from an outgroup [2]. Perceived threats to society and culture from immigrants are worrying large amounts of voters across Europe [1]. Threat theory includes perceptive threats, which will be the focus in this paper. Thus, whether or not the threat is real is not the primary concern: what matters is that people feel as if it were real. Survey respondents frequently overestimate the number of immigrants in their country [3]. Actual numbers of migrants do not predict perceived threat [2, 4], but perceived numbers do [4]. This can help explain why anti-immigration attitudes are often high in areas with low migration: following the Brexit referendum in 2016, [5] have examined the demographics of voters. They find a negative relationship between EU migration and support for leaving the EU: “of the 20 places with the most EU migrants 18 voted to remain. In many of the areas that were among the most receptive to the Leave campaign there were hardly any EU migrants at all.” [5, p.10].

Intergroup threat theory has proven an effective tool in testing what drives such sentiments [6]. Perceived threats to key values in society can explain the anti-immigrant hostility in Europe [7]. Those who believe that traditional values are undermined and that societal cohesion is not ‘what it once was’, are also more likely to be sceptical of immigration [7].

Integrated threat theory has drawn elements from intergroup contact theory, initially proposed by [8] in 1954 as the ‘Contact hypothesis’. Drawing on studies from mixed and segregated neighbourhoods in the US, Allport concluded that under certain conditions, white people with frequent contact with black people experienced decreased racial prejudice. Intergroup contact theory is not a proposition of frictionless interactions of out-groups resulting in increased trust or social cohesion. Positive contact can potentially lead to these outcomes, but negative contact implies opposite effects [9]. Physical proximity increases the likelihood of contact, but whether that contact is positive (promoting understanding) or negative (invoking a threat perception) is not always clear [9]. In many empirical cases which often times feature migrants as an out-group, the contact conditions are not positive [9]. Migrants that flee poverty and seek work in a first-world country may have a very different collective set of common goals than the host society that was born into what they perceive as the status quo. Differing cultural norms between the host and migrant population can present a social challenge to migration [10], and this would not constitute a positive contact situation. Migrants might not speak the native language, presenting an obvious technical barrier to surpass, strengthening the ‘otherness’ perception of out-groups [10].

In the field of political science, contact theory has enjoyed increased attention since Robert Putnam proposed that, contrary to the consensus at the time, diversity decreases social cohesion in communities [11, 12]. Putnam pointed out that while immigration as a source of diversity has a positive effect on society in the long run, its short-term effects can be largely negative. [10] echoes similar sentiments: in the long run, immigrants contribute to society and integrate, but in the short run, positive effects may be outweighed by social friction generated from the influx of diversity.

Thus, threat theory is the study of precedents of prejudice towards outgroups, and contact theory is the study of the context in which different groups interact.

Both theories have been empirically tested in social psychology and political science, resulting in hundreds of studies (for a meta-study of contact and threat theory, see [13], for a meta-study on social capital and cohesion, see [14]). To date, the relationship between diversity and social capital is unclear. The occurrence and strength of the relationship is dependent on the context it is placed in. [13] find whether data is taken from national or sub-national level, will effect the resolution of information of groups and their behaviour and ultimately, the results of a study. Movement is easier to capture with higher resolution data. Tangential to these findings, [15] notes the stark differences in operationalisation of social capital variables (particularly that of trust) that drive the differences in results between studies.

Empirical studies face difficulties in operationalising variables. Effects on the individual level, such as decreased prejudice as a result of positive contact with an out-group member, must not necessarily persist at the group level. [16] However, much of the research that has spawned as a result of [12]’s finding that diversity invoking threat perceptions has been on macro-level. This means that parts of the underlying theory cannot be captured. Threat theory emphasizes the threat-related antecedents of prejudice such as loss of identity though the presence of an outgroup that challenges the values on which the identity is founded. Contact theory by contrast focuses on the context of the contact [2].

We bridge this micro-macro gap by employing an agent-based model [17]. Agent-based models are particularly suited to exploring theories of social complexity since they are able to capture the properties of heterogeneous populations of individuals, each of who act according to realistic behavioural rules and are located in a geographic and/or social space [18]. Typically, agent-based modelling takes a bottom-up approach in which the model is imbued with micro-level behaviours, which then give rise to macro-level behaviours which can be observed empirically in the output from the model; thus it is easier to bridge the micro-macro gap because all micro-level behaviour is automatically accounted for.

This paper approaches inter-group tolerance from an agent-based perspective in order to understand the implications of migration as an introduction of diversity into an existing population. Previous research has employed agent-based models to introduce differing levels of tolerance [19] and to explore the minority-majority relationships of different groups [20]. In this paper we build on the formalization of the model proposed by [19]. We analyse a model in which we introduce two crucial innovations. Firstly, our model incorporates migration. Secondly, tolerance in our model is adaptive; agents can alter their tolerance levels as they evaluate their surroundings. We use our model to investigate segregation outcomes under environmental conditions where migrants introduce new diversity into the existing population, and both groups have to adapt to the changed social environment. The adaptation of the model proposed by [19] was chosen so that model outcomes of non-adaptive and adaptive agents can be compared more easily.

The remainder of the paper is structured as follows. In the next section we describe our methods and our model. In section 3 we present our results. Finally we conclude in section 4.

2 Method

We use agent-based modelling [17] to analyse the relationship between diversity and social cohesion. Our model is based on the framework originally introduced by Schelling [21]. Two differently-coloured populations of agents are situated in a 2-dimensional grid on which they can move around. The agents have a preference for locations which are populated by agents of the own colour, and they move accordingly. Preferences are quantified according to the threshold fraction of similarly-coloured agents in the neighbourhood that is required for an agent to be satisfied with its locale. [21] showed that even a small preference to be near agents of the same colour gives rise to a large amount of segregation.

We use a similar framework, but introduce migration and adaptation of tolerance. We denote one of the colours—green—as representing natives, and the other—blue—as representing migrants. Migration is modelled by allowing the blue population to grow as new migrants arrive at particular times, and at particular locations, around which they cluster. Both groups of agents follow the same behavioural rules, which comprise a movement rule, and a tolerance adaptation rule. The former is similar to earlier Schelling models in which agents move over time relocating to their preferred neighbourhoods. The latter is an innovation of our particular model; when agents are exposed to the out-group their tolerance increases if they are currently satisfied with their environment, but otherwise it decreases. The model thus deviates from the original Schelling model to include additions that have contributed to recent literature in Urban Studies [19].

In the next section we describe our model in precise detail. The model is analysed by simulating it very many times, recording and drawing free parameters randomly as described in section 2.2. We analyse the model under five different immigration treatments, which are described in section 2.3. We record the dependent-variables for each simulation run, as described in section 2.4. In section 3 we present a cross-sectional and time-series analysis of dependent and independent variables under each treatment. Our analysis shows that there are very clear effects, which can be demonstrated by the use of simple descriptive statistics and scatter-plots, and without the need to resort to opaque statistical tests. The source-code used for simulations is freely available under an open-source license [22].

2.1 The model

A set of agents At = {a1, …, an,t} are located on a toroidal lattice with a total of N = 50 × 50 vertices V at time . The location of agent ai at time t is denoted pi,tV. Each agent ai has a colour attribute denoted ci, which is either blue (ci = B), or green (ci = G). Green agents are the hosts (‘natives’) and they are randomly placed onto the lattice at the beginning of each simulation. Blue agents are migrants and arrive at a later stage. Agents cannot die or otherwise exit the grid. Fig 1 shows a visualisation of a typical state of the model.

thumbnail
Fig 1. An example state of the simulation showing the colour ci of each agent ai.

Blue squares are occupied by migrant agents and green squares by natives. White squares are empty cells. Both populations eventually form visible clusters.

https://doi.org/10.1371/journal.pone.0193950.g001

Agents have a preference to be near other agents of the same colour, but can see only their local neighbourhood. Formally, let H(p) denote the 5 × 5 Moore neighbourhood of location pV, which consists of the set of all other vertices located on the lattice within a Euclidean distance of two nodes from p (allowing for diagonal movement). The neighbours of agent ai are denoted Nt(ai) which contains the set of agents in the neighbourhood of pi—i.e. N(ai) = {aj: pjH(pi)}.

Each agent ai has a tolerance threshold fi,t ∈ [fmin, fmax] which determines the fraction of out-group members the agent tolerates in their immediate neighbourhood. The fraction of agents that are similar to agent ai is given by (1)

Agents are either satisfied or dissatisfied with their neighbours. They are satisfied if and only if the fraction of nearby similar agents meets their tolerance threshold. The utility of agent i at time t is denoted ui,t ∈ {0, 1} and is given by: (2)

Algorithm 1 Movement rule for agent ai

L ← RandomlyChooseVacantSites(z)  ⊳ choose |L| = z candidate locations

L⋆ ← {pi,t}              ⊳ initialise candidate locations

for all ldo

g ← |{ajNt(l):ci = cj}|        ⊳ number in-group agents in neighborhood

d ← |{ajNt(l):cicj}|  ⊳ number of out-group agents in neighborhood

sg/(g + d)

if d > 0 ∧ sfi then

  L⋆ ← L⋆ ∪ {l}            ⊳ update candidate locations

end if

end for

l⋆ ← ChooseOneAtRandom(L*)

pi,t+1 = l⋆                     ⊳ update location

The set of dissatisfied agents is given by Dt = {aiAt: ui,t = 0}. At every time period each dissatisfied agent aiDt, who is currently located at pi,t, randomly samples a number, z, of unoccupied locations Li from the lattice. They then randomly choose a new location from the subset of these for which the ratio of in-group to out-group agents meets their tolerance threshold, i.e. {lLipi,t: si,tfi,t}. If no satisfactory alternative locations are found, then the agent remains at its current location pi,t. The movement rule for an agent ai is summarised by the pseudo-code in Algorithm 1.

As in [23], with probability 10−2 per tick, agents that are satisfied will also relocate, this time randomly picking a location from z randomly-chosen vacant locations, without considering their utility. This models the fact that people in the real world will move due to a variety of reasons, and not just due to diversity tolerances. If an agent fails to find a new location, the agent’s tolerance will remain unchanged. If the agent is still unhappy in the next time period, it will try and find a new location again.

Algorithm 2 Decision rule of agent ai

if |{ajNt(ai): cjci}| > 0 then ⊳ at least one outgroup agent in neighbourhood?

if ui,t = 0 then                 ⊳ agent is dissatisfied?

  Move agent                   ⊳ see Algorithm 1

  fi,t+1fi,t               ⊳ tolerance remains the same

else

  fi,t+1 ← min(fi,t + Δf,fmax)           ⊳ increase tolerance by Δf

  p ← draw randomly from U(0,1)

  if p ≤ 0.01 then        ⊳ satisfied agents move with probability 0.01

   L ← RandomlyChooseVacantSites(z)

   pi,t+1 ← ChooseOneAtRandom(L)

  end if

end if

else

fi,t+1 ← max(fi,t − Δf,fmin)            ⊳ decrease tolerance by Δf

end if

A key feature of our model is that the tolerance of an agent adapts to its local environment, and positive contact with out-group agents leads to an increase in tolerance. Accordingly, at each time period every satisfied agent aiAt: ui,y = 1 who is exposed to at least one out-group agent in its environment increases its tolerance threshold by a constant term Δf, up to the maximum value fmax. Tolerance decreases by the same amount if an agent is surrounded by agents of the same colour. In all other cases, the tolerance remains the same: (3)

The changes in tolerance are thus tightly linked to states of happiness, and contact is not frictionless. The inclusion of the happiness-condition emulates the fact that integration is potentially a costly process. The costs themselves are not modelled, but rather, the happiness condition acts as a proxy for willingness to pay these costs. A happy person is more willing to engage than an unhappy person. Happiness, we recall, is purely a representation of whether the neighbourhood is satisfactory. The entire decision rule of the agents is summarised by the pseudo-code in Algorithm 2.

Depending on the experimental treatment (see section 2.3 below), the population of agents can grow as new migrants arrive. The number of native agents is always constant, but new migrants can arrive in discrete waves of migration. Migration will only occur during the first tmig = 1000 ticks. The population dynamics are specified in terms of:

  1. the final population density—PopDen—which is a parameter that specifies the fraction of occupied sites after all migration event have occurred (at t = tmig);
  2. the native share of the population—NatShare—which specifies the ratio of natives to migrants at the end of the simulation; and
  3. the number of waves of migration—E—which specifies how many migration events occur.

At the beginning of the simulation a total of NG native agents are placed randomly onto the lattice, where (4) (5) and for the treatment where there is no dynamic immigration (E = 0) a total of NB migrant agents are also placed randomly, where (6)

On the other hand, in treatments where migration is dynamic (E > 0), there are no migrant agents on the lattice at the beginning of the simulation. Rather, the first wave of migration occurs at time 0.05 × tmig, and the subsequent migration waves occur at evenly spaced intervals of 0.9 × tmig/E ticks. During each wave of migration an additional number (7) of migrant agents are simultaneously placed onto the lattice, clustering around a focal vacant location pB with the highest number of migrants in its neighbourhood, breaking ties randomly: (8)

If there are no existing migrants on the grid, then instead we use the total number of agents in each neighbourhood to rank candidate focal locations. The additional migration sites for the new arrivals are chosen by iteratively finding the best neighbour of the chosen focal location pB; sites are ranked firstly according to the highest number of surrounding new migrants, and secondly according to their local population density within their neighbourhood. The placement algorithm is summarised in the pseudo-code given by algorithms 3 and 4. A visualisation of this process can be found at [24].

Algorithm 3 Choose locations for migrant agents during migration waves

function PlaceMigrants(pB, ΔB)   ⊳ Place ΔB migrant agents around location pB

PB ← {pB}            ⊳ Initialise the set of locations for immigration

while |PB| < ΔB do              ⊳ More migrants to place?

  pB ← BestNeighbour(pB,PB)      ⊳ Find the best neighbouring location

  PBPBpB                ⊳ add it to the result set

end while

return PB

end function

Algorithm 4 Find the neighbouring site with the greatest population density

function BestNeighbour(pB, PB)   ⊳ Best neighbour of pB excluding locations PB

if |N(pB) − PB − {ai: piN(pB)}| > 0 then  ⊳ Vacant sites not already chosen?

  P* ← {}                   ⊳ Initialise best locations

  d* ← −∞                   ⊳ Initialise best density

  for all pH(pB) − PB − {pi: aiAt} do  ⊳ All vacant unchosen neighbours

   d ← |{ai: piH(p)}|/|H(p)|      ⊳ Calculate local population density

   if d > d* then

    d* ← d

    P* ← P* ∪ (p,d*)

   end if

  end for

  return ChooseOneAtRandom({p: (p,d) ∈ P* ∧ d = d*})

else

  p ← ChooseOneAtRandom(H(pB))

  return BestNeighbour(p,PB)

end if

end function

2.2 Initial conditions

The majority of parameters governing the initial conditions of the model are randomly varied between simulation runs in order to test the robustness of the model. We also record these values so that they can be used as independent variables in order to ascertain any effects. These are described in turn below, and summarised in Table 1 (the remaining constant parameters are summarised in Table 2, and the state variables in Table 3).

Tolerance distribution.

When agent ai arrives at the simulation its initial tolerance fi,0 is drawn i.i.d. from a uniform distribution fi,0U(fmin, fmax). After the initialization, the agent adapts their tolerance according to Eq 3 as summarised in Algorithm 2. For all simulations in this paper we set fmin = 0.05 and fmax = 0.95. These limits prevent agents from fixing at the extreme values of tolerance; with these constraints agents will always be able to tolerate one out-group member in their neighbourhood (without these constraints, any agent reaching full tolerance or intolerance would never readjust again, since just one out-group member would be above the tolerance threshold).

Rate of change of tolerance.

The rate of change of tolerance Δf is the increment used when agents adapt their tolerance (see Eq 3). At the beginning of each simulation it is drawn randomly ΔfU(10−5, 10−3) and remains constant throughout the simulation. The low values of Δf reflect the slow rate of change of attitudes of the population.

Final population density.

The final population density PopDen determines the fraction of occupied sites after all waves of immigration have occurred (|Atmig|/N). From thereon, the number of agents is constant. At the beginning of each simulation this parameter is randomly drawn from a uniform distribution ∼U(0.75, 0.98).

Schelling models are typically assumed to run under conditions of high density [20], which is why the minimum is still of the map covered. Density also acts as a proxy for freedom of choice. Higher density results in less freedom of choosing better areas.

Final native share of the population.

The final native share of the population NatShare determines the ratio of natives to migrants after all waves of immigration have occurred. This parameter is initialised randomly by drawing from a uniform ∼U(0.02, 0.98) at the beginning of each simulation. In treatments without migration (E = 0) it determines the fraction of natives in the initial population, which thereafter remains fixed. In treatments with migration (E > 0), it determines the number of migrants added in each wave (see Eqs 5, 6 and 7), which in turn determines the final fraction of natives in the population.

Considering the extremes of this parameter, when NatShare = 0.02, the world would fill up with migrants until migrants constitute 98% of the population, and natives constitute 2%. Whilst national-level migration does not lead to migrants outnumbering natives, the reasoning is that on smaller geographical areas, this majority-minority flipping can indeed occur. Because segregation is mediated by how society is made up, how big minorities are and how they are distributed, the ratio seeks to test in how far, if at all, different minority-majority relationships influence segregation behaviour and tolerance levels. The traditional Schelling model has usually assumed an even split, an assumption that is not theoretically useful in the context of migration and attitudes towards diversity.

Considered tiles to move.

The parameter z specifies the number of vacant locations than each agent considers when moving. At the beginning of each simulation it is initialised randomly by drawing from a discrete uniform distribution zU(25,125). The minimum and maximum of this distribution correspond to 1% and 5% respectively of the size of the entire lattice.

2.3 Immigration treatments

There are five different experimental treatments for immigration of blue agents into the model, which correspond to five different values of the parameter E. These are summarised in Table 4. Immigration waves arrive within the first 1,000 ticks of tmax = 20,000. This allows agents to adjust their behaviour for a prolonged period after the last migration wave has occurred.

The first treatment E = 0 is a control condition with no immigration taking place. In this condition, both natives and migrants are initialised at the start of the simulation and there is no increase in the size of the migrant group over time. The four remaining treatments all feature immigration at different rates, aiming to simulate one-off large influxes of migrants as well as a “trickle-down” scenario in which few migrants arrive at one time, but do so for a sustained period of time. The precise dynamics are described by Eqs 4 to 7 in the previous section.

2.4 Dependent variables

For each realisation of the model we sample and record dependent variables every 10 time steps, to allow for both cross-sectional and time-series analysis of any effects. These variables are described in turn below, and summarised in Table 5.

As proposed in [23], we record Moran’s index of spatial autocorrelation in order to quantify the amount of segregation by colour: (9) where the mean colour is , and wi,j = 1 if and only if agents ai and aj are immediately adjacent on the lattice (including diagonals), otherwise wi,j = 0.

Crucially we also compute the Moran’s I of tolerance, , by substituting f in place of c in Eq 9: (10)

We also record the first four moments of the tolerance distribution across the population (, , γft and κft), and subdivide this into tolerance of migrants: (11) and tolerance of natives: (12) where Bt is the migrant population {aiAt: ci = B}, and Gt is the native population {aiAt: ci = G}.

Finally, to help identify whether the tolerance distribution is bimodal, we record the bimodality coefficient [25] of the tolerance distribution: (13)

As a notational convention, we refer to the final value of an independent variable at t = tmax by omitting the time subscript from all of the above.

3 Results

The model was analysed through simulation and empirical methods. For each treatment in Table 4 we executed 7,000 independent realisations of the model, drawing free parameters from the distributions specified in Table 1. Each realisation was run for a total of tmax = 20,000 simulation ticks. This resulted in a total of 5 × 7,000 = 35,000 cross-sectional samples of each of the dependent variables (Table 5). During each simulation we also sample all dependent-variables every 10 ticks, resulting in a total of 35,000 × (20,000/10) = 7 × 107 time-series samples. In the following we first give an overview of the qualitative properties of a single typical simulation run before analysing the aggregate data across simulation runs. The model is updated sequentially, every tick. Agents act in sequential order; that order is shuffled every tick to avoid tactical advantages that might result from a pre-determined sequence.

3.1 A typical simulation run

Fig 2 shows a visualisation of a typical simulation run to demonstrate the clustering of agents. The top row shows a progression of migration (E = 4) at a starting density of 37%, filling up with migrants up until a 75% density so that both groups are equal in size. The blue and green agents move around, empty space is white.

thumbnail
Fig 2. States of the simulation at different times.

The top row shows the colours ci of each agent. The bottom row shows the corresponding tolerance heatmap.

https://doi.org/10.1371/journal.pone.0193950.g002

The bottom row shows the corresponding tolerance heat-map. Light colours denote tolerant agents, dark colours denote intolerant agents, and the grey areas are vacant tiles. The period from t = 90 (pre-migration) to t = 100 (post-migration) is marked by a significant changes in tolerance levels. The native fraction of the population that is not in vicinity of migrants are uniformally hostile, whereas the newly arrived migrants have a large variance in their tolerance levels, which are randomly drawn from a uniform distribution upon entering the map. At this stage, the map is sparsely populated and the clusters of migrant and natives have visible buffer-zones between which make inter-group contact less likely.

As more migrants arrive, we start to observe the effects of inter-group contact. Natives exposed to migrants react either by increasing their tolerance, resulting in the lighter colours visible at t = 300, or by moving. Once all of the migrants arrive, at t = 790, there are two pronounced clusters of agents (one of which wraps around the grid). On the tolerance heat-map, we see corresponding clusters of tolerance, with highly-intolerant agents surrounded by highly-tolerant agents. At this stage, most of the population has either very high or very low levels of tolerance, but as long as there is enough empty space to form a buffer zones between the clusters, the majority of agents are still highly intolerant, because only very few contact situations arise; unhappy agents relocate before adapting their tolerance levels.

This situation changes as space becomes more scarce. The final two states shown in Fig 2 illustrate a rapid phase-transition from a mainly intolerant society into a bimodal society of two equally-large fractions of highly-tolerant and highly-intolerant agents. The vacant buffer zones are now populated with tolerant agents of both colours who have relocated from the periphery of their respective clusters, thus forming a new zone of highly-tolerant agents. This tolerant zone expands as more out-group members mix in these high-tolerance areas, which in turn influence agents on the periphery of the intolerant clusters through positive contact, which results in a rapid erosion of their size.

This process continues until the intolerant clusters are completely surrounded by tolerant agents, who are satisfied and therefore static. This provides a dense, rigid substrate which restricts the movement of agents on the periphery of the intolerant clusters, who provide a protective membrane shielding the inner-core from further out-group contact. The periphery itself is highly dynamic; because agents on the periphery are unhappy they relocate, but their range of movement is restricted to locations within or near the cluster. However, inside these clusters, agents are intolerant but satisfied, as they are surrounded by in-group members, and therefore they remain static. Thus the entire cluster of intolerant agents achieves a relatively stable configuration, and persists over time.

The smaller orange-coloured clusters are unstable pockets of medium tolerance which appear throughout the simulation, but rapidly disappear again as they consist entirely of satisfied agents who either become more tolerant through out-group contact, or become isolated and intolerant.

Thus movement and adaptive tolerance interact leading to an emergent shield-and-buffer dynamic that polarises the population, causing it to self-assort along the tolerance axis with agents being either extremely tolerant or intolerant. Although in this section we have only discussed a single simulation run, in subsequent sections we show empirically that the model results in bimodal tolerance for many different initial conditions, and despite Monte-Carlo variance.

3.2 Model convergence

As discussed in the previous section, the model exhibits subtle dynamics, and therefore it is important to establish whether the key dependent variables stabilise within the finite time period ttmax. We test the convergence of each independent realisation of the model individually by analysing the final n = 250 values Vf of the time-series of each independent variable V sampled at intervals of 10 ticks. The criteria we use to test convergence of each variable are: i) if the variance of the final sample is extremely small ; or (ii) the standard deviation is small compared to the overall range σVf < [max(V) − min(V)] × 10−4; or iii) if Vf is stationary under an augmented Dickey-Fuller test [26]. The latter is established by estimating the model ΔVt = α + βt + γVt−1 + δ1 ΔVt−1 + … + δλ−1 ΔVt−λ+1 + ϵt where the lag order λ is chosen using the Akaike information criterion, and accepting the time-series as convergent iff. if the value of the test statistic is less than the critical value for p = 0.05.

These criteria were chosen because they allow us to test not only for cases where the model reaches a static steady state in which values of dependent variables are constant over time, but also stochastic steady states in which the ensemble time-series is stationary; i.e. the moments, such as the mean and variance, are constant, despite the fact that the dependent variable has non-zero rate of change.

Using the above criteria, we analyse the time-series of the tolerance of migrants, the tolerance of natives, and the segregation of colour; i.e. . We record that the sample path has converged for a given realisation i.i.f. all three variables converge in the final period.

Over the entire range of parameters, we were only able to reject the null hypothesis of non-stationarity for 86% of the sample paths. We were able to identify which independent variables contributed to the convergence of the model through a correlation analysis, which identified NatShare and Δf as the most promising explanatory variables. We binned NatShare and Δf × 100 into bins of size 0.05, and plotted the proportion of sample paths that converged within each bin (Fig 3).

thumbnail
Fig 3. Proportion of sample paths that test positively for convergence by independent variable.

Each variable X is binned into intervals of size 0.05, and then we count the fraction of sample paths which pass the test within each bin.

https://doi.org/10.1371/journal.pone.0193950.g003

As we expected, the highest failure rate occurs for extreme values of NatShare and for small values of Δf < 0.0005; for very small values of Δf agents adapt very slowly, and the model fails to reach equilibrium within ttmax, whereas for extreme values of NatShare, the respective minorities are likely too small to form sustainable clusters, thus breaking up and forming again. In fact, both variables interact; if we do not control for NatShare then the convergence rate increases asymptotically, but slowly, with Δf. However, if we control for extreme values of NatShare then provided that Δf ≥ 0.0005 we obtain fairly consistent convergence rates of ∼97%. As we show empirically in the next section, for these parameter ranges the ensemble of sample paths is wide-sense stationary; i.e. the mean of the dependent variable across sample paths does not change over time.

Based on our convergence analysis, we restricted the ranges of the NatShare and Δf parameters used in the remainder of the paper. All results in subsequent sections use the ranges 0.2 ≤NatShare≤ 0.8, and Δf ≥ 0.0005, for which the vast majority (97%) of sample paths test positively for convergence. These ranges are summarised in Table 6.

thumbnail
Table 6. Restricted ranges of independent variables for which the model converges within ttmax.

https://doi.org/10.1371/journal.pone.0193950.t006

3.3 Time-series analysis

The tolerance of natives (henceforth: ‘native tolerance’) and migrants (henceforth: ‘migrant tolerance’) over time is plotted in Fig 4). An important variable affecting tolerance behaviour is NatShare, which determines the final size of the native share of the population. Fig 4 shows tolerance levels over time by the high and low values of native share, grouped into NatShare ≤ 0.3 and NatShare ≤ 0.7 respectively.

thumbnail
Fig 4. Time series of native tolerance (green) and migrant tolerance (blue), by treatment, filtered by extreme values of the native-share initial condition (0.2 ≤ NatShare ≥ 0.7).

The error bars (black) show the 95% confidence interval for the mean of the values across independent simulation runs and the range of Δf that leads to convergence. The dashed line at tmig marks the end of migration waves.

https://doi.org/10.1371/journal.pone.0193950.g004

In the case of low native share, under no migration (E = 0) conditions, natives and migrants behave similarly (Fig 4a and 4f). The majority group is slightly less tolerant. The differences are visible at first, but nearly converge after t = 2500. The differences are very small, but still significant.

The case of E = 1 stands out from the rest. When NatShare is low (Fig 4b), natives never recover fully from the initial shock of migration. As with all other cases, native tolerance drops sharply and quickly recovers, but not exceeding for the remaining time. The reverse scenario of high NatShare (Fig 4g) is visibly different: natives recover and reach near-total tolerance, along with migrants. These values are slightly higher than those observed in Fig 4f, with no migration. The reason that the E = 1 treatment is so different from the rest is that in the case of low NatShare, the proportion of natives to migrants is flipped immediately: native agents who constitute 20% of the final population make up 100% of the pre-migration population. Because of the large number of migrants coming in, many migrants are immediately exposed to a majority of migrants, presenting a shock not just to parts of the population, but to most of it. As no migrants had been present before, natives have not clustered into groups which could at least ‘shield’ the inner part from the effects of the one-off migration (this is because segregation behaviour is triggered by unhappiness rather than absence of out-group members, see section 2.1). Because natives suddenly find themselves in a minority and most of the agents become unhappy, they will move into areas with fewer migrants. The sudden influx has prevented even moderate natives to adapt to their changing neighbourhood, and as they start to segregate away, not enough tolerant natives remain to become happy and increase their tolerance levels. The sudden minority is an important element of this behaviour. As the high NatShare situation shows (Fig 4g), a one-off influx does not reduce long-term native tolerance when natives are in a majority even after the large migration wave. In contrast, natives in E = 0 treatments are exposed to migrants from the very beginning: they experience unhappiness and will segregate to improve it, creating pockets of happy and intolerant natives surrounded by tolerant natives that are exposed to migrants and shield the intolerant parts of their population group from exposure. This process is not achieved in E = 1 treatments, where previous absence of migrants has meant that native tolerance had started to decline.

At E = 4 (Fig 4c and 4h), the shocks from each migration wave is visible. When NatShare is low (Fig 4c), migrant tolerance is low when migration is still occurring. The increases in tolerance at each migration wave is due to the random initialisation of tolerance for new migrants. Effectively, each wave presents an opportunity to tip the tolerance balance within the population. This is not achieved until the fourth and last wave of migration has arrived at t = 700. Natives are visibly affected by the influx of migrants. During the first two migration waves, native tolerance drops to near-zero, before increasing sharply to above 0.6 at t = 1000. Beyond this point, both natives and migrants transition to a majority tolerant society of by t = 5000.

For E = 15 (Fig 4-d and 4-i) and E = 100 (Fig 4-e and 4-j) the overall pattern is very similar. The migration waves are no longer as visible on the graphs, as the size of waves is not large enough to upset the overall population. Both natives and migrants will first experience a drop to low levels of tolerance, and recover quickly as more waves arrive, reaching their peak. Higher numbers of migration waves increase the time required to reach convergence of peak tolerance when NatShare is high (Fig 4-i and 4-j). When E = 4, the peak is reached by t = 5000. When E = 100, this requires an additional 2,500 ticks. This means that for longer periods of time, the population groups are not as tolerant. The higher convergence times are also visible in Fig 3.

A notable difference between natives and migrants in the E = 15 and E = 100 cases is that natives will always drop their tolerance to near-zero, regardless of their population share. Migrants mirror this pattern only when they are in the minority (Fig 4-d and 4-e). When migrants are a majority (Fig 4-i and 4-j) their lowest tolerance is above 0.1. If natives and migrants behaved the same way, the graphs on the left should be mirrored by the graphs on the right. Lastly, when E = 100 and NatShare is high (Fig 4-j), the maximum tolerance levels are not as high compared to cases with fewer migration waves. The variance increases as the number of waves increases, suggesting a less settled pattern of tolerance.

3.4 Cross-sectional analysis

In this section we analyse the dependent variables listed in Table 5 across a total of 15,000 independent simulation runs, drawing parameters from the distributions in Table 1.

Fig 5 shows a scatter-plot of the average final tolerance of each group against the native-share initial condition (NatShare), subdivided by treatment. The first column shows the tolerance of natives and the second column depicts the tolerance of migrants . Outcomes from the five immigration treatments from Table 4 are each shown on a separate row.

thumbnail
Fig 5. Scatter plots, by treatment, of native tolerance () and migrant tolerance () against native share of the population (NatShare), in steady-state at t = tmax.

https://doi.org/10.1371/journal.pone.0193950.g005

Because both natives and migrants share the same decision-rule for adapting their tolerance (algorithm 2), our initial intuition was that all the graphs would simply be mirrored. The control treatment with no migration, E = 0, shows this mirroring pattern for both native and migrant agents: when natives are in a minority, their tolerance is more varied, dropping to 0.8. The same behaviour is observed for migrants when they are in the minority.

When migration occurs only once (E = 1), natives and migrants differ markedly in their tolerance behaviour. Part of the pattern is still mirrored: natives that constitute the vast majority of agents (NatShare ≥ 0.7) are very tolerant, as are migrants when NatShare ≤ 0.3. When natives are in majorities smaller than 0.7, the native tolerance splits: a large number of cases see very high native tolerance, and very low tolerance. Medium levels of are observed throughout. A part of this pattern is reflected in the earlier time-series of native tolerance in Fig 4. Migrants don’t diverge in their behaviour as much, although their tolerance starts to vary more as well, never dropping below 0.6. Migrants in minorities cope better than natives in minorities when E = 1.

This pattern does not apply for the cases E > 1. When E = 4, both natives and migrants are very tolerant with the exception of one outlier each, where tolerance is at or near zero. When E = 15, more cases of intolerant natives and migrants occur throughout the range of NatShare. When E = 100, those low-tolerance cases only appear at NatShare ≥ 0.5. Thus, when the number of migration waves is very high and natives form the majority of the population, more cases of intolerance occur. Tolerance levels always verge on the extreme ends of the scale.

The different types of migration flows modelled by the treatments in Table 4 do not significantly affect the broad functional relationship between tolerance () and native-share (NatShare) if E > 1. The high variance of native tolerance at E = 1 is likely due to the fact that the one-off migration wave is so disruptive that for large parameter ranges, natives do not recover their tolerance.

High tolerance within very small groups is likely due to the fact that with so few agents, no coherent group can form, and thus all free-moving agents become more and more tolerant as they have no homogeneous neighbourhood to escape into. This line of reasoning is intuitive for migrants in general, since they arrive in smaller batches. The high variance of tolerant minority migrants could be down to their initial placement. Depending on where their clusters are located, they may find a cluster large enough to ensure lower tolerance levels. Those that roam the map on their own will exhibit high tolerance levels.

As Δf affects how quickly agents change their tolerance, we investigate its effects on agent tolerance as well. Fig 6 presents the same variables as Fig 5, this time with Δf as the independent variable instead of NatShare. The overall patterns are very similar: migrant and native tolerance are very high in cases of E = 0, 4, 15 and 100, with an increasing number of low-tolerance agents as the number of migration waves increases. Again, E = 1 is a clear outlier. We recall that NatShare values up to 0.6 correlate with a high variance of native tolerance. The majority of agents are either extremely tolerant or intolerant, but in contrast to the other cases of E, many moderate natives exist, too. At NatShare levels above 0.7, tolerance once again dominates. Δf as an independent variable affects differently: as Δf increases, native tolerance decreases. In other words, when natives can change their tolerance more quickly, many of them become more intolerant. However, just like NatShare, a proportion of natives stay very tolerance throughout all values of Δf. As Δf increases past 0.6, the variance of tolerance levels increases. More agents assume moderate tolerance levels- however, the majority reside on either side of the extreme. As discussed above, E = 1 deviates from the rest of the findings, and only does so for native agents. Fig 6 shows that Δf is very important in determining the overall tolerance levels of natives in the case of E = 1: when agents are very slow to change their minds (Δf ≤ 0.2), they change too slowly in order to express the experience of the large migration wave as low tolerance. When natives can react quicker (that is, they need fewer rounds to reach a new level of required in-group neighbours), they start to decrease their tolerance levels. It should be noted that until Δf of 0.5, overall tolerant natives are still in the majority and that no natives below a exist. For the other cases of E however, Δf does not show such an impact.

thumbnail
Fig 6. Scatter plots, by treatment, of native tolerance () and migrant tolerance () against the rate of change of tolerance (Δf), in steady-state at t = tmax.

https://doi.org/10.1371/journal.pone.0193950.g006

3.5 Bimodality analysis

Both the cross-sectional and the time-series analysis indicate highly polarised tolerance levels. Fig 7 shows a histogram of tolerance values fi across the population at the end of representative simulation runs. In these cases, tolerance values are concentrated at both extremes of the distribution, and the distribution is bimodal. Depending on the parameters, the split can vary between 30-70 and 70-30, with less than 10% of agents taking more moderate tolerance values. Thus parameters can determine the extent to which a population leans to the very tolerant or very intolerant, but the overall pattern remains that of a deeply divided society.

thumbnail
Fig 7. Histograms of the three most common distributions of final tolerance levels fi.

Intermediate tolerance is infrequent when tolerance levels are polarised.

https://doi.org/10.1371/journal.pone.0193950.g007

Fig 8 shows a scatterplot of the bimodality coefficient of tolerance Bf against the native share of the population across all simulation runs. Regardless of the experimental setup, the bimodality coefficient is almost always above the critical value , denoted by the red horizontal line. Due to their similarity, E = 1 and E = 4, as well as E = 15 and E = 100 were grouped together. Bimodality is lowest when native share is either or of the population. In cases with migration, bimodality drops earlier compared to the control. In a large number of cases, bimodality is nearly at 1 for the mid-range values of native share, illustrating its strong polarising effect on the population. The sharp drops in bimodality near the critical value are caused mainly by very low values of Δf.

thumbnail
Fig 8. Scatterplot of the bimodality coefficient of the tolerance distribution βf at the end of simulations, against native share of the population (NatShare).

Treatments were merged here due to their similarity. The critical value is denoted by the horizontal red line.

https://doi.org/10.1371/journal.pone.0193950.g008

A divided society of agents is typical for a Schelling model, since agents are intrinsically homophilic by construction. However, divisions in a Schelling model are based on colour, or in this case, native or migrant status. The segregation of tolerance in this case is higher: Fig 9 shows the Moran’s I of spatial autocorrelation for both colour-based segregation Mc (as typically measured in a Schelling model) and for tolerance-based segregation Mf. Again, the results are grouped into both ends of native share values and broken down by immigration treatment. The long-term segregation levels for out-groups (colour) are consistent throughout all cases, including the control (Fig 9-a and 9-f), never reaching Mc = 0.2. The values are not much higher than the values observed when movement is random (i.e. 0.1 ≤ Mc ≤ 0.15). Schelling models have a baseline Mc value because some segregation exists by pure chance of agents’ position at any point in time, suggesting that adaptive agents can circumvent segregation of colour to a large extent.

thumbnail
Fig 9. Time series, by treatment, of the segregation levels of colour (black), and tolerance (yellow), filtered by extreme values of the native-share initial condition (0.3 ≤ NatShare ≥ 0.7).

The error bars show the 95% confidence intervals of the mean of Mt across simulation runs. The dashed line at tmig marks the end of migration waves.

https://doi.org/10.1371/journal.pone.0193950.g009

By contrast, segregation of tolerance attitudes, Mf is higher at the end of each simulation for most treatments of E and levels of NatShare. The exception is E = 1 and low NatShare (Fig 9-b), which sees both colour and tolerance segregation at similar low levels.

The differences between Mc and Mf are more pronounced when NatShare is high; (Fig 9-h, 9-i and 9-j) need slightly longer than cases with low NatShare (Fig 9-c, 9-d and 9-e). In the case of E = 4 (Fig 9-h), each migration wave is a visible shock to the existing tolerance level. Each drives Mf and Mc up. The same pattern is true of E > 4 (Fig 9-i and 9-j), but the smaller waves leave less distinct marks. As seen previously with tolerance developments in Fig 4, the values change most during the arrival of migration waves, and settle once the final wave has arrived. Convergence of segregation values is reached before t = 5000, where cases of E > 1 and high NatShare (Fig 9-h, 9-i and 9-j) need slightly longer than cases with low NatShare (Fig 9-c, 9-d and 9-e). Long-term levels of tolerance segregation are at or above 0.2 when E > 1, whereas no migration shows lower levels of Mf.

The higher level of attitude-based segregation is interesting because agents do not actively seek out tolerant or intolerant neighbours; in fact, they are oblivious to the tolerance attitudes of their neighbours. The decision rule described in Algorithm 2 drives adjustment of attitudes, but not an open choice of out-group neighbourhood, as is the case with agent colour. The connection between diverse neighbourhoods and adjustments of tolerance seems to cause an unintended, much larger segregation than that of out-groups. Previous work including segregation of preferences have found the same effect (see [27] and [19]), but the scale of Mf is much lower in this adaptive model (see [19] for more insight into Mf in a non-adaptive model).

Fig 10 shows the bimodality coefficient of tolerance just like Fig 8, this time against Δf, the rate of change of tolerance. As in the case of NatShare, the vast majority of cases reside above the critical value of , with only a handful of cases below the red line. The strong bimodality of tolerance throughout all cases of E is also upheld for the range of Δf, showing that even at very low levels of Δf, bimodality is still hight. Overall, lower values of Δf lead to lower levels of bimodality (yet above the critical value). That agents who can change their tolerance more quickly tend towards higher bimodality levels is intuitive: the ability to change tolerance quickly can push agents towards the extreme ends more easily. However, we recall as shown in Fig 6, Δf alone does not determine the split between high and low tolerance agents.

thumbnail
Fig 10. Scatterplot of the bimodality coefficient of the tolerance distribution βf at the end of simulations, against the rate of change of tolerance (Δf).

Again, treatments were merged due to their similarity. The critical value is denoted by the horizontal red line.

https://doi.org/10.1371/journal.pone.0193950.g010

4 Discussion

Our modelling work contributes insights both to sociology and political science, which we discuss in turn below.

From the perspective of sociology, our results highlight the importance of minority and majority situations, which is corroborated by other studies [20]. Migration matters, but minority-majority population shares mediates the effects strongly, especially in the short-term. The differences are particularly pronounced for extreme values of the population share, and the effects can be both negative as well as positive. The importance of population share is in line with [8]’s suggestion that the respective standings of each out-group in society plays an important role in contact situations. Our model suggests that the mere size difference leads to logistic situations that affect inter-group contact. This result also resonates with some of the findings in the empirical literature. For example, [28] find that majority groups experience a greater decline in prejudice as the result of contact compared to minority groups. The status of groups influences the potential perceived threat [6]. Dominant groups might fear a loss of privilege, the subordinate groups might worry about oppression [6, p.195].

From the perspective of political science, we have shown that simple yet theoretically-plausible behavioural rules can give rise to a polarisation in tolerance towards out-groups, and self-assortment of the population into tolerant and intolerant clusters. Neither behaviour is built into the model from the outset, but rather these are emergent behaviours that arise from a subtle interaction between adaptive tolerance and movement of the population. Crucially, divisions of native-migrant groups do not necessarily predict divisions in tolerance. Rather, intermediate tolerance levels are inherently unstable when movement and tolerance-adaptation interact. Sometimes individual agents transition from one extreme to the other, but most agents remain either very tolerant or intolerant.

This assortment of the population into communities of similar tolerance is highly reminiscent of the current political landscape in the UK, the US and the many European countries that have experienced a surge in populist parties. These new developments have shifted the divide between economic left and right to more sociocultural divisions. In Britain, those who voted to leave the EU in the 2016 referendum were characterised by social conservatism, nationalism and low levels of political trust, whereas remain voters were more likely social liberals, cosmopolitan and high on trust values [29]. Similar divisions are visible for Trump and Clinton voters in the US. Social and economic ideologies change how voters perceive social and economic issues [30]. Non-economic issues have become increasingly important for political parties in the West [31], and populist parties and candidates appeal on the basis of fears about immigration, sovereignty, and security. Both liberals and conservatives are subject to increased prejudice towards the respective political out-group [30], but the rise in populist narrative builds on immigrant narratives especially in the Netherlands and in the Brexit referendum in Britain [29]. The Leave majority was highest in areas that were the least diverse or featured high numbers of working-class voters; but also in areas which had experienced rapid demographic change as the result of immigration in the past ten years [29].

Moreover, the mechanism that causes self-assortment along the tolerance axis also has a plausible real-world analogue. Within the model, polarisation of tolerance is caused by the shield-and-buffer dynamic described in section 3.1 which prevents clusters of intolerant agents from one group from being exposed to out-group agents. This shield-and-buffer dynamic might offer one potential explanation for the political bimodality found today. Cosmopolitan areas of a country are generally populated by people that are more tolerant of migrants; and migrants that reside in these areas are generally tolerant in turn [5]. However, if the migrant diaspora exceeds a certain size, it could potentially sustain a sub-culture that is not dependent on integration with the host population. If non-migrants that live outside these areas have no direct contact with migrants, or the migrant fraction of the population is too small to provide sufficient contact situations, and peoples’ out-group tolerance increases or decreases as described by contact and threat-theory, then polarisation would ensue, just as it does in our model.

Acknowledgments

We would like to thank the anonymous referees whose feedback led to a much improved draft of this paper, and Hugh Ward for his valuable input and discussions.

References

  1. 1. Heath A, Richards L, The Questionnaire Design Team. Attitudes towards immigration and thier antecedents: topline results from Round 7 of the European Social Survey. European Social Survey European Research Infrastructure Consortium; 2016. 7.
  2. 2. Stephan WG, Ybarra O, Morrison KR. Intergroup Threat Theory. In: Nelson TD, editor. Handbook of Prejudice, Stereotyping, and Discrimination. 1st ed. New York: Taylor & Francis Group; 2009.
  3. 3. Markaki Y, Longhi S. What determines attitudes to immigration in European countries? An analysis at the regional level. ISER Working Paper Series. 2012;2012–25.
  4. 4. Semyonov M, Raijman R, Yom-Tov A, Schmidt P. Population size, perceive threat and exclusion: a multiple-indicators analysis of attitudes toward foreigners in Germany. Social Science Research. 2004;(33):681–701.
  5. 5. Goodwin MJ, Heath O. The 2016 Referendum, Brexit and the Left Behind: An Aggregate-level Analysis of the Result. Political Quarterly. 2016;87(3):323–332.
  6. 6. Stephan WG, Renfro CL. The Role of Threat in Intergroup Relations. In: Mackie DM, Smith ER, editors. From Prejudice to Intergroup Emotions: Differentiated Reactions to Social Groups. 1st ed. Psychology Press; 2002. p. 316.
  7. 7. Mclaren LM, Franklin M, Hooghe M, Morales L, Letki N, De Vries C, et al. The Cultural Divide in Europe: Migration, Multiculturalism, and Political Trust. the European Research Centre on Migration and Ethnic Relations. 2012;.
  8. 8. Allport GW. The Nature of Prejudice. vol. 35. 25th ed. Addison-Wesley Publishing; 1954.
  9. 9. Pettigrew TF, Tropp LR, Wagner U, Christ O. Recent advances in intergroup contact theory. International Journal of Intercultural Relations. 2011;35(3):271–280.
  10. 10. Collier P. Exodus: how migration is changing our world. 1st ed. London: Penguin Books; 2013.
  11. 11. Putnam RD. Bowling alone: the collapse and revival of American community. Simon & Schuster; 2000.
  12. 12. Putnam RD. E Pluribus Unum? Diversity and community in the twenty-first century. Scandinavian Political Studies. 2007;30(2):137–174.
  13. 13. Kaufmann E, Goodwin M. The Diversity Wave: A meta-analysis of ethnic diversity, perceived threat and native white backlash; 2016.
  14. 14. Portes A, Vickstrom E. Diversity, Social Capital, and Cohesion. In: Dustman C, editor. Migration: Economic change, social challenge. 1st ed. Oxford: Oxford University Press; 2015. p. 192.
  15. 15. Ariely G. Does Diversity Erode Social Cohesion? Conceptual and Methodological Issues. Political Studies. 2014;62(3):573–595.
  16. 16. Pettigrew TF, Tropp LR. A meta-analytic test of intergroup contact theory. Journal of personality and social psychology. 2006;90(5):751–783. pmid:16737372
  17. 17. Bonabeau E. Agent-based modeling: methods and techniques for simulating human systems. Proceedings of the National Academy of Sciences. 2002;99(suppl. 3):7280–7287.
  18. 18. Klabunde A, Willekens F. Decision-Making in Agent-Based Models of Migration: State of the Art and Challenges. European Journal of Population. 2016;32(1):73–97. pmid:27069292
  19. 19. Hatna E, Benenson I. Combining segregation and integration: Schelling model dynamics for heterogeneous population. Jasss. 2015;18(4):1–22.
  20. 20. Hatna E, Benenson I. The Schelling Model of Ethnic Residential Dynamics: Beyond the Integrated—Segregated Dichotomy of Patterns. Journal of Artificial Societies and Social Simulation. 2012;15(2012):1–23.
  21. 21. Schelling TC. Dynamic Models of Segregation. Journal of Mathematical Sociology. 1971;1:143–186.
  22. 22. Urselmans L. Source-code for Schelling model with adaptive tolerance; 2017. https://github.com/lursel/ABM-adaptive-tolerance.
  23. 23. Benenson I, Hatna E. Minority-majority relations in the schelling model of residential dynamics. Geographical Analysis. 2011;43(3):287–305.
  24. 24. Urselmans L. Visualisation of migrant placement for a Schelling model with adaptive tolerance; 2017. http://videos.lurselmans.me/#InfluxAlgorithm.
  25. 25. Pfister R, Schwarz KA, Janczyk M, Dale R, Freeman J. Good things peak in pairs: a note on the bimodality coefficient. Frontiers in psychology. 2013;4:700. pmid:24109465
  26. 26. Elliott G, Rothenberg TJ, Stock JH. Efficient Tests for an Autoregressive Unit Root. Econometrica. 1996;64(4):813–836.
  27. 27. Urselmans L. A Schelling model with immigration dynamics. Springer; 2017. p. 13.
  28. 28. Pettigrew TF, Christ O, Wagner U, Stellmacher J. Direct and indirect intergroup contact effects on prejudice: A normative interpretation. International Journal of Intercultural Relations. 2007;31(4):411–425.
  29. 29. Ford R, Goodwin M. A Nation Divided. Journal of Democracy. 2017;28(1):17–30.
  30. 30. Crawford JT, Brandt MJ, Inbar Y, Chambers JR, Motyl M. Social and economic ideologies differentially predict prejudice across the political spectrum, but social issues are most divisive. Journal of Personality and Social Psychology. 2017;112(3):383–412. pmid:28221092
  31. 31. Crawford JT, Brandt MJ, Chambers JR. Trump, Brexit, and the Rise of Populism: Economic Have-Nots and Cultural Backlash; 2016.