WHAT IS IT?

This is a model that explores interactions between set set of simple personality types and subtypes. Interactions occur as a result of “compatibility” between a type/subtype combination in two or more agents. The interaction itself is manifested by agents moving in the world: higher compatibility leads to movement towards, lower compatibility leads to movement away.

HOW IT WORKS

Personality Model

In order to model attractions between models of similar and dissimilar types, where there is attraction and repulsion for both, we’ve defined an arbitrary personality model that has two types and two subtypes:

Attraction Model

All possible personality type interactions are given by the right triangular matrix:

Personality interaction matrix

with the following rules for attraction/repulsion:

  1. Type I’s are attracted to each other.
  2. Type II’s are repulsed from each other.
  3. Subtype a’s of different types are attracted.
  4. Subtype b’s of different types are repulsed.
  5. Ia personalities are attracted to their opposite in type and subtype.
  6. Ib personalities are repulsed from their opposite in type and subtype.

This gives us the following table of attraction/repulsion interactions for the personality types and subtypes from the right triangular matrix:

      | Ia | Ib | IIa | IIb |
|-----+----|----|-----|-----|
| Ia |
+ | + | + | + |
| Ib | |
+ | - | - |
| IIa | | |
- | - |
| IIb | | | |
- |

Agent Interactions

Attraction and repulsion between agents is “visibility” based (in the user interface, this is controlled by the variable interaction-radius): agents within range of each other, affect each other; outside of that range, no effect is experienced.1

When agents are within the interaction radius, the cummulative effects of all agents on an agent in question is caluclated using the same math as done in introdiuctory physics courses where elemtns of vectors are summed: essentially this is simplified center of mass.

Reuplusion is a special case of attraction: the repulsion “center of mass” is calculated, then flipped 180 degrees around the agent in question and added to the attraction “center of mass” for the total motivating effect of all agents within the radius of interaction.


Section Footnotes

[1] Initially, the plan was for attraction and repulsion between agents to be modeled on Coulomb’s law [2], while combining the effects of multiple agents is modeled with the center of mass. In our case, instead of a mass we wanted to use the inverse square of the distance to the agent in question (this provides the magnitude of the interaction: the closer the agents, the more they would have an impact).

[2] Originally we’d thought of gravitation as our model for attraction, and just inverting it for repulsion. However, Andreas Sjöstedt recommended using Coulomb’s law instead, which was of course an excellent idea, with electrically charged particles providing a more consistent analogy for the personality attraction and repulsion in our model.

HOW TO USE IT

Click “Setup” and then “Go” to watch the default number of agents with the default emotion normal distribution interact with each other.

THINGS TO NOTICE

The expected resuilt with such a simple model is the collapse of like-to-like into clusters. However, outliers that aren’t pulled into clusters of agents with similar personality do something unexpected: they disrupt clusters, causing them to disintegrate or preventing them from assembling in the first place.

Different initial placements of agents as well as different normal distributions of personalities will result in indifferent clusters beingn formed and as well as the degree to which outliers that don’t cluster are present in the world.

THINGS TO TRY

EXTENDING THE MODEL

Increased Personality Types

By increasing the number of personality types, and thus increasing the number of ways in which agents may be attracted to or repulsed from each other, a wider range of behaviours would be exhibited and new patterns observed. In fact, the temptation to explore this was too strong, and one successful attempt was made in this same package (see the model PEMBAs-and-Crowds-Personality-Complex.nlogo). In a sampling of several world configurations, no long-term, fully-stable patterns were observed under the default settings, unlike in this simple personal model.

Different Personality Attraction Models

This model’s definition of attraction between types was especially designed to provide balance across all permutations and ensure that at least one type was attracted to another; exploring a model that had a universal repulsor that no agent was attracted to (even those of its own type) would be an interesting exercise.

Augmenting Personalities

There are agent models that combine personality with emotions and moods (see “A Model for Personality and Emotion Simulation” for more details), and this would be an extremely interesting extension for this model. The Emotional model in this package disusses some of this in more detail.

NETLOGO ISSUES AND MISSING FUNCTIONS

  1. This model was developed using Netlogo 6.1, which has a bug preventing the in-radius function from performing correctly under various circumstances. The Github issue for the bug mentions another ticket which provides a workaround for this problem. That workaround was applied in this project (the procedure was named in-radius2).
  2. This model uses the __includes feature in order to better manage source code in separate files. It was noticed that updates to the separate source files required reloading the model twice via the File -> Recent Files menu.
  3. While the histogram function was very convenient in the development of this model, there were noted absences of other functions, in particular the frequencies function from Clojure. This was implemented in Netlogo (as well as a sorted tuples function) for better introspection of data. You may review the functions by viewing the src/netlogo/util/general.nls file.
  4. Some basic set theoretic functions were absent from Netlogo, so these were implemented as well (see the same file as above).

RELATED MODELS

  1. Wilensky, U. (1998). NetLogo Flocking model. http://ccl.northwestern.edu/netlogo/models/Flocking. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
  2. Stonedahl, F., Wilensky, U., Rand, W. (2014). NetLogo Heroes and Cowards model. http://ccl.northwestern.edu/netlogo/models/HeroesandCowards. Center for Connected Learning and Computer-Based Modeling, Northwestern Institute on Complex Systems, Northwestern University, Evanston, IL.

HOW TO CITE

If you mention this model in a publication, we ask that you include the citation below.

McGreggor, D. (2019). NetLogo Personality, Emotion, and Mood Bearing Agents. https://github.com/oubiwann/abm-personality-and-emotions/tree/master/project.

REFERENCES

  1. Egges, A., Kshirsagar, S., & Magnenat-Thalmann, N. (2003). A Model for Personality and Emotion Simulation. Lecture Notes in Computer Science Knowledge-Based Intelligent Information and Engineering Systems, 453-461. http://doi.org/10.1007/978-3-540-45224-9_63
  2. Deyoung, C. G., Hirsh, J. B., Shane, M. S., Papademetris, X., Rajeevan, N., & Gray, J. R. (2010). Testing Predictions From Personality Neuroscience. Psychological Science, 21(6), 820–828. http://doi.org/10.1177/0956797610370159
  3. Hatfield, E., Rapson, R. L., & Le, Y. L. (2009). Emotional Contagion and Empathy. The Social Neuroscience of Empathy, 19-30. http://doi.org/10.7551/mitpress/9780262012973.003.0003
  4. Deyoung, C. G., & Gray, J. R. (n.d.). Personality neuroscience: Explaining individual differences in affect, behaviour and cognition. The Cambridge Handbook of Personality Psychology, 323-346. http://doi.org/10.1017/cbo9780511596544.023
  5. Gerlach, M., Farb, B., Revelle, W., & Amaral, L. A. (2018). A robust data-driven approach identifies four personality types across four large data sets. Nature Human Behaviour, 2(10), 735-742. http://doi.org/10.1038/s41562-018-0419-z
  6. Mulders, P., Llera, A., Tendolkar, I., Eijndhoven, P. V., & Beckmann, C. (2018). Personality Profiles Are Associated with Functional Brain Networks Related to Cognition and Emotion. Scientific Reports, 8(1). http://doi.org/10.1038/s41598-018-32248-x

COPYRIGHT AND LICENSE

Copyright © 2019 Duncan McGreggor.

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.