SlideShare a Scribd company logo
Introduction to
Agent Based Modeling
Using NetLogo
Prem Sankar C
Research Scholar, Dept of Futures Studies
Prem Sankar C - Dept of Futures Studies 2
Introduction to Agent Based Modeling
● An ABM is a computer simulation program:
● a collection of agents and their states
● the rules governing the interactions of the agents
● the environment (overall system) within which they live.
● ABM for Simulation of Complex Systems
● Helps to simulate artificial societies
Prem Sankar C - Dept of Futures Studies 3
Flying patterns – Birds -Flocking
Prem Sankar C - Dept of Futures Studies 4
Shortest path - Ants
http://agentbase.org/model.html?b24f11b263d0de2610f1#
Prem Sankar C - Dept of Futures Studies 5
ABM Definition
● An agent-based model is a class of computational
models for simulating the actions and interactions of
autonomous agents with a view to assessing their
effects on the system as a whole. - Wikipedia
● Agent Based Models can help analyze and simulate
Complex Systems.
Prem Sankar C - Dept of Futures Studies 6
Where ABM applied?
● Flows: evacuation, traffic, and
customer flowmanagement.
● Markets: stock market,
shopbots and software
agents,and strategic
simulation.
● Organizations: operational
risk and organizational design.
● Diffusion: diffusion of
innovation and adoption
dynamics.
Prem Sankar C - Dept of Futures Studies 7
ABM Examples
● Population Dynamics
● Predator-Prey Dynamics
● Political Dynamics
● Migration Modeling
● Epidemic Simulation
● Crowd modeling
● Pedestrian modeling and simulation
● Policy / Decision making
● Modeling Financial Markets
Assignment: Agent Based Simulation Industrial Applications?
Prem Sankar C - Dept of Futures Studies 8
Components of ABM model
● Space/ Enviornment
● Agents
● Time
● Visualization
● Interaction Rules
Prem Sankar C - Dept of Futures Studies 9
Who is an agent?
● An agent is a thing which does things to things
(Kauffman)
● A discrete entity with its own goals and behaviors
● Autonomous, with a capability to adapt and modify its
behaviors
● has some state
● interacts with other agents mutually modifying
each others’ states
● your model your rules!!!
Prem Sankar C - Dept of Futures Studies 10
OOPs V/s ABM
● Objects
● Class
● Attributes/ Properties
● Procedures/ Methods
● Agents
● Community
● Behaviour Values
● Interactions
● State to State
Yes, agents are objects!
Prem Sankar C - Dept of Futures Studies 11
Agent Environments
Types of Agent Environments
Prem Sankar C - Dept of Futures Studies 12
Agent Interactions
Depending on the environment agents interact in different
manners.
Typically an agent interact with neighbors
For Eg: In a Grid, surrounding cells are the neighborhood.
In a network, the first degree connections are neighbors.
Prem Sankar C - Dept of Futures Studies 13
What is simulation time? How it
calculated?
● A schedule implies a timeline
● ask agents [
# do something
]
advance-tick
Prem Sankar C - Dept of Futures Studies 14
Getting Started - NetLogo
Prem Sankar C - Dept of Futures Studies 15
Introduction to NetLogo
● The Center for Connected Learning (CCL) and Computer-Based
Modeling, Northwestern University, USA.
● Free and Open Source
● The name NetLogo comes from “Network Logo”
● Uses a Procedural Language called Logo
● Other Tools -SWARM, RePast, MASON, MESA etc.
● Docs & tutorial: bit.ly/abm-mesa
http://mesa.readthedocs.io/en/latest/#contributing-back-to-mesa
● Refer Wikipedia ABM tools list
Prem Sankar C - Dept of Futures Studies 16
NetLogo-User and Programming Interface
Prem Sankar C - Dept of Futures Studies 17
Why NetLogo?
Very popular tool (educational purpose).
Easy-to-use language, great for beginners.
Mature platform, rare bugs to none.
Contains many useful already-made primitives and structures.
Great for prototyping models, deploys web Java applets.
Many example available.
Great documentation, active community.
Can be used for complex models also.
Scalability issues.
Becomes slow when things get complicated.
Lack of Object Oriented style, debugger.
Prem Sankar C - Dept of Futures Studies 18
Wolf Sheep Predation model
● This model explores the stability of predator-prey ecosystems. [Biology]
Predator-Prey
Dynamics
Prem Sankar C - Dept of Futures Studies 19
Virus spread in a network
● Demonstrates the spread
of a virus through a
network.
● Each node may be in one
of three states:
susceptible, infected, or
resistant
● referred as SIR model for
epidemic
● Try Dengi !!!
Prem Sankar C - Dept of Futures Studies 20
Game of Life
Game Of Life:
 two-dimensional orthogonal grid
Agents are cells, state dead or alive
 
Rules:
1)Any live cell with fewer than two live
neighbors dies, as if caused by under-
population.
2)Any live cell with two or three live
neighbors lives on to the next generation.
3)Any live cell with more than three live
neighbors dies, as if by overcrowding.
4)Any dead cell with exactly three live
neighbors becomes a live cell, as if by
reproduction.
Prem Sankar C - Dept of Futures Studies 21
Try this !!!
Assignment : List out Steady State patterns
Prem Sankar C - Dept of Futures Studies 22
Preferential Attachment
The model starts with two
nodes connected by an edge.
At each step, a new node is
added. A new node picks an
existing node to connect to
randomly, but with some
bias
Node’s chance of being
selected is directly
proportional to the number
of connections it already has.
Prem Sankar C - Dept of Futures Studies 23
BeeSmart Hive Finding
● The BeeSmart Master model shows the swarm
intelligence of honeybees during their hive-
finding process.
● A swarm of tens of thousands of honeybees
can accurately pick the best new hive site
available among dozens of potential choices
through self-organizing behavior.
Story of Waggle Lab
Prem Sankar C - Dept of Futures Studies 24
When we use ABM ?
1)When there are decisions and behaviors that can be
well-defined.
2)When it is important that agents adapt and change
their behaviors.
3)When it is important that agents have a dynamic
relationship with other agents, and agent relationships
form, change and decay.
4)When the past is no predictor of the future because the
processes of growth and change are dynamic.
Prem Sankar C - Dept of Futures Studies 25
Why we use ABM ?
● Agent-based models represent individuals,
their behaviors and their interactions
● Equation-based models represent aggregates
and their dynamics.
● Agents have decision-making abilities and an
understanding of their environment
● Micro to Macro: Agent behaviors to System
Behaviors
Prem Sankar C - Dept of Futures Studies 26
ABM features
● Bottom-up approach
● No central authority
● Individual behavior is nonlinear
● Agent interactions are heterogeneous
● Studying effects of
– decentralized decision making
– local-global interaction, self-organization, emergence
– heterogeneity in the system
Prem Sankar C - Dept of Futures Studies 27
We have a model, then?
● Every model has a parameters space
● Simulate each possible combination many
times
● Compare what you have found with empirical
values
Prem Sankar C - Dept of Futures Studies 28
The research question is: “how
could the decentralized local
interactions of heterogeneous
autonomous agents generate
a global pattern?
Prem Sankar C - Dept of Futures Studies 29
How to ask for help ?
● Google Search
● Professional Communities
● Ask a question on www.stackoverflow.com
● Please be smart in the title:
● Please be specific in the message:
Prem Sankar C - Dept of Futures Studies 30
Reference
1) Vizzari, EASSS 2009 - Torino – 3-4/9/2009 Tutorial.
2) CM Macal and MJ North, Tutorial on agent-based modeling and simulation,
Journal of Simulation 2010.
3) CM Macal and MJ North, AGENT-BASED MODELING AND SIMULATION,
Proceedings of the 2009 Winter Simulation Conference.
4) Paul Davidsson , Agent Based Social Simulation: A Computer
Science View, Journal of Artificial Societies and Social Simulation vol. 5,
no. 1.
5) Rob Allan, Survey of Agent Based Modelling and Simulation Tools
Prem Sankar C - Dept of Futures Studies 31
Thank you for your attention!
Ad

More Related Content

What's hot (20)

Introduction of abm
Introduction of abmIntroduction of abm
Introduction of abm
yudiyasik
 
Agent based modeling-presentation
Agent based modeling-presentationAgent based modeling-presentation
Agent based modeling-presentation
Adam Getchell
 
Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016
Jacqueline Kazil
 
[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
taeseon ryu
 
Bees algorithm
Bees algorithmBees algorithm
Bees algorithm
Amrit Kaur
 
Methods of Optimization in Machine Learning
Methods of Optimization in Machine LearningMethods of Optimization in Machine Learning
Methods of Optimization in Machine Learning
Knoldus Inc.
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
Ajit Nayak
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)
quadmemo
 
Proximal Policy Optimization (Reinforcement Learning)
Proximal Policy Optimization (Reinforcement Learning)Proximal Policy Optimization (Reinforcement Learning)
Proximal Policy Optimization (Reinforcement Learning)
Thom Lane
 
Interpretable machine learning : Methods for understanding complex models
Interpretable machine learning : Methods for understanding complex modelsInterpretable machine learning : Methods for understanding complex models
Interpretable machine learning : Methods for understanding complex models
Manojit Nandi
 
Ai swarm intelligence
Ai   swarm intelligenceAi   swarm intelligence
Ai swarm intelligence
Venkatesh Vinayakarao
 
Dynamic modeling
Dynamic modelingDynamic modeling
Dynamic modeling
Preeti Mishra
 
Optimization in Deep Learning
Optimization in Deep LearningOptimization in Deep Learning
Optimization in Deep Learning
Yan Xu
 
Swarm intelligence algorithms
Swarm intelligence algorithmsSwarm intelligence algorithms
Swarm intelligence algorithms
Aboul Ella Hassanien
 
Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)
Krishnaram Kenthapadi
 
Interpretable machine learning
Interpretable machine learningInterpretable machine learning
Interpretable machine learning
Sri Ambati
 
Planning and Learning with Tabular Methods
Planning and Learning with Tabular MethodsPlanning and Learning with Tabular Methods
Planning and Learning with Tabular Methods
Dongmin Lee
 
PCA (Principal Component Analysis)
PCA (Principal Component Analysis)PCA (Principal Component Analysis)
PCA (Principal Component Analysis)
Jungho Park
 
Agent architectures
Agent architecturesAgent architectures
Agent architectures
Antonio Moreno
 
ensemble learning
ensemble learningensemble learning
ensemble learning
butest
 
Introduction of abm
Introduction of abmIntroduction of abm
Introduction of abm
yudiyasik
 
Agent based modeling-presentation
Agent based modeling-presentationAgent based modeling-presentation
Agent based modeling-presentation
Adam Getchell
 
Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016Agent-Based Modeling & Python @ PyData DC 2016
Agent-Based Modeling & Python @ PyData DC 2016
Jacqueline Kazil
 
[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
[딥논읽] Meta-Transfer Learning for Zero-Shot Super-Resolution paper review
taeseon ryu
 
Bees algorithm
Bees algorithmBees algorithm
Bees algorithm
Amrit Kaur
 
Methods of Optimization in Machine Learning
Methods of Optimization in Machine LearningMethods of Optimization in Machine Learning
Methods of Optimization in Machine Learning
Knoldus Inc.
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
Ajit Nayak
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)
quadmemo
 
Proximal Policy Optimization (Reinforcement Learning)
Proximal Policy Optimization (Reinforcement Learning)Proximal Policy Optimization (Reinforcement Learning)
Proximal Policy Optimization (Reinforcement Learning)
Thom Lane
 
Interpretable machine learning : Methods for understanding complex models
Interpretable machine learning : Methods for understanding complex modelsInterpretable machine learning : Methods for understanding complex models
Interpretable machine learning : Methods for understanding complex models
Manojit Nandi
 
Optimization in Deep Learning
Optimization in Deep LearningOptimization in Deep Learning
Optimization in Deep Learning
Yan Xu
 
Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)
Krishnaram Kenthapadi
 
Interpretable machine learning
Interpretable machine learningInterpretable machine learning
Interpretable machine learning
Sri Ambati
 
Planning and Learning with Tabular Methods
Planning and Learning with Tabular MethodsPlanning and Learning with Tabular Methods
Planning and Learning with Tabular Methods
Dongmin Lee
 
PCA (Principal Component Analysis)
PCA (Principal Component Analysis)PCA (Principal Component Analysis)
PCA (Principal Component Analysis)
Jungho Park
 
ensemble learning
ensemble learningensemble learning
ensemble learning
butest
 

Similar to Introduction to Agent Based Modeling Using NetLogo (20)

Predictive analytics semi-supervised learning with GANs
Predictive analytics   semi-supervised learning with GANsPredictive analytics   semi-supervised learning with GANs
Predictive analytics semi-supervised learning with GANs
terek47
 
Model evaluation in the land of deep learning
Model evaluation in the land of deep learningModel evaluation in the land of deep learning
Model evaluation in the land of deep learning
Pramit Choudhary
 
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Isuru Perera
 
Learning to learn Model Behavior: How to use "human-in-the-loop" to explain d...
Learning to learn Model Behavior: How to use "human-in-the-loop" to explain d...Learning to learn Model Behavior: How to use "human-in-the-loop" to explain d...
Learning to learn Model Behavior: How to use "human-in-the-loop" to explain d...
IDEAS - Int'l Data Engineering and Science Association
 
Actor critic algorithm
Actor critic algorithmActor critic algorithm
Actor critic algorithm
Jie-Han Chen
 
Study and development of methods and tools for testing, validation and verif...
 Study and development of methods and tools for testing, validation and verif... Study and development of methods and tools for testing, validation and verif...
Study and development of methods and tools for testing, validation and verif...
Emilio Serrano
 
Introduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIMLIntroduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIML
vsaipriya
 
Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...
Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...
Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...
Dr. Cornelius Ludmann
 
achine Learning and Model Risk
achine Learning and Model Riskachine Learning and Model Risk
achine Learning and Model Risk
QuantUniversity
 
Machine Learning and AI: Core Methods and Applications
Machine Learning and AI: Core Methods and ApplicationsMachine Learning and AI: Core Methods and Applications
Machine Learning and AI: Core Methods and Applications
QuantUniversity
 
250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...
250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...
250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...
thanhdowork
 
MAS
MASMAS
MAS
Ritesh Nayak
 
Introduction of abm
Introduction of abmIntroduction of abm
Introduction of abm
yudiyasik
 
IRJET- Criminal Recognization in CCTV Surveillance Video
IRJET-  	  Criminal Recognization in CCTV Surveillance VideoIRJET-  	  Criminal Recognization in CCTV Surveillance Video
IRJET- Criminal Recognization in CCTV Surveillance Video
IRJET Journal
 
Learning to Learn Model Behavior ( Capital One: data intelligence conference )
Learning to Learn Model Behavior ( Capital One: data intelligence conference )Learning to Learn Model Behavior ( Capital One: data intelligence conference )
Learning to Learn Model Behavior ( Capital One: data intelligence conference )
Pramit Choudhary
 
Operations Research
Operations ResearchOperations Research
Operations Research
Dr T.Sivakami
 
Deep Credit Risk Ranking with LSTM with Kyle Grove
Deep Credit Risk Ranking with LSTM with Kyle GroveDeep Credit Risk Ranking with LSTM with Kyle Grove
Deep Credit Risk Ranking with LSTM with Kyle Grove
Databricks
 
Introduction of abm
Introduction of abmIntroduction of abm
Introduction of abm
Yudi Yasik
 
Ai in finance
Ai in financeAi in finance
Ai in finance
QuantUniversity
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
Muhammad Jahanzaib
 
Predictive analytics semi-supervised learning with GANs
Predictive analytics   semi-supervised learning with GANsPredictive analytics   semi-supervised learning with GANs
Predictive analytics semi-supervised learning with GANs
terek47
 
Model evaluation in the land of deep learning
Model evaluation in the land of deep learningModel evaluation in the land of deep learning
Model evaluation in the land of deep learning
Pramit Choudhary
 
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Isuru Perera
 
Actor critic algorithm
Actor critic algorithmActor critic algorithm
Actor critic algorithm
Jie-Han Chen
 
Study and development of methods and tools for testing, validation and verif...
 Study and development of methods and tools for testing, validation and verif... Study and development of methods and tools for testing, validation and verif...
Study and development of methods and tools for testing, validation and verif...
Emilio Serrano
 
Introduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIMLIntroduction to the TYPES OF AGENTS _ AIML
Introduction to the TYPES OF AGENTS _ AIML
vsaipriya
 
Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...
Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...
Continuous Evaluation of Collaborative Recommender Systems in Data Stream Man...
Dr. Cornelius Ludmann
 
achine Learning and Model Risk
achine Learning and Model Riskachine Learning and Model Risk
achine Learning and Model Risk
QuantUniversity
 
Machine Learning and AI: Core Methods and Applications
Machine Learning and AI: Core Methods and ApplicationsMachine Learning and AI: Core Methods and Applications
Machine Learning and AI: Core Methods and Applications
QuantUniversity
 
250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...
250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...
250428_JW_labseminar[KGAT: Knowledge Graph Attention Network for Recommendati...
thanhdowork
 
Introduction of abm
Introduction of abmIntroduction of abm
Introduction of abm
yudiyasik
 
IRJET- Criminal Recognization in CCTV Surveillance Video
IRJET-  	  Criminal Recognization in CCTV Surveillance VideoIRJET-  	  Criminal Recognization in CCTV Surveillance Video
IRJET- Criminal Recognization in CCTV Surveillance Video
IRJET Journal
 
Learning to Learn Model Behavior ( Capital One: data intelligence conference )
Learning to Learn Model Behavior ( Capital One: data intelligence conference )Learning to Learn Model Behavior ( Capital One: data intelligence conference )
Learning to Learn Model Behavior ( Capital One: data intelligence conference )
Pramit Choudhary
 
Deep Credit Risk Ranking with LSTM with Kyle Grove
Deep Credit Risk Ranking with LSTM with Kyle GroveDeep Credit Risk Ranking with LSTM with Kyle Grove
Deep Credit Risk Ranking with LSTM with Kyle Grove
Databricks
 
Introduction of abm
Introduction of abmIntroduction of abm
Introduction of abm
Yudi Yasik
 
Ad

More from Premsankar Chakkingal (14)

AI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the ClassroomsAI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the Classrooms
Premsankar Chakkingal
 
AI in Creative Space
AI in Creative SpaceAI in Creative Space
AI in Creative Space
Premsankar Chakkingal
 
Dynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day SpeechesDynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day Speeches
Premsankar Chakkingal
 
Introduction to Computational Social Science
Introduction to Computational Social ScienceIntroduction to Computational Social Science
Introduction to Computational Social Science
Premsankar Chakkingal
 
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
Premsankar Chakkingal
 
Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...
Premsankar Chakkingal
 
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
 INTRODUCTION INFORMATION RETRIEVAL EVALUVATION INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
Premsankar Chakkingal
 
Negotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender systemNegotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender system
Premsankar Chakkingal
 
Business potential of Energy Auditing in Kerala
Business potential of Energy Auditing in KeralaBusiness potential of Energy Auditing in Kerala
Business potential of Energy Auditing in Kerala
Premsankar Chakkingal
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Premsankar Chakkingal
 
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge NetworksNegotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Premsankar Chakkingal
 
Introduction to Social Network Analysis
Introduction to Social Network AnalysisIntroduction to Social Network Analysis
Introduction to Social Network Analysis
Premsankar Chakkingal
 
Hypothesis Testing for Beginners
Hypothesis Testing for BeginnersHypothesis Testing for Beginners
Hypothesis Testing for Beginners
Premsankar Chakkingal
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Premsankar Chakkingal
 
AI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the ClassroomsAI for Educators - Integrating AI in the Classrooms
AI for Educators - Integrating AI in the Classrooms
Premsankar Chakkingal
 
Dynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day SpeechesDynamics of Semantic Networks of Independence Day Speeches
Dynamics of Semantic Networks of Independence Day Speeches
Premsankar Chakkingal
 
Introduction to Computational Social Science
Introduction to Computational Social ScienceIntroduction to Computational Social Science
Introduction to Computational Social Science
Premsankar Chakkingal
 
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...Introductory Talk on Social Network Analysis  at Facebook Developer Circle Me...
Introductory Talk on Social Network Analysis at Facebook Developer Circle Me...
Premsankar Chakkingal
 
Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...Introduction to Technology Assessments As tool for Forecasting and evaluation...
Introduction to Technology Assessments As tool for Forecasting and evaluation...
Premsankar Chakkingal
 
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
 INTRODUCTION INFORMATION RETRIEVAL EVALUVATION INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
INTRODUCTION INFORMATION RETRIEVAL EVALUVATION
Premsankar Chakkingal
 
Negotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender systemNegotiated Studies - A semantic social network based expert recommender system
Negotiated Studies - A semantic social network based expert recommender system
Premsankar Chakkingal
 
Business potential of Energy Auditing in Kerala
Business potential of Energy Auditing in KeralaBusiness potential of Energy Auditing in Kerala
Business potential of Energy Auditing in Kerala
Premsankar Chakkingal
 
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge NetworksNegotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Negotiated Studies Presentation on Social Network Analysis of Knowledge Networks
Premsankar Chakkingal
 
Introduction to Social Network Analysis
Introduction to Social Network AnalysisIntroduction to Social Network Analysis
Introduction to Social Network Analysis
Premsankar Chakkingal
 
Ad

Recently uploaded (20)

Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Build 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHSBuild 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHS
TECH EHS Solution
 
Mastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdfMastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdf
Spiral Mantra
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Build 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHSBuild 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHS
TECH EHS Solution
 
Mastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdfMastering Advance Window Functions in SQL.pdf
Mastering Advance Window Functions in SQL.pdf
Spiral Mantra
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 

Introduction to Agent Based Modeling Using NetLogo

  • 1. Introduction to Agent Based Modeling Using NetLogo Prem Sankar C Research Scholar, Dept of Futures Studies
  • 2. Prem Sankar C - Dept of Futures Studies 2 Introduction to Agent Based Modeling ● An ABM is a computer simulation program: ● a collection of agents and their states ● the rules governing the interactions of the agents ● the environment (overall system) within which they live. ● ABM for Simulation of Complex Systems ● Helps to simulate artificial societies
  • 3. Prem Sankar C - Dept of Futures Studies 3 Flying patterns – Birds -Flocking
  • 4. Prem Sankar C - Dept of Futures Studies 4 Shortest path - Ants http://agentbase.org/model.html?b24f11b263d0de2610f1#
  • 5. Prem Sankar C - Dept of Futures Studies 5 ABM Definition ● An agent-based model is a class of computational models for simulating the actions and interactions of autonomous agents with a view to assessing their effects on the system as a whole. - Wikipedia ● Agent Based Models can help analyze and simulate Complex Systems.
  • 6. Prem Sankar C - Dept of Futures Studies 6 Where ABM applied? ● Flows: evacuation, traffic, and customer flowmanagement. ● Markets: stock market, shopbots and software agents,and strategic simulation. ● Organizations: operational risk and organizational design. ● Diffusion: diffusion of innovation and adoption dynamics.
  • 7. Prem Sankar C - Dept of Futures Studies 7 ABM Examples ● Population Dynamics ● Predator-Prey Dynamics ● Political Dynamics ● Migration Modeling ● Epidemic Simulation ● Crowd modeling ● Pedestrian modeling and simulation ● Policy / Decision making ● Modeling Financial Markets Assignment: Agent Based Simulation Industrial Applications?
  • 8. Prem Sankar C - Dept of Futures Studies 8 Components of ABM model ● Space/ Enviornment ● Agents ● Time ● Visualization ● Interaction Rules
  • 9. Prem Sankar C - Dept of Futures Studies 9 Who is an agent? ● An agent is a thing which does things to things (Kauffman) ● A discrete entity with its own goals and behaviors ● Autonomous, with a capability to adapt and modify its behaviors ● has some state ● interacts with other agents mutually modifying each others’ states ● your model your rules!!!
  • 10. Prem Sankar C - Dept of Futures Studies 10 OOPs V/s ABM ● Objects ● Class ● Attributes/ Properties ● Procedures/ Methods ● Agents ● Community ● Behaviour Values ● Interactions ● State to State Yes, agents are objects!
  • 11. Prem Sankar C - Dept of Futures Studies 11 Agent Environments Types of Agent Environments
  • 12. Prem Sankar C - Dept of Futures Studies 12 Agent Interactions Depending on the environment agents interact in different manners. Typically an agent interact with neighbors For Eg: In a Grid, surrounding cells are the neighborhood. In a network, the first degree connections are neighbors.
  • 13. Prem Sankar C - Dept of Futures Studies 13 What is simulation time? How it calculated? ● A schedule implies a timeline ● ask agents [ # do something ] advance-tick
  • 14. Prem Sankar C - Dept of Futures Studies 14 Getting Started - NetLogo
  • 15. Prem Sankar C - Dept of Futures Studies 15 Introduction to NetLogo ● The Center for Connected Learning (CCL) and Computer-Based Modeling, Northwestern University, USA. ● Free and Open Source ● The name NetLogo comes from “Network Logo” ● Uses a Procedural Language called Logo ● Other Tools -SWARM, RePast, MASON, MESA etc. ● Docs & tutorial: bit.ly/abm-mesa http://mesa.readthedocs.io/en/latest/#contributing-back-to-mesa ● Refer Wikipedia ABM tools list
  • 16. Prem Sankar C - Dept of Futures Studies 16 NetLogo-User and Programming Interface
  • 17. Prem Sankar C - Dept of Futures Studies 17 Why NetLogo? Very popular tool (educational purpose). Easy-to-use language, great for beginners. Mature platform, rare bugs to none. Contains many useful already-made primitives and structures. Great for prototyping models, deploys web Java applets. Many example available. Great documentation, active community. Can be used for complex models also. Scalability issues. Becomes slow when things get complicated. Lack of Object Oriented style, debugger.
  • 18. Prem Sankar C - Dept of Futures Studies 18 Wolf Sheep Predation model ● This model explores the stability of predator-prey ecosystems. [Biology] Predator-Prey Dynamics
  • 19. Prem Sankar C - Dept of Futures Studies 19 Virus spread in a network ● Demonstrates the spread of a virus through a network. ● Each node may be in one of three states: susceptible, infected, or resistant ● referred as SIR model for epidemic ● Try Dengi !!!
  • 20. Prem Sankar C - Dept of Futures Studies 20 Game of Life Game Of Life:  two-dimensional orthogonal grid Agents are cells, state dead or alive   Rules: 1)Any live cell with fewer than two live neighbors dies, as if caused by under- population. 2)Any live cell with two or three live neighbors lives on to the next generation. 3)Any live cell with more than three live neighbors dies, as if by overcrowding. 4)Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.
  • 21. Prem Sankar C - Dept of Futures Studies 21 Try this !!! Assignment : List out Steady State patterns
  • 22. Prem Sankar C - Dept of Futures Studies 22 Preferential Attachment The model starts with two nodes connected by an edge. At each step, a new node is added. A new node picks an existing node to connect to randomly, but with some bias Node’s chance of being selected is directly proportional to the number of connections it already has.
  • 23. Prem Sankar C - Dept of Futures Studies 23 BeeSmart Hive Finding ● The BeeSmart Master model shows the swarm intelligence of honeybees during their hive- finding process. ● A swarm of tens of thousands of honeybees can accurately pick the best new hive site available among dozens of potential choices through self-organizing behavior. Story of Waggle Lab
  • 24. Prem Sankar C - Dept of Futures Studies 24 When we use ABM ? 1)When there are decisions and behaviors that can be well-defined. 2)When it is important that agents adapt and change their behaviors. 3)When it is important that agents have a dynamic relationship with other agents, and agent relationships form, change and decay. 4)When the past is no predictor of the future because the processes of growth and change are dynamic.
  • 25. Prem Sankar C - Dept of Futures Studies 25 Why we use ABM ? ● Agent-based models represent individuals, their behaviors and their interactions ● Equation-based models represent aggregates and their dynamics. ● Agents have decision-making abilities and an understanding of their environment ● Micro to Macro: Agent behaviors to System Behaviors
  • 26. Prem Sankar C - Dept of Futures Studies 26 ABM features ● Bottom-up approach ● No central authority ● Individual behavior is nonlinear ● Agent interactions are heterogeneous ● Studying effects of – decentralized decision making – local-global interaction, self-organization, emergence – heterogeneity in the system
  • 27. Prem Sankar C - Dept of Futures Studies 27 We have a model, then? ● Every model has a parameters space ● Simulate each possible combination many times ● Compare what you have found with empirical values
  • 28. Prem Sankar C - Dept of Futures Studies 28 The research question is: “how could the decentralized local interactions of heterogeneous autonomous agents generate a global pattern?
  • 29. Prem Sankar C - Dept of Futures Studies 29 How to ask for help ? ● Google Search ● Professional Communities ● Ask a question on www.stackoverflow.com ● Please be smart in the title: ● Please be specific in the message:
  • 30. Prem Sankar C - Dept of Futures Studies 30 Reference 1) Vizzari, EASSS 2009 - Torino – 3-4/9/2009 Tutorial. 2) CM Macal and MJ North, Tutorial on agent-based modeling and simulation, Journal of Simulation 2010. 3) CM Macal and MJ North, AGENT-BASED MODELING AND SIMULATION, Proceedings of the 2009 Winter Simulation Conference. 4) Paul Davidsson , Agent Based Social Simulation: A Computer Science View, Journal of Artificial Societies and Social Simulation vol. 5, no. 1. 5) Rob Allan, Survey of Agent Based Modelling and Simulation Tools
  • 31. Prem Sankar C - Dept of Futures Studies 31 Thank you for your attention!