NetLogo banner

Home
Download
Help
Forum
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

  Donate

NetLogo User Community Models

(back to the NetLogo User Community Models)

[screen shot]

Download
If clicking does not initiate a download, try right clicking or control clicking and choosing "Save" or "Download".

Try It in NetLogo Web

## WHAT IS IT?

The q-voter model with independence [3] is a model of opinion dynamics in which each agent verbalizes an opinion on a two-point scale, such as yes/no or for/against. There are two types of social responses in the model, conformity and independence. Conformity means submitting to the influence of others and adopting their opinions. Independence, on the other hand, does not involve considering the opinions of others.

Here, we introduce an extension of the q-voter model with independence, which takes into account that there may be a discrepancy between agents' private opinion (true beliefs) and public opinion (the expressed opinion or behavior). We assume that agents can only see each other's public opinions. If an agent has different opinions on these two levels (private and public), it is in what is called cognitive dissonance. Again, there are two possible responses: conformity and independence, but they are different at the private and public levels. The model we present here is the modification of the model introduced in [4]. This modification of the model is to account for the fact that people usually try to reduce cognitive dissonance [5].

In the case of public opinion, independence means that the agent expresses its true (private) opinion, and thus its public opinion is equal to its private one. Conformity, on the other hand, corresponds to the situation where the agent adapts its behavior to other agents. We randomly choose q neighbors (q-panel) that will be the source of social influence. If an agent is initially in internal harmony, i.e. has the same private and public opinion, it will be less susceptible to social pressure. In this case, unanimity of the q-panel is required. In other words, when q voters express the same opinion, the considered agent changes its public opinion to be the same as theirs, even though this may lead to dissonance. This type of conformity is called compliance in social psychology. On the other hand, if the agent is initially in internal conflict, it will be more willing to change. Thus, it is enough for at least one person to express an opinion that is consistent with the private beliefs of the considered agent in order to encourage it to express them. Thus, we replace the public opinion of the agent with the private one if among the selected q-voters there is at least one who shares the private opinion of the agent. This type of influence is known in psychology as disinhibitory contagion.

Change of private opinion as an independent decision refers to a rethinking of a given issue. In this case, the private opinion changes to the opposite with a probability of 1/2. Conformity at the private level also requires the choice of q neighbors who will be the source of influence. To change the agent's beliefs, not only must q voters behave unanimously, but the agent itself must express the same public opinion as shared by the group. Thus, the agent changes its private opinion to the public opinion shared by a unanimous group formed by the q voters and itself.

We consider two variants of the model:
* Act then Think (AT) - agents update first their public opinion, then private one
* Think then Act (TA) - agents update first their private opinion, then public one

## HOW IT WORKS

We consider a population of agents on a network of size N. In this implementation, we use the Watts-Strogatz network, which is described by two parameters: k (the average degree of the node) and beta (the probability of rewiring).
There are two parameters of the model: q (the size of the influence group) and p (the probability of independent behavior). Each agent at both levels can have one of two possible opinions +1 or -1 (e.g., opinion for or against a given issue), which are colored green or red, respectively. The private, or internal, opinion is represented by the inner circle, while the public (or expressed) opinion is represented by the outer circle. In total, there are four possible states of the agent ([+1, +1], [+1, -1], [-1, +1], [-1, -1]).

Time evolution of the systems in AT variant is given by the following ALGORITHM:

0) Set the parameters of the network and of the model, as well as the initial conditions; set the counter time = 0

1) Randomly choose one of the N agents to reconsider its opinion, we will call it the "target", and update the counter: time = time + 1

2) ACT
With probability p, the target behaves independently, so it sets public opinion equal to private opinion.
With complementary probability (1-p), it is susceptible to the influence of its neighbors (agents directly connected to the target). It chooses q neighbors to form the q-panel
- If the target's public opinion is the same as its private opinion: it checks if all agents from the q-panel have the same opinion - if so, it sets the public opinion to the same as its own (compliance)
- Otherwise, the target checks if at least one agent from the q-panel has the same opinion as its own, and if so, it sets the public opinion to the same as its private opinion (disinhibitory contagion)

3)THINK
With probability p the target behaves independently - with probability 1/2 the private opinion changes to the opposite.
With complementary probability (1-p) it randomly selects q panels from its neighbors and checks if they all have the same public opinion as its public one - if so, it sets its private opinion to the same public one

4) Go to 1

The algorithm for TA variant vary only in the changed order of points 2 and 3.

## HOW TO USE IT

NETWORK PARAMETERS

The model is implemented on the Watts-Strogatz network, therefore first choose parameters of the network:

* N - number of agents
* k - the average degree of the node (note that k should be an even number; in the case of odd number the average degree will be k-1; for complete graph, choose k = N - 1)
* beta - probability of rewiring

MODEL PARAMETERS

Choose parameters of the model:

* q - size of the influence group
* p - the probability of independence

INITIAL CONDITIONS

The last thing to choose is the initial fraction of agents with positive opinion, with is given by parameter:

* density_of_ones - the fraction of agents with both opinions equal to 1 (positive opinions) at the beginning of simulations; they are randomly distributed over the whole system. Note that at the beginning all of the agents public opinion equal to private one (nobody is in dissonance).

After choosing values of all parameters click:
1) "setup" - to set all values of parameters (step 0 of the ALGORITHM described in Section HOW IT WORKS)
2) "go-AT" or "go-TA - to see the evolution of the system within single update (steps 1-3 of the ALGORITHM described in Section HOW IT WORKS)
3) "go-AT forever" or "go-TA forever" - to run the model according to steps 1-4 of the ALGORITHM described in Section HOW IT WORKS

Algorithm can be also observed in the step-by-step section by clicking one by one the following buttons:
0) "setup"- to set all values of parameters. Note that this time only public opinion of agents are visible in order to present, what agents really know about each other. Herein some agents may initially be in dissonance to ease observation of possible scenarios
1) "target" - an agent, which opinion will be updated is selected. Thick black lines indicate the target's neighbors. Now target's private opinion is shown
2) "q-panel" - q agents among all target's neighbors are randomly selected, they are marked by increased size
3) "act" - target updates its public opinion according to the ALGORITHM described in Section HOW IT WORKS
4) "think" - target updates its private opinion according to the ALGORITHM described in Section HOW IT WORKS
The monitor displays which behavior worked - conformity (compliance/disinhibitory contagion) or independence. (In order to ensure, that you observe conformity set p=0, to guarantee independence set p=1.)

## THINGS TO NOTICE

The society described by the model can be in one of two qualitatively different phases:
1) Agreement: there is a majority opinion in the society, which means, for example, that in democratic elections there is a clear winner; in physics we would call such a phase "ordered".
2) Disagreement: the fractions of both opinions are almost equal, which means, for example, that in democratic elections there is no clear winner; in physics we would call such a phase "disordered".

If we change only the independence parameter p and keep all the others fixed, we can observe a phase transition between these phases. This transition occurs for the same value of p at the public and private levels. The character of this transition depends on the parameter q (size of the influence group).

For q < 3, depending on p system will be in one of these states. Disagreement is observed for p > p*, above critical point p<sup>*</sup>. In the case of agreement, for p < p*, system randomly chooses the dominating opinion. In the case of systems of finite size (as the one that we can observe here) the majority opinion may change in time - system switches between two states symmetric with respect to 0.5.

For q >= 3 there is such a range of p, p*<sub>low</sub> < p < p*<sub>high</sub> that both qualitatively different states - agreement and disagreement coexist. The state of the system depends on the initial conditions, what we call hysteresis. However, again for the finite systems there are possible switches between these states.

The top plot shows the concentration of agents with positive opinions on the public and private levels. Note that in the case of the ordered state, the majority on the public level is greater than on the private level, so there are obviously agents in dissonance. However, even in the disordered state, when the concentrations of agents with positive opinions on both the public and private levels oscillate around 0.5, there are still agents in dissonance (note the non-zero values in the lower plot).

## THINGS TO TRY

* In order to observe that majority on public level is greater than on private set e.g. N = 101, k = 100, q = 2, p = 0.1.

* To observe that although there are approximately the same number of positive agents on both levels, some of them are still in dissonance, change p to p=0.5.

* To observe coexistence of two qualitatively different phases - ordered and disordered set e.g. N = 101, k = 100, q = 3, p = 0.25.
The system will randomly switch majority holding opinion 1 or -1 and disagreement, when fractions supporting each of the options are almost equal.

## EXTENDING THE MODEL

One can implement the model on other random networks such as Erdos-Renyi or Barabasi-Albert.

## HOW TO CITE

## ACKNOWLEDGEMENT

This model was created as part of the project funded by the National Science Center (NCN, Poland) through grant no. 2019/35/B/HS6/02530

## CREDITS AND REFERENCES

[1] S. E. Asch (1955), Opinions and social pressure. Scientific American, 193(5), 31–35.
[2] C. Castellano, M.A. Muñoz, R. Pastor-Satorras (2009), Nonlinear q-voter model. Physical Review E, 80(4), 041129.
[3] P. Nyczka, K. Sznajd-Weron, J. Cisło (2012), Phase transitions in the q-voter model with two types of stochastic driving. Physical Review E,86(1), 011105.
[4] A. Jędrzejewski, G. Marcjasz, P. R. Nail, K. Sznajd-Weron (2018), Think then act or act then think? PLoS ONE, 13(11), 1-19.
[5] L. Festinger (1957), A Theory of Cognitive Dissonance. California: Stanford University Press.

<!-- 2023 -->

(back to the NetLogo User Community Models)