ICPSR - Complex Systems Models in the Social Sciences - Lab Session 1 - Professor Daniel Martin Katz

2,355 views

Published on

Published in: Education, Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,355
On SlideShare
0
From Embeds
0
Number of Embeds
119
Actions
Shares
0
Downloads
577
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

ICPSR - Complex Systems Models in the Social Sciences - Lab Session 1 - Professor Daniel Martin Katz

  1. 1. Introduction to Computing for Complex Systems (Lab Session 1) daniel martin katz illinois institute of technology chicago kent college of law @computationaldanielmartinkatz.com computationallegalstudies.com
  2. 2. Implementation: From Concept to Product
  3. 3. Implementation It is important to understand the canonical scholarship as highlighted in the lecture However, model implementation and the mechanics of other forms of analysis is often the barrier to entry for most scholars Implementation is the link between concept and scientific product
  4. 4. Different Software Packages Netlogo = Introductory Modeling Environment (Agent Based Models & System Dynamics) R = Platform for Statistical Analysis (Includes the IGraph Library for Networks) Vensim / Nova = Development of System Dynamics and Ecological Models Pajek = Basic Software for Empirical Analysis & Visualization of Networks Python = Object Oriented Programming Language Flexible and Fast but High Bar to Entry
  5. 5. Getting Started In
  6. 6. Getting Started In Netlogo Netlogo is an Introductory Modeling Environment Developed By Uri Wilensky @ Northwestern in 1999 Maintained by Center for Connected Learning & Computer-Based Modeling @ Northwestern
  7. 7. Getting Started In Netlogo Syntax is Inherited from the old “Logo” Language Resnick (1991) Wilensky (1999) Papert & Minsky (1967)
  8. 8. Getting Started In Netlogo Features Aspects of Programming But is Not a General Language ( C++, Python, Java) Arguably Easier To Learn Than A General Language Serves the Implementation Needs of Many Modelers
  9. 9. Getting Started In Netlogo Agent Based Models, System Dynamics Models, Network Models, GIS, Etc. Download @ ccl.northwestern.edu/ Should Also Acquire User Manual & Dictionary Version 4.1, Version 4.1 3D, Version 3.1.5
  10. 10. Getting Started In Netlogo HIV / AIDS VOTING
  11. 11. Where To Get Help
  12. 12. Where To Get Help
  13. 13. Netlogo Front Page
  14. 14. Getting Started in Netlogo
  15. 15. Getting Started in Netlogo Files Have a Extension of .nlogo
  16. 16. Interface Information Procedures
  17. 17. Interface Information Procedures
  18. 18. Edit the Information
  19. 19. Interface Information Procedures
  20. 20. Code for the Schelling’s Segregation Model
  21. 21. The Models Library Explore the Available Models
  22. 22. Getting Started in Netlogo
  23. 23. Getting Started in Netlogo
  24. 24. Getting Started in Netlogo
  25. 25. Getting Started in Netlogo
  26. 26. Controls executes specific commands “on the fly” Buttons Command Center “once” buttons execute one Action “forever” buttons repeat the same action (Until Stopped)
  27. 27. Settings Sliders Switchers Select a value from a list Adjust a quantity by increments Choosers Set a Boolean variable (true/false)
  28. 28. Monitors Plots Offers the Current Value of Variables Displays the Time Series Plot for a Given Variable or Variables Views
  29. 29. The Netlogo Language
  30. 30. Four Types of Agents Patches Turtles Links The Observer
  31. 31. Patches Tile  System  with  (0,0)   Center  Origin pxcor   min-­‐pxcor   max-­‐pxcor   world-­‐height   world-­‐width
  32. 32. View the Settings
  33. 33. View the Settings
  34. 34. View the Settings
  35. 35. View the Settings
  36. 36. View the Settings
  37. 37. What is a Torus? Why is It 33 x 33? View the Settings
  38. 38. Patches: Key Things Patches do not move -- they are fixed Patches can breed turtles Patches can have assigned variables Patches belong to an agent set
  39. 39. Consulting the Netlogo Dictionary Descriptions of Patch Primitives Can Be Accessed Through the Netlogo Dictionary
  40. 40. Turtles Turtles  move  on   top  of  the  patches   Have  decimal  coordinates   (xcor,  ycor)     Have  an  orientation   (heading)     Can  have  different  shapes    
  41. 41. Turtles Classic  Hawk  &     Dove  Model  from     Evolutionary     Game  Theory Runs  in  Netlogo  Version  3.1.5
  42. 42. Inspect Turtles Right Click on a Turtle (Ctrl + Click on Mac)
  43. 43. Watch a Specific Turtle Right Click on a Turtle (Ctrl + Click on Mac)
  44. 44. Lots of Different Turtle Shapes
  45. 45. Turtles: Key Things Turtles move around the environment Turtles can have various shapes Turtles can have different variables Turtles belong to an agent set
  46. 46. Colors color  =  agents   pcolor  =  patches Select  a  Major   Color  by  Name   Customize  Colors   Using  ##  from  Chart
  47. 47. Exploring the Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  48. 48. The Forest Fire Model
  49. 49. The Forest Fire Model
  50. 50. The Forest Fire Model
  51. 51. The Forest Fire Model
  52. 52. The Forest Fire Model
  53. 53. The Forest Fire Model
  54. 54. The Forest Fire Model
  55. 55. The Forest Fire Model
  56. 56. The Forest Fire Model
  57. 57. The Forest Fire Model
  58. 58. The Forest Fire Model
  59. 59. The Forest Fire Model
  60. 60. The Forest Fire Model
  61. 61. The Forest Fire Model
  62. 62. The Forest Fire Model
  63. 63. The Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  64. 64. The Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  65. 65. The Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  66. 66. The Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  67. 67. The Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  68. 68. The Forest Fire Model http://ccl.northwestern.edu/netlogo/models/Fire
  69. 69. http://ccl.northwestern.edu/netlogo/models/Fire The Forest Fire Model
  70. 70. Tally the Average of five model runs For Values 50, 55, 60, 65
  71. 71. The Forest Fire Model Average 2.6
  72. 72. The Forest Fire Model Average 2.6 Average 5.8
  73. 73. The Forest Fire Model Average 2.6 Average 5.8 Average 66.5
  74. 74. The Forest Fire Model Average 2.6 Average 5.8 Average 66.5 Average 93.9
  75. 75. Average 5.8 Average 66.5 Parallel Processing on Percolation Threshold
  76. 76. Lets Do Some additional in Class Data Collection On Our Fire Model 56 57 58 59
  77. 77. Now Lets Discuss The Results
  78. 78. Explore the Code
  79. 79. The Forest Fire Model
  80. 80. ;; is for Comments Not Active code
  81. 81. What is a Global? Look it up in the dictionary
  82. 82. What is a Global?
  83. 83. What is a breed? again, look it up in the dictionary
  84. 84. What is a breed?
  85. 85. The Forest Fire Model
  86. 86. The Forest Fire Model
  87. 87. Introduction to Computing for Complex Systems (Lab Session 1) daniel martin katz associate professor of law | illinois tech - chicago kent law blog | ComputationalLegalStudies corp | LexPredict

×